bug-gnuzilla
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Compiling IceCat on gNewSense2.0


From: Luis A. Guzman Garcia
Subject: Re: Compiling IceCat on gNewSense2.0
Date: Wed, 21 May 2008 21:47:05 -0500

El mié, 21-05-2008 a las 11:47 +0300, Yavor Doganov escribió:
> On Wed, May 21, 2008 at 01:57:17AM -0500, Luis A. Guzman Garcia wrote:
> > c++  -fno-rtti -fno-exceptions -Wall -Wconversion -Wpointer-arith
> > -Wcast-align -Woverloaded-virtual -Wsynth -Wno-ctor-dtor-privacy
> > -Wno-non-virtual-dtor -Wno-long-long -pedantic -fshort-wchar -pthread
> > -pipe  -DNDEBUG -DTRIMMED -O -fPIC -shared -Wl,-z,defs
>                                            ^^^^^^^^^^^
> -Wl,-z,defs forces symbol resolution at build time; IOW, you get a build 
> failure if the code being compiled uses symbols from other libraries but 
> does not link with with them.
> 
> > -Wl,-h,libunixprintplugin.so -o libunixprintplugin.so  npshell.o
> > printplugin.o npunix.o       -L../../../../dist/bin -lxpcom -lxpcom_core
> > -L../../../../dist/bin -L../../../../dist/lib -lplds4 -lplc4 -lnspr4
> > -lpthread -ldl     -ldl -lm    
> 
> Which is exactly the case here -- these symbols are from Xlib but the 
> objects linked together doesn't link against it.  Could you please cd to 
> that directory, run `make clean' and post all of the output after 
> reruning make?  By reading the makefile, it seems that everything should 
> be in order.
> 
> > > sudo apt-get build-dep libcupsys2-dev
> > That way  i shouldn't miss any.
> 
> No, that's unnecessary.
> 
> > What am i missing now?
> 
> It is not about something missing on your system.  I'm trying to 
> reproduce it now on the fastest machine I have access to.
Thanks for the effort.

I did 'make clean' later, 'make' at the end i get this error

make[3]: se sale del directorio
`/opt/icecat-2.0.0.13-g1/modules/plugin/base/src'
make[3]: se ingresa al directorio
`/opt/icecat-2.0.0.13-g1/modules/plugin/samples/unixprinting'
npshell.c
gcc -o npshell.o -c -I../../../../dist/include/system_wrappers
-include ../../../../config/gcc_hidden.h -DOSTYPE=\"Linux2.6\" -DOSARCH=
\"Linux\" -DBUILD_ID=0000000000  -I../../../../dist/include/java
-I../../../../dist/include/plugin -I../../../../dist/include
-I../../../../dist/include/nspr    -I../../../../dist/sdk/include
-fPIC  -Wall -W -Wno-unused -Wpointer-arith -Wcast-align -Wno-long-long
-pedantic -pthread -pipe  -DNDEBUG -DTRIMMED -O
-include ../../../../mozilla-config.h -DMOZILLA_CLIENT
-Wp,-MD,.deps/npshell.pp npshell.c
printplugin.c
gcc -o printplugin.o -c -I../../../../dist/include/system_wrappers
-include ../../../../config/gcc_hidden.h -DOSTYPE=\"Linux2.6\" -DOSARCH=
\"Linux\" -DBUILD_ID=0000000000  -I../../../../dist/include/java
-I../../../../dist/include/plugin -I../../../../dist/include
-I../../../../dist/include/nspr    -I../../../../dist/sdk/include
-fPIC  -Wall -W -Wno-unused -Wpointer-arith -Wcast-align -Wno-long-long
-pedantic -pthread -pipe  -DNDEBUG -DTRIMMED -O
-include ../../../../mozilla-config.h -DMOZILLA_CLIENT
-Wp,-MD,.deps/printplugin.pp printplugin.c
npunix.c
gcc -o npunix.o -c -I../../../../dist/include/system_wrappers
-include ../../../../config/gcc_hidden.h -DOSTYPE=\"Linux2.6\" -DOSARCH=
\"Linux\" -DBUILD_ID=0000000000  -I../../../../dist/include/java
-I../../../../dist/include/plugin -I../../../../dist/include
-I../../../../dist/include/nspr    -I../../../../dist/sdk/include
-fPIC  -Wall -W -Wno-unused -Wpointer-arith -Wcast-align -Wno-long-long
-pedantic -pthread -pipe  -DNDEBUG -DTRIMMED -O
-include ../../../../mozilla-config.h -DMOZILLA_CLIENT
-Wp,-MD,.deps/npunix.pp npunix.c
rm -f libunixprintplugin.so
c++  -fno-rtti -fno-exceptions -Wall -Wconversion -Wpointer-arith
-Wcast-align -Woverloaded-virtual -Wsynth -Wno-ctor-dtor-privacy
-Wno-non-virtual-dtor -Wno-long-long -pedantic -fshort-wchar -pthread
-pipe  -DNDEBUG -DTRIMMED -O -fPIC -shared -Wl,-z,defs
-Wl,-h,libunixprintplugin.so -o libunixprintplugin.so  npshell.o
printplugin.o npunix.o       -L../../../../dist/bin -lxpcom -lxpcom_core
-L../../../../dist/bin -L../../../../dist/lib -lplds4 -lplc4 -lnspr4
-lpthread -ldl     -ldl -lm    
printplugin.o: In function `privatePrintScreenMessage':
printplugin.c:(.text+0x22c): undefined reference to `XCreateGC'
printplugin.c:(.text+0x275): undefined reference to `XDrawRectangle'
printplugin.c:(.text+0x2d6): undefined reference to `XDrawString'
printplugin.c:(.text+0x2eb): undefined reference to `XFreeGC'
printplugin.o: In function `printScreenMessage':
printplugin.c:(.text+0x334): undefined reference to `XCreateFontCursor'
printplugin.c:(.text+0x354): undefined reference to `XDefineCursor'
printplugin.c:(.text+0x369): undefined reference to `XtWindowToWidget'
printplugin.c:(.text+0x387): undefined reference to `XSelectInput'
printplugin.c:(.text+0x3b0): undefined reference to `XtAddEventHandler'
printplugin.o: In function `xt_event_handler':
printplugin.c:(.text+0x403): undefined reference to
`XCheckTypedWindowEvent'
collect2: ld devolvió el estado de salida 1
make[3]: *** [libunixprintplugin.so] Error 1
make[3]: se sale del directorio
`/opt/icecat-2.0.0.13-g1/modules/plugin/samples/unixprinting'
make[2]: *** [libs] Error 2
make[2]: se sale del directorio `/opt/icecat-2.0.0.13-g1/modules/plugin'
make[1]: *** [tier_9] Error 2
make[1]: se sale del directorio `/opt/icecat-2.0.0.13-g1'
make: *** [default] Error 2
address@hidden:/opt/icecat-2.0.0.13-g1$ 

Like you said, it doesn't seem to miss any package.
I thought install it would be easier. :P
-- 
Luis A. Guzman Garcia
Usuario/Colaborador
gNewSense Español/Foro
http://www.gnewsense.org/Main:es/gNewSense
http://wiki.gnewsense.org/ForumHispano





reply via email to

[Prev in Thread] Current Thread [Next in Thread]