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 [email protected] https://mail.kde.org/mailman/listinfo/kde-buildsystem
