Closed Bug 158699 Opened 22 years ago Closed 21 years ago

gcc-3.1.1; undefined reference to `GC_stderr'

Categories

(Core :: XPCOM, defect)

Other
Other
defect
Not set
normal

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: georg.wild, Assigned: dougt)

Details

Hello,

I just tried to compile Mozilla CVS with the new (pre-release) gcc3.1.1.
I got the following using "./configure  --with-pthreads --enable-toolkit-gtk
--enable-calendar --disable-mailnews --enable-xft --enable-crypto
--enable-ldap-experimental --enable-optimize=-O2 --enable-boehm
--enable-crash-on-assert":
-----------------
.....
make[3]: Entering directory `/root/mozilla/xpcom/sample'
c++  -I/usr/X11R6/include -fno-rtti -fno-exceptions -Wall -Wconversion
-Wpointer-arith -Wbad-function-cast -Wcast-align -Woverloaded-virtual -Wsynth
-Wno-ctor-dtor-privacy -pedantic -Wno-long-long -fshort-wchar -pthread -pipe 
-DDEBUG -D_DEBUG -DDEBUG_root -DTRACING -g -O2 -o nsTestSample nsTestSample.o  
        -L../../dist/bin -L../../dist/lib ../../dist/lib/libstring_s.a
../../dist/lib/libstring_obsolete_s.a ../../dist/lib/libxpcomglue.a
-L/root/mozilla/dist/lib -lplds4 -lplc4 -lnspr4 -lpthread -ldl -lc   -ldl -lm 
-lc   
/usr/local/bin/ld: warning: libboehm.so, needed by ../../dist/bin/libnspr4.so,
not found (try using -rpath or -rpath-link)
../../dist/bin/libnspr4.so: undefined reference to `GC_stderr'
../../dist/bin/libnspr4.so: undefined reference to `GC_generic_init_threads'
collect2: ld returned 1 exit status
make[3]: *** [nsTestSample] Error 1
make[3]: Leaving directory `/root/mozilla/xpcom/sample'
make[2]: *** [libs] Error 2
make[2]: Leaving directory `/root/mozilla/xpcom'
make[1]: *** [tier_2] Error 2
make[1]: Leaving directory `/root/mozilla'
make: *** [default] Error 2
root@Waibel:~/mozilla # nedit /tmp/mozilla
---------------

Adding -lboehm solves this problem. I don't know if this relies on gcc3.1.1 or
if it is a general problem, so please sb have a short look on it and if it is
nonsens, just close this bug immedatelly.
This should work with GCC3.2
Status: UNCONFIRMED → RESOLVED
Closed: 21 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.