pthread issue on OpenSUSE 10
Dima Rusyy
dima.ru.com@gmail.com
Wed Mar 28 13:53:00 GMT 2007
Hello!
I am working on an application that uses gcc-2.95 libs.
When linking I got the following error:
------------
../gcc-2.95/lib/libstdc++.a(isgetline.o): In function `istream::getline(char
*, int, char)':
../gcc-2.95/linux/i686-pc-linux-gnu/libio/../../../gcc-2.95.3/libio/isgetline.cc:41:
undefined reference to `_pthread_cleanup_push_defer(_pthread_cleanup_buffer
*, void (*)(void *), void *)'
../gcc-2.95/linux/i686-pc-linux-gnu/libio/../../../gcc-2.95.3/libio/isgetline.cc:41:
undefined reference to `_pthread_cleanup_push_defer(_pthread_cleanup_buffer
*, void (*)(void *), void *)'
../gcc-2.95/linux/i686-pc-linux-gnu/libio/../../../gcc-2.95.3/libio/isgetline.cc:54:
undefined reference to `_pthread_cleanup_pop_restore(_pthread_cleanup_buffer
*, int)'
--------
I am linking with the following flags:
-L/usr/local/lib -liberty -lstdc++ -Wl,--export-dynamic /usr/lib/libpcre.a
-lXm -lXp -lXext -lXt -lX11 -ldl -lm -lpthread
and with gcc4.1.0.
I am stuck up with this problem because I have not seen such on any redhat :
from fc3 to fc6.
The same situation is on SuSe Linux Enterprise Server 10.
Thanks!
--
View this message in context: http://www.nabble.com/pthread-issue-on-OpenSUSE-10-tf3480454.html#a9714184
Sent from the gcc - libstdc++ mailing list archive at Nabble.com.
More information about the Libstdc++
mailing list