Compiling Mozilla with usr_devx.sfs
Posted: Sun 11 Sep 2005, 17:22
I'm trying to compile Mozilla using Puppy-1.0.5alpha2 & the excellent usr_devx.sfs developer package.
1st problem was that I needed the full version of mktemp instead of the busybox version, ok no problem.
Next problem was that I needed libIDL/IDL.h
Reading the Mozilla Build FAQ: http://www.mozilla.org/build/faq.html#libidl-2
I see that v0.8.x is for GTK2 & we want GTK1.2
I therefore initially tried the latest pre-0.8.x version: 0.7.4
This failed.
Looking in /usr/lib/libIDLConf.sh, it seems that Puppy comes with v0.6.8 of libIDL (the last version before it moved into Gnome) - is this correct?
I therefore tried using IDL.h from that release, however still no joy (see below).
Anyone able to help get this a step further?
Should I install 0.7.4 instead?
- which version was used for the Mozilla build already in Puppy?
F
In file included from xpidl.h:49,
from xpidl_java.c:29:
/usr/include/glib-1.2/glib.h23: warning: ISO C does not permit named variadic macros
/usr/include/glib-1.2/glib.h25: warning: ISO C does not permit named variadic macros
/usr/include/glib-1.2/glib.h26: warning: ISO C does not permit named variadic macros
/usr/include/glib-1.2/glib.h25: warning: ISO C does not permit named variadic macros
gcc -o xpidl -I/usr/X11R6/include -Wall -W -Wno-unused -Wpointer-arith -Wcast-align -Wno-long-long -pedantic -pthread -pipe -DNDEBUG -DTRIMMED -Os -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/include/orbit-1.0 xpidl.o xpidl_idl.o xpidl_util.o xpidl_header.o xpidl_typelib.o xpidl_doc.o xpidl_java.o -L../../../dist/bin -L../../../dist/lib ../../../dist/lib/libxpt.a -L/usr/lib -lIDL -lglib -ldl -lm
/usr/lib/libIDL.a(parser.o)(.text+0x396c): In function `get_name_token':
: undefined reference to `__ctype_b'
/usr/lib/libIDL.a(parser.o)(.text+0x41d8): In function `__IDL_do_pragma':
: undefined reference to `__ctype_b'
/usr/lib/libIDL.a(lexer.o)(.text+0x22c): In function `__IDL_lex':
: undefined reference to `__ctype_b'
/usr/lib/libIDL.a(lexer.o)(.text+0x39f): In function `__IDL_lex':
: undefined reference to `__ctype_b'
/usr/lib/libIDL.a(lexer.o)(.text+0x3dd): In function `__IDL_lex':
: undefined reference to `__ctype_b'
/usr/lib/libIDL.a(lexer.o)(.text+0x444): more undefined references to `__ctype_b' follow
/usr/lib/libIDL.a(util.o)(.text+0x18): In function `IDL_strcase_hash':
: undefined reference to `__ctype_tolower'
collect2: ld returned 1 exit status
1st problem was that I needed the full version of mktemp instead of the busybox version, ok no problem.
Next problem was that I needed libIDL/IDL.h
Reading the Mozilla Build FAQ: http://www.mozilla.org/build/faq.html#libidl-2
I see that v0.8.x is for GTK2 & we want GTK1.2
I therefore initially tried the latest pre-0.8.x version: 0.7.4
This failed.
Looking in /usr/lib/libIDLConf.sh, it seems that Puppy comes with v0.6.8 of libIDL (the last version before it moved into Gnome) - is this correct?
I therefore tried using IDL.h from that release, however still no joy (see below).
Anyone able to help get this a step further?
Should I install 0.7.4 instead?
- which version was used for the Mozilla build already in Puppy?
F
In file included from xpidl.h:49,
from xpidl_java.c:29:
/usr/include/glib-1.2/glib.h23: warning: ISO C does not permit named variadic macros
/usr/include/glib-1.2/glib.h25: warning: ISO C does not permit named variadic macros
/usr/include/glib-1.2/glib.h26: warning: ISO C does not permit named variadic macros
/usr/include/glib-1.2/glib.h25: warning: ISO C does not permit named variadic macros
gcc -o xpidl -I/usr/X11R6/include -Wall -W -Wno-unused -Wpointer-arith -Wcast-align -Wno-long-long -pedantic -pthread -pipe -DNDEBUG -DTRIMMED -Os -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/include/orbit-1.0 xpidl.o xpidl_idl.o xpidl_util.o xpidl_header.o xpidl_typelib.o xpidl_doc.o xpidl_java.o -L../../../dist/bin -L../../../dist/lib ../../../dist/lib/libxpt.a -L/usr/lib -lIDL -lglib -ldl -lm
/usr/lib/libIDL.a(parser.o)(.text+0x396c): In function `get_name_token':
: undefined reference to `__ctype_b'
/usr/lib/libIDL.a(parser.o)(.text+0x41d8): In function `__IDL_do_pragma':
: undefined reference to `__ctype_b'
/usr/lib/libIDL.a(lexer.o)(.text+0x22c): In function `__IDL_lex':
: undefined reference to `__ctype_b'
/usr/lib/libIDL.a(lexer.o)(.text+0x39f): In function `__IDL_lex':
: undefined reference to `__ctype_b'
/usr/lib/libIDL.a(lexer.o)(.text+0x3dd): In function `__IDL_lex':
: undefined reference to `__ctype_b'
/usr/lib/libIDL.a(lexer.o)(.text+0x444): more undefined references to `__ctype_b' follow
/usr/lib/libIDL.a(util.o)(.text+0x18): In function `IDL_strcase_hash':
: undefined reference to `__ctype_tolower'
collect2: ld returned 1 exit status