LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Firefox fails to compile on -current (https://www.linuxquestions.org/questions/slackware-14/firefox-fails-to-compile-on-current-780961/)

Daedra 01-08-2010 07:13 PM

Firefox fails to compile on -current
 
I'm using the slackware64 current slackbuild to build a new firefox for -current 32 (I like dynamically linked cairo for fonts). But I am getting a compile error...

c++ -o host_dump_symbols.o -c -O -I./../.. -I. -I. -I../../../../../../dist/include -I../../../../../../dist/include/breakpad_linux_common -I/tmp/mozilla-1.9.1/dist/include/nspr -I/tmp/mozilla-1.9.1/dist/sdk/include -I/tmp/mozilla-1.9.1/dist/include/nspr dump_symbols.cc
dump_symbols.cc: In function 'bool<unnamed>::WriteFormat(int, const char*, ...)':
dump_symbols.cc:176: error: 'vsnprintf' was not declared in this scope
dump_symbols.cc: In function 'bool<unnamed>::ComputeSizeAndRVA(Elf32_Addr, <unnamed>::SymbolInfo*)':
dump_symbols.cc:487: error: 'stderr' was not declared in this scope
dump_symbols.cc:488: error: 'fprintf' was not declared in this scope
dump_symbols.cc: In function 'bool<unnamed>::LoadSymbols(Elf32_Ehdr*, <unnamed>::SymbolInfo*)':
dump_symbols.cc:586: error: 'stderr' was not declared in this scope
dump_symbols.cc:586: error: 'fprintf' was not declared in this scope
gmake[5]: *** [host_dump_symbols.o] Error 1
gmake[5]: Leaving directory `/tmp/mozilla-1.9.1/toolkit/crashreporter/google-breakpad/src/common/linux'
gmake[4]: *** [libs] Error 2
gmake[4]: Leaving directory `/tmp/mozilla-1.9.1/toolkit/crashreporter'
gmake[3]: *** [libs] Error 2
gmake[3]: Leaving directory `/tmp/mozilla-1.9.1/toolkit'
gmake[2]: *** [libs_tier_toolkit] Error 2
gmake[2]: Leaving directory `/tmp/mozilla-1.9.1'
gmake[1]: *** [tier_toolkit] Error 2
gmake[1]: Leaving directory `/tmp/mozilla-1.9.1'
make: *** [default] Error 2


Can anyone else confirm this?

wadsworth 01-08-2010 08:29 PM

Yep. Had the problem. Found this patch. :)
Code:

--- a/toolkit/crashreporter/google-breakpad/src/client/linux/handler/exception_handler.cc
+++ b/toolkit/crashreporter/google-breakpad/src/client/linux/handler/exception_handler.cc
@@ -36,6 +36,7 @@
 
 #include <cassert>
 #include <cstdlib>
+#include <cstdio>
 #include <ctime>
 #include <linux/limits.h>
 
--- a/toolkit/crashreporter/google-breakpad/src/client/linux/handler/minidump_generator.cc
+++ b/toolkit/crashreporter/google-breakpad/src/client/linux/handler/minidump_generator.cc
@@ -39,6 +39,7 @@
 #include <sys/wait.h>
 
 #include <cstdlib>
+#include <cstdio>
 #include <ctime>
 #include <string.h>
 
--- a/toolkit/crashreporter/google-breakpad/src/common/linux/dump_symbols.cc
+++ b/toolkit/crashreporter/google-breakpad/src/common/linux/dump_symbols.cc
@@ -30,6 +30,7 @@
 #include <a.out.h>
 #include <cstdarg>
 #include <cstdlib>
+#include <cstdio>
 #include <cxxabi.h>
 #include <elf.h>
 #include <errno.h>


Daedra 01-08-2010 10:07 PM

That did it, Thanks :)

SqdnGuns 01-08-2010 10:23 PM

FYI, check the current changelog.........new kernel, samba and FF.

Daedra 01-08-2010 10:42 PM

I just got the same error with thunderbird, lol. I'm searching for a patch now...

wadsworth 01-09-2010 01:12 AM

1 Attachment(s)
SeaMonkey requires the same patch, just the path to the files is
slightly different. The whole mess is under a leading mozilla/ directory.

Seems likely that the Thunderbird patch would be similar.

Are you trying to build Thunderbird 3 ?

(Ignore that question. Has to be 3)

Edit: looks like its going to need the same fix as SeaMonkey.
I've attached this untested patch, in case you're interested.
I'd guess it has a pretty good chance of success.

Daedra 01-09-2010 03:23 AM

Quote:

Originally Posted by wadsworth (Post 3819855)
SeaMonkey requires the same patch, just the path to the files is
slightly different. The whole mess is under a leading mozilla/ directory.

Seems likely that the Thunderbird patch would be similar.

Are you trying to build Thunderbird 3 ?

(Ignore that question. Has to be 3)

Edit: looks like its going to need the same fix as SeaMonkey.
I've attached this untested patch, in case you're interested.
I'd guess it has a pretty good chance of success.

worked again, thanks dude.

brownwrap 01-16-2010 09:08 PM

I'm trying to build Seamonkey, how do I use your patch?
 
I was trying to build seamonkey and it blew up in the same place. How do I apply your patch? Thanks.



Quote:

Originally Posted by wadsworth (Post 3819855)
SeaMonkey requires the same patch, just the path to the files is
slightly different. The whole mess is under a leading mozilla/ directory.

Seems likely that the Thunderbird patch would be similar.

Are you trying to build Thunderbird 3 ?

(Ignore that question. Has to be 3)

Edit: looks like its going to need the same fix as SeaMonkey.
I've attached this untested patch, in case you're interested.
I'd guess it has a pretty good chance of success.



All times are GMT -5. The time now is 09:51 PM.