|
From: | Jiao Xianjun |
Subject: | Re: [Discuss-gnuradio] undefined reference to 'pthread_sigmask' error when make |
Date: | Sun, 13 Apr 2014 10:57:49 +0800 |
On Wed, Apr 9, 2014 at 12:36 AM, Jiao Xianjun <address@hidden> wrote:
even if I use -lpthread explicitly.are tried, but both encounter:3.7.3 release: http://gnuradio.org/releases/gnuradio/Hi,and
I am trying to build gnuradio from source in Ubuntu 12.04.
http://jenkins.gnuradio.org/builds/gnuradio-current.tar.gz
[ 33%] Generating xor_bb_impl.h, xor_ss_impl.h, xor_ii_impl.h
[ 33%] Generating xor_bb_impl.cc, xor_ss_impl.cc, xor_ii_impl.cc
Linking CXX executable gnuradio-config-info
[ 33%] [ 33%] Generating packed_to_unpacked_bb_impl.h, packed_to_unpacked_ss_impl.h, packed_to_unpacked_ii_impl.h
Building CXX object gnuradio-runtime/lib/CMakeFiles/test-gnuradio-runtime.dir/math/qa_math.cc.o
../lib/libgnuradio-runtime-3.7.4git.so.0.0.0: error: undefined reference to 'pthread_setaffinity_np'
../lib/libgnuradio-runtime-3.7.4git.so.0.0.0: error: undefined reference to 'pthread_sigmask'
collect2: ld returned 1 exit status
make[2]: *** [gnuradio-runtime/apps/gnuradio-config-info] Error 1
make[1]: *** [gnuradio-runtime/apps/CMakeFiles/gnuradio-config-info.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 33%] [ 33%] Generating packed_to_unpacked_bb_impl.cc, packed_to_unpacked_ss_impl.cc, packed_to_unpacked_ii_impl.cc
Building CXX object gnuradio-runtime/lib/CMakeFiles/test-gnuradio-runtime.dir/math/qa_sincos.cc.o
[ 33%] Generating unpacked_to_packed_bb_impl.h, unpacked_to_packed_ss_impl.h, unpacked_to_packed_ii_impl.h
Anyone also encounter that? Thanks a lot!Nope, not sure what's going on there. Ubuntu 12.04 uses glibc 2.13 (these functions have been around since 2.3.4). We're including pthread.h in that file, cmake already sets up the links against pthread, and your cmake shows this:...-- Performing Test HAVE_PTHREAD_SIGMASK
-- Performing Test HAVE_PTHREAD_SIGMASK - Success
-- Performing Test HAVE_PTHREAD_SETSCHEDPARAM
-- Performing Test HAVE_PTHREAD_SETSCHEDPARAM - SuccessSo you're finding the right things. I'm running 12.04 on this machine I'm currently on and just built from that tarball myself with no problems. Any chance you've changed around your system at all that could have an effect?Tom
[Prev in Thread] | Current Thread | [Next in Thread] |