Re: pthread configure problem in kdelibs trunk
On 4/9/06, Volker Krause <[EMAIL PROTECTED]> wrote: > the test for pthread_getattr_np() fails due to a missing '-pthread' in the > linker flags (at least for cartman and myself). This prevents the compilation > of kjs. > > The attached patch seems to solve this problem. Is this the right way to fix > it? -pthread is AFAIK a GNU ld option, and doesn't necessarily work on all supported platforms (it's not a valid option on OSX, I believe, although the linker might just ignore it). Best to probably test for -pthread first. ___ Kde-buildsystem mailing list Kde-buildsystem@kde.org https://mail.kde.org/mailman/listinfo/kde-buildsystem
Re: pthread configure problem in kdelibs trunk
On Sunday 09 April 2006 16:31, Volker Krause wrote: > Hi, > > the test for pthread_getattr_np() fails due to a missing '-pthread' in the > linker flags (at least for cartman and myself). This prevents the > compilation of kjs. > > The attached patch seems to solve this problem. Is this the right way to > fix it? > > regards > Volker (who knows nothing about cmake) can you please check whether check_symbol_exists(pthread_getattr_np pthread.h HAVE_PTHREAD_GETATTR_NP) check_symbol_exists(pthread_attr_get_np pthread.h HAVE_PTHREAD_ATTR_GET_NP) works for you ? Is this actually on linux or some other system ? Bye Alex -- Work: alexander.neundorf AT jenoptik.com - http://www.jenoptik-los.de Home: neundorf AT kde.org- http://www.kde.org alex AT neundorf.net - http://www.neundorf.net ___ Kde-buildsystem mailing list Kde-buildsystem@kde.org https://mail.kde.org/mailman/listinfo/kde-buildsystem
Re: pthread configure problem in kdelibs trunk
On Sunday 09 April 2006 17:45, Alexander Neundorf wrote: > On Sunday 09 April 2006 16:31, Volker Krause wrote: > > Hi, > > > > the test for pthread_getattr_np() fails due to a missing '-pthread' in > > the linker flags (at least for cartman and myself). This prevents the > > compilation of kjs. > > > > The attached patch seems to solve this problem. Is this the right way to > > fix it? > > > > regards > > Volker (who knows nothing about cmake) > > can you please check whether > check_symbol_exists(pthread_getattr_np pthread.h HAVE_PTHREAD_GETATTR_NP) > check_symbol_exists(pthread_attr_get_np pthread.h HAVE_PTHREAD_ATTR_GET_NP) > > works for you ? No, same problem as before: -- Looking for pthread_getattr_np -- Looking for pthread_getattr_np - not found. -- Looking for pthread_attr_get_np -- Looking for pthread_attr_get_np - not found. from CMakeError.log: Linking C executable cmTryCompileExec /usr/bin/cmake -P CMakeFiles/cmTryCompileExec.dir/cmake_clean_target.cmake /opt/icecream/bin/gcc-Wno-long-long -ansi -Wundef -Wcast-align -Wconversion -Wchar-subscripts -Wall -W -Wpointer-arith -Wwrite-strings -Wformat-security -Wmissing-for mat-attribute -fno-common-fPIC "CMakeFiles/cmTryCompileExec.dir/CheckSymbolExists.o" -o cmTryCompileExec -rdynamic CMakeFiles/cmTryCompileExec.dir/CheckSymbolExists.o: In function `main': CheckSymbolExists.c:(.text+0x22): undefined reference to `pthread_getattr_np' collect2: ld returned 1 exit status > Is this actually on linux or some other system ? Linux (SuSE 10.0 on i368) regards Volker pgpTvVtIg5lhI.pgp Description: PGP signature ___ Kde-buildsystem mailing list Kde-buildsystem@kde.org https://mail.kde.org/mailman/listinfo/kde-buildsystem
Re: pthread configure problem in kdelibs trunk
On Sunday 09 April 2006 16:31, Volker Krause wrote: > the test for pthread_getattr_np() fails due to a missing '-pthread' in the > linker flags (at least for cartman and myself). This prevents the > compilation of kjs. The removal of those tests has fixed the problem as well, the corresponding tests in kjs seems to work here. regards Volker pgp59Ux8yQO7J.pgp Description: PGP signature ___ Kde-buildsystem mailing list Kde-buildsystem@kde.org https://mail.kde.org/mailman/listinfo/kde-buildsystem