[g-a-devel]gnopernicus - -pthread problems ...
- From: Michael Meeks <michael ximian com>
- To: mp baum de
- Cc: accessibility mailing list <gnome-accessibility-devel gnome org>
- Subject: [g-a-devel]gnopernicus - -pthread problems ...
- Date: 09 Dec 2002 14:29:11 +0000
Hi guys,
It seems that linking to -gthread in Gnome 2.2 necessitates grabbing
LDFLAGS / INCLUDES from the pkg-config stuff; it's no longer sufficient
to just link to a .la of a similar name (I think).
So I get issues building gnopernicus on 2.2:
/bin/sh ../../libtool --mode=link gcc -Wall -g -o tester tester.o
../libsrs/libsrs.la -lpopt
gcc -Wall -g -o .libs/tester tester.o ../libsrs/.libs/libsrs.so -lxml2
-lz /usr/lib/libgnomespeech.so -lbonobo-2 -lbonobo-activation -lORBit-2
-lm -llinc -lgmodule-2.0 -ldl -lgobject-2.0 -lgthread-2.0 -lglib-2.0
-lpopt -Wl,--rpath -Wl,/usr/lib/gnopernicus-1.0
/usr/lib/gcc-lib/i386-redhat-linux/3.2/../../../libgthread-2.0.so:
undefined reference to `pthread_create'
/usr/lib/gcc-lib/i386-redhat-linux/3.2/../../../libgthread-2.0.so:
undefined reference to `pthread_getspecific'
/usr/lib/gcc-lib/i386-redhat-linux/3.2/../../../libgthread-2.0.so:
undefined reference to `pthread_key_create'
/usr/lib/gcc-lib/i386-redhat-linux/3.2/../../../libgthread-2.0.so:
undefined reference to `pthread_attr_setstacksize'
/usr/lib/gcc-lib/i386-redhat-linux/3.2/../../../libgthread-2.0.so:
undefined reference to `pthread_mutex_trylock'
/usr/lib/gcc-lib/i386-redhat-linux/3.2/../../../libgthread-2.0.so:
undefined reference to `pthread_join'
/usr/lib/gcc-lib/i386-redhat-linux/3.2/../../../libgthread-2.0.so:
undefined reference to `pthread_cond_timedwait'
/usr/lib/gcc-lib/i386-redhat-linux/3.2/../../../libgthread-2.0.so:
undefined reference to `pthread_setspecific'
collect2: ld returned 1 exit status
Cause by a missing -pthread argument somewhere - that should be
inherited from the right CFLAGS / LIBS etc.
HTH,
Michael.
--
mmeeks gnu org <><, Pseudo Engineer, itinerant idiot
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]