Subject: gcc3/mozilla pthread link error under current
To: None <tech-pkg@netbsd.org>
From: David <abs@mono.org>
List: tech-pkg
Date: 06/17/2003 19:09:03
Trying to compile mozilla under gcc3 on a 1.6U box fails as below:
Are we missing a -lpthread somewhere?
g++ -I/usr/pkg/include/gdk-pixbuf-1.0 -I/usr/pkg/include -I/usr/X11R6/include -I/usr/X11R6/include -fno-rtti -fno-exceptions -Wall -Wconversion -Wpointer-arith -Wcast-align -Woverloaded-virtual -Wsynth -Wno-ctor-dtor-privacy -pedantic -Wno-long-long -O2 -pipe -I/usr/pkg/include -I/usr/X11R6/include -Dunix -fshort-wchar -pthread -pipe -DNDEBUG -DTRIMMED -O2 -o regExport regExport.o -Wl,-R/usr/pkg/lib/mozilla -L/usr/pkg/gcc-3.3/lib/gcc-lib/i386--netbsdelf/3.3 -Wl,-R/usr/pkg/gcc-3.3/lib/gcc-lib/i386--netbsdelf/3.3 -L/usr/pkg/gcc-3.3/lib -Wl,-R/usr/pkg/gcc-3.3/lib -Wl,-R/usr/pkg/lib -L/usr/pkg/lib -Wl,-R/usr/X11R6/lib -L/usr/X11R6/lib -L../../../dist/bin -L../../../dist/lib -L../../../dist/bin -lxpcom -L/var/obj/pkg/www/mozilla/work/mozilla/dist/lib -lplds4 -lplc4 -lnspr4 -L/usr/pkg/gcc-3.3/lib/gcc-lib/i386--netbsdelf/3.3 -L/usr/pkg/gcc-3.3/lib -L/usr/pkg/lib -L/usr/X11R6/lib -pthread -lm -lintl -Wl,--export-dynamic
../../../dist/bin/libnspr4.so: undefined reference to `pthread_cond_signal'
../../../dist/bin/libnspr4.so: undefined reference to `pthread_attr_destroy'
../../../dist/bin/libnspr4.so: undefined reference to `pthread_create'
../../../dist/bin/libnspr4.so: undefined reference to `pthread_getspecific'
../../../dist/bin/libnspr4.so: undefined reference to `pthread_attr_init'
../../../dist/bin/libnspr4.so: undefined reference to `pthread_condattr_init'
../../../dist/bin/libnspr4.so: undefined reference to `pthread_equal'
../../../dist/bin/libnspr4.so: undefined reference to `pthread_cond_broadcast'
../../../dist/bin/libnspr4.so: undefined reference to `pthread_once'
../../../dist/bin/libnspr4.so: undefined reference to `pthread_key_create'
../../../dist/bin/libnspr4.so: undefined reference to `pthread_kill'
../../../dist/bin/libnspr4.so: undefined reference to `pthread_cond_init'
../../../dist/bin/libnspr4.so: undefined reference to `pthread_mutex_unlock'
../../../dist/bin/libnspr4.so: undefined reference to `pthread_self'
../../../dist/bin/libnspr4.so: undefined reference to `pthread_mutexattr_init'
../../../dist/bin/libnspr4.so: undefined reference to `pthread_mutex_destroy'
../../../dist/bin/libnspr4.so: undefined reference to `pthread_mutex_lock'
../../../dist/bin/libnspr4.so: undefined reference to `pthread_cond_wait'
../../../dist/bin/libnspr4.so: undefined reference to `pthread_mutex_trylock'
../../../dist/bin/libnspr4.so: undefined reference to `pthread_cond_destroy'
../../../dist/bin/libnspr4.so: undefined reference to `pthread_mutex_init'
../../../dist/bin/libnspr4.so: undefined reference to `pthread_attr_setdetachstate'
../../../dist/bin/libnspr4.so: undefined reference to `sched_yield'
../../../dist/bin/libnspr4.so: undefined reference to `pthread_join'
../../../dist/bin/libnspr4.so: undefined reference to `pthread_cond_timedwait'
../../../dist/bin/libnspr4.so: undefined reference to `pthread_setspecific'
--
David Brownlee - abs@mono.org