PDA

View Full Version : FreeBSD-stable, QT, & pthreads.



cjm2
08-30-2002, 10:56 AM
Ok, I'm trying to complile ShowEQ on a FreeBSD 4.6-stable system.

I have searched google, and the archives and specifically have followed the instructions listed in:
http://seq.sourceforge.net/showthread.php?s=&threadid=804&highlight=Freebsd

I am using gcc 3.0.4 and QT 2.5.2.
I specified that gcc30 (and g++30) be used for the compilation of QT.
I have specified that QT be compiled with threads and have seen both -pthread and -D_THREAD_SAFE passed to the compiler while QT is building.

Despite this, when I try to ./configure I get the errors listed below.

I am hoping another (FreeBSD) user has run into a similar problem and found a solution.

Thanks,
--Chris

===========
configure:3387: checking for Qt

configure:3697: g++30 -o conftest -I/usr/local/qt/include -I/usr/X11R6/include -L/usr/local/qt/lib -L/usr/X11R6/lib conftest.C -lgnugetopt -l

qt-mt -lpng -lz -lm -lXext -lX11 1>&5

/usr/local/qt/lib/libqt-mt.so: undefined reference to `pthread_attr_destroy'

/usr/local/qt/lib/libqt-mt.so: undefined reference to `pthread_create'

/usr/local/qt/lib/libqt-mt.so: undefined reference to `pthread_attr_init'

/usr/local/qt/lib/libqt-mt.so: undefined reference to `pthread_exit'

/usr/local/qt/lib/libqt-mt.so: undefined reference to `pthread_condattr_init'

/usr/local/qt/lib/libqt-mt.so: undefined reference to `pthread_mutexattr_destroy'

/usr/local/qt/lib/libqt-mt.so: undefined reference to `pthread_condattr_destroy'

/usr/local/qt/lib/libqt-mt.so: undefined reference to `pthread_attr_setinheritsched'

/usr/local/qt/lib/libqt-mt.so: undefined reference to `pthread_mutexattr_settype'

/usr/local/qt/lib/libqt-mt.so: undefined reference to `pthread_mutexattr_init'

/usr/local/qt/lib/libqt-mt.so: undefined reference to `pthread_mutex_trylock'

/usr/local/qt/lib/libqt-mt.so: undefined reference to `pthread_attr_setdetachstate'

/usr/local/qt/lib/libqt-mt.so: undefined reference to `pthread_cond_timedwait'

collect2: ld returned 1 exit status