[opensuse-packaging] Need help with possible gcc45 error
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
On 13/05/10 09:28, Dave Plater wrote:
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:-
<snip>
collect2: ld returned 1 exit status This is a linking error, rather than a compilation error. So scrutinize the linking options. -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 I have a feeling there should be a -lpthread in there somewhere
Regards, Tejas -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
On 05/13/2010 12:17 PM, Tejas Guruswamy wrote:
On 13/05/10 09:28, Dave Plater wrote:
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:-
<snip>
collect2: ld returned 1 exit status
This is a linking error, rather than a compilation error. So scrutinize the linking options.
-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
I have a feeling there should be a -lpthread in there somewhere
Regards, Tejas
Always the obvious, I reran the ./libtool command with -lpthread and it succeeded, now the question is : why only on the factory build? Also I have to find out where to patch this in. I've already tried building against 11.2's libtool and the command is the same in 11.2's log and factory's. Thanks Dave P -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
El 13/05/10 06:37, Dave Plater escribió:
Always the obvious, I reran the ./libtool command with -lpthread and it succeeded, now the question is : why only on the factory build?
I guess you are getting the correct/expected behaviour in factory only ;) -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
On 2010-05-13 10:28:42 +0200, Dave Plater wrote:
/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
The top entry on http://en.opensuse.org/Packaging/Fixing should help you. darix -- openSUSE - SUSE Linux is my linux openSUSE is good for you www.opensuse.org -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
On 05/17/2010 12:39 PM, Marcus Rueckert wrote:
On 2010-05-13 10:28:42 +0200, Dave Plater wrote:
/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
The top entry on http://en.opensuse.org/Packaging/Fixing should help you.
darix
I've referred to that page many times, I think I should open my eyes a bit more when I'm looking at it. I'm lucky it didn't bite me. Thanks Dave P -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
participants (4)
-
Cristian Rodríguez
-
Dave Plater
-
Marcus Rueckert
-
Tejas Guruswamy