Hi, I'm trying to make kdemultimedia3 build for factory again in
home:plater:kde3 and I've been trying to fix a possible gcc45 build error:-
|./xine_artsplugin/.libs/xinePlayObject_impl.o: In function `xine_shared_init':
/usr/src/packages/BUILD/kdemultimedia-3.5.10/xine_artsplugin/xinePlayObject_impl.cpp:114: undefined reference to `pthread_create'
/usr/src/packages/BUILD/kdemultimedia-3.5.10/xine_artsplugin/xinePlayObject_impl.cpp:116: undefined reference to `pthread_detach'
./xine_artsplugin/.libs/xinePlayObject_impl.o: In function `~xinePlayObject_impl':
/usr/src/packages/BUILD/kdemultimedia-3.5.10/xine_artsplugin/xinePlayObject_impl.cpp:225: undefined reference to `pthread_join'
/usr/src/packages/BUILD/kdemultimedia-3.5.10/xine_artsplugin/xinePlayObject_impl.cpp:225: undefined reference to `pthread_join'
./xine_artsplugin/.libs/xinePlayObject_impl.o: In function `xinePlayObject_impl':
/usr/src/packages/BUILD/kdemultimedia-3.5.10/xine_artsplugin/xinePlayObject_impl.cpp:197: undefined reference to `pthread_create'
/usr/src/packages/BUILD/kdemultimedia-3.5.10/xine_artsplugin/xinePlayObject_impl.cpp:197: undefined reference to `pthread_create'
collect2: ld returned 1 exit status
as a result of the command :-
/bin/sh ./libtool --silent --mode=link --tag=CXX g++ -Wno-long-long
-Wundef -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align
-Wchar-subscripts -Wall -W -Wpointer-arith -DNDEBUG -DNO_DEBUG -O2
-fmessage-length=0 -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector
-funwind-tables -fasynchronous-unwind-tables -g -fno-strict-aliasing
-Wformat-security -Wmissing-format-attribute -Wno-non-virtual-dtor
-fno-exceptions -fno-check-new -fno-common -DQT_CLEAN_NAMESPACE
-DQT_NO_ASCII_CAST -DQT_NO_STL -DQT_NO_COMPAT -DQT_NO_TRANSLATION
-DQT_THREAD_SUPPORT -D_REENTRANT -Wl,-Bsymbolic-functions
-L/opt/kde3/lib64 -L/usr/lib/qt3/lib64 -L/usr/lib64 -Wl,--as-needed
-Wl,--enable-new-dtags -module -no-undefined -pthread -o
./xine_artsplugin/libarts_xine.la -rpath /opt/kde3/lib64
-Wl,--no-undefined -Wl,--allow-shlib-undefined -L/usr/lib64 -lxine -lX11
-lXext -lkmedia2_idl -lsoundserver_idl -lartsflow
./xine_artsplugin/xinePlayObject.lo
./xine_artsplugin/xinePlayObject_impl.lo ./xine_artsplugin/audio_fifo_out.lo
The first failure is in function :
static xine_t *xine_shared_init()
{
pthread_mutex_lock( &xine_mutex );
++xineRefCount;
if (xine_shared == 0)
{
pthread_t thread;
xine_init_routine();
if (pthread_create( &thread, NULL, xine_timeout_routine, NULL ) == 0)
{
pthread_detach( thread );
}
}
else
{
pthread_cond_signal( &xine_cond );
}
pthread_mutex_unlock( &xine_mutex );
return xine_shared;
}
This builds for 11.2 and has me scratching my head, googling it only
brings up the obvious lack of #include