# Undefined reference to 'pthread\_sigmask' error when make

**URL:** <https://www.ruby-forum.com/t/undefined-reference-to-pthread-sigmask-error-when-make/240344>\
**Category:** GNU Radio\
**Created:** [April 9, 2014, 6:37am UTC](https://www.ruby-forum.com/t/undefined-reference-to-pthread-sigmask-error-when-make/240344 "2014-04-09T06:37:29Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Detlef\_R](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/58f4c7/32.png) [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Post date:** [April 9, 2014, 6:37am UTC](https://www.ruby-forum.com/t/undefined-reference-to-pthread-sigmask-error-when-make/240344/1 "2014-04-09T06:37:29Z")

</div>

Hi,

I am trying to build gnuradio from source in Ubuntu 12.04.

[http://jenkins.gnuradio.org/builds/gnuradio-current.tar.gz](http://jenkins.gnuradio.org/builds/gnuradio-current.tar.gz)  
and  
3.7.3 release: [Index of /releases/gnuradio/](http://gnuradio.org/releases/gnuradio/)

are tried, but both encounter:

[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

even if I use -lpthread explicitly.

Anyone also encounter that? Thanks a lot!

cmake information is also attached:

## – The CXX compiler identification is GNU 4.6.3 – The C compiler identification is GNU 4.6.3 – Check for working CXX compiler: /usr/bin/c++ – Check for working CXX compiler: /usr/bin/c++ – works – Detecting CXX compiler ABI info – Detecting CXX compiler ABI info - done – Check for working C compiler: /usr/bin/cc – Check for working C compiler: /usr/bin/cc – works – Detecting C compiler ABI info – Detecting C compiler ABI info - done – Build type not specified: defaulting to release. – Found Git: /usr/bin/git – Performing Test HAVE\_VISIBILITY\_HIDDEN – Performing Test HAVE\_VISIBILITY\_HIDDEN - Success – Performing Test HAVE\_WARN\_SIGN\_COMPARE – Performing Test HAVE\_WARN\_SIGN\_COMPARE - Success – Performing Test HAVE\_WARN\_ALL – Performing Test HAVE\_WARN\_ALL - Success – Performing Test HAVE\_WARN\_NO\_UNINITIALIZED – Performing Test HAVE\_WARN\_NO\_UNINITIALIZED - Success – Compiler Version: cc (Ubuntu/Linaro 4.6.3-1ubuntu5) 4.6.3 Copyright (C) 2011 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. – Compiler Flags: /usr/bin/cc:::-O3 -DNDEBUG /usr/bin/c++:::-O3 -DNDEBUG – ADDING PERF COUNTERS – Found PythonLibs: /usr/lib/libpython2.7.so (found suitable version “2.7.3”, minimum required is “2”) – Found SWIG: /usr/bin/swig2.0 (found version “2.0.4”) – Minimum SWIG version required is 1.3.31

## – The build system will automatically enable all components. – Use -DENABLE\_DEFAULT=OFF to disable components by default.

## – Configuring python-support support… – Dependency PYTHONLIBS\_FOUND = TRUE – Dependency SWIG\_FOUND = TRUE – Dependency SWIG\_VERSION\_CHECK = TRUE – Enabling python-support support. – Override with -DENABLE\_PYTHON=ON/OFF – Found PkgConfig: /usr/bin/pkg-config (found version “0.26”) – checking for module ‘cppunit’ – found cppunit, version 1.12.1 – Found CPPUNIT: /usr/lib/libcppunit.so;dl

## – Configuring testing-support support… – Dependency CPPUNIT\_FOUND = TRUE – Enabling testing-support support. – Override with -DENABLE\_TESTING=ON/OFF

## – Configuring volk support… – Enabling volk support. – Override with -DENABLE\_VOLK=ON/OFF – Found PythonInterp: /usr/bin/python2 (found suitable version “2.7.3”, minimum required is “2”)

## – Python checking for python \>= 2.5 – Python checking for python \>= 2.5 - found

## – Python checking for Cheetah \>= 2.0.0 – Python checking for Cheetah \>= 2.0.0 - found – Boost version: 1.48.0 – Found the following Boost libraries: – filesystem – system – unit\_test\_framework – program\_options – checking for module ‘orc-0.4 \> 0.4.11’ – found orc-0.4 \> 0.4.11, version 0.4.16 – Found ORC: /usr/lib/x86\_64-linux-gnu/liborc-0.4.so – Looking for cpuid.h – Looking for cpuid.h - found – Looking for intrin.h – Looking for intrin.h - not found – Looking for fenv.h – Looking for fenv.h - found – Looking for dlfcn.h – Looking for dlfcn.h - found – Compiler name: GNU – Performing Test HAVE\_WERROR\_UNUSED\_CMD\_LINE\_ARG – Performing Test HAVE\_WERROR\_UNUSED\_CMD\_LINE\_ARG - Failed – x86\* CPU detected – Performing Test have\_maltivec – Performing Test have\_maltivec - Failed – Performing Test have\_mfloat\_abi\_softfp – Performing Test have\_mfloat\_abi\_softfp - Failed – Performing Test have\_mfloat\_abi\_hard – Performing Test have\_mfloat\_abi\_hard - Failed – Performing Test have\_mfpu\_neon – Performing Test have\_mfpu\_neon - Failed – Performing Test have\_funsafe\_math\_optimizations – Performing Test have\_funsafe\_math\_optimizations - Success – Performing Test have\_m32 – Performing Test have\_m32 - Failed – Performing Test have\_m64 – Performing Test have\_m64 - Success – Performing Test have\_m3dnow – Performing Test have\_m3dnow - Success – Performing Test have\_msse4\_2 – Performing Test have\_msse4\_2 - Success – Performing Test have\_mpopcnt – Performing Test have\_mpopcnt - Success – Performing Test have\_mmmx – Performing Test have\_mmmx - Success – Performing Test have\_msse – Performing Test have\_msse - Success – Performing Test have\_msse2 – Performing Test have\_msse2 - Success – Performing Test have\_msse3 – Performing Test have\_msse3 - Success – Performing Test have\_mssse3 – Performing Test have\_mssse3 - Success – Performing Test have\_msse4a – Performing Test have\_msse4a - Success – Performing Test have\_msse4\_1 – Performing Test have\_msse4\_1 - Success – Performing Test have\_mavx – Performing Test have\_mavx - Success – Check size of void\*[8] – Check size of void\*[8] - done – CPU width is 64 bits, Overruled arch 32 – Available architectures: generic;64;3dnow;abm;popcount;mmx;sse;sse2;orc;norc;sse3;ssse3;sse4\_a;sse4\_1;sse4\_2;avx – Available machines: generic\_orc;sse2\_64\_mmx\_orc;sse3\_64\_orc;ssse3\_64\_orc;sse4\_a\_64\_orc;sse4\_1\_64\_orc;sse4\_2\_64\_orc;avx\_64\_mmx\_orc – BUILTTYPERELEASE – Base cflags = -O3 -DNDEBUG – BUILD INFO ::: generic\_orc ::: GNU ::: -O3 -DNDEBUG – BUILD INFO ::: sse2\_64\_mmx\_orc ::: GNU ::: -O3 -DNDEBUG -m64 -mmmx -msse -msse2 – BUILD INFO ::: sse3\_64\_orc ::: GNU ::: -O3 -DNDEBUG -m64 -mmmx -msse -msse2 -msse3 – BUILD INFO ::: ssse3\_64\_orc ::: GNU ::: -O3 -DNDEBUG -m64 -mmmx -msse -msse2 -msse3 -mssse3 – BUILD INFO ::: sse4\_a\_64\_orc ::: GNU ::: -O3 -DNDEBUG -m64 -mmmx -msse -msse2 -msse3 -msse4a -mpopcnt – BUILD INFO ::: sse4\_1\_64\_orc ::: GNU ::: -O3 -DNDEBUG -m64 -mmmx -msse -msse2 -msse3 -mssse3 -msse4.1 – BUILD INFO ::: sse4\_2\_64\_orc ::: GNU ::: -O3 -DNDEBUG -m64 -mmmx -msse -msse2 -msse3 -mssse3 -msse4.1 -msse4.2 -mpopcnt – BUILD INFO ::: avx\_64\_mmx\_orc ::: GNU ::: -O3 -DNDEBUG -m64 -mmmx -msse -msse2 -msse3 -mssse3 -msse4.1 -msse4.2 -mpopcnt -mavx – Compiler Version: cc (Ubuntu/Linaro 4.6.3-1ubuntu5) 4.6.3 Copyright (C) 2011 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. – Loading build date Wed, 09 Apr 2014 01:45:22 into constants… – Loading version 0.1 into constants… – Using install prefix: /usr/local – ENABLE\_GR\_LOG set to ON. – HAVE\_LOG4CPP set to False. – LOG4CPP\_LIBRARIES set to . – Found Doxygen: /usr/bin/doxygen (found version “1.7.6.1”) – Could NOT find Sphinx (missing: SPHINX\_EXECUTABLE)

## – Configuring doxygen support… – Dependency DOXYGEN\_FOUND = YES – Enabling doxygen support. – Override with -DENABLE\_DOXYGEN=ON/OFF

## – Configuring sphinx support… – Dependency SPHINX\_FOUND = FALSE – Disabling sphinx support. – Override with -DENABLE\_SPHINX=ON/OFF – Boost version: 1.48.0 – Found the following Boost libraries: – date\_time – program\_options – filesystem – system – thread – Looking for C++ include netdb.h – Looking for C++ include netdb.h - found – Looking for C++ include sys/time.h – Looking for C++ include sys/time.h - found – Looking for C++ include sys/types.h – Looking for C++ include sys/types.h - found – Looking for C++ include sys/select.h – Looking for C++ include sys/select.h - found – Looking for C++ include sys/socket.h – Looking for C++ include sys/socket.h - found – Looking for C++ include io.h – Looking for C++ include io.h - not found – Looking for C++ include sys/mman.h – Looking for C++ include sys/mman.h - found – Looking for C++ include sys/ipc.h – Looking for C++ include sys/ipc.h - found – Looking for C++ include sys/shm.h – Looking for C++ include sys/shm.h - found – Looking for C++ include signal.h – Looking for C++ include signal.h - found – Looking for C++ include netinet/in.h – Looking for C++ include netinet/in.h - found – Looking for C++ include arpa/inet.h – Looking for C++ include arpa/inet.h - found – Looking for C++ include byteswap.h – Looking for C++ include byteswap.h - found – Looking for C++ include linux/ppdev.h – Looking for C++ include linux/ppdev.h - found – Looking for C++ include dev/ppbus/ppi.h – Looking for C++ include dev/ppbus/ppi.h - not found – Looking for C++ include unistd.h – Looking for C++ include unistd.h - found – Looking for C++ include malloc.h – Looking for C++ include malloc.h - found – Performing Test HAVE\_SNPRINTF – Performing Test HAVE\_SNPRINTF - Success – Performing Test HAVE\_SIGACTION – Performing Test HAVE\_SIGACTION - Success – Performing Test HAVE\_SELECT – Performing Test HAVE\_SELECT - Success – Performing Test HAVE\_SYSCONF – Performing Test HAVE\_SYSCONF - Success – Performing Test HAVE\_GETPAGESIZE – Performing Test HAVE\_GETPAGESIZE - Success – Performing Test HAVE\_SSLEEP – Performing Test HAVE\_SSLEEP - Failed – Performing Test HAVE\_NANOSLEEP – Performing Test HAVE\_NANOSLEEP - Success – Performing Test HAVE\_GETTIMEOFDAY – Performing Test HAVE\_GETTIMEOFDAY - Success – Performing Test HAVE\_POSIX\_MEMALIGN – Performing Test HAVE\_POSIX\_MEMALIGN - Success – Performing Test HAVE\_VALLOC – Performing Test HAVE\_VALLOC - Success – Performing Test HAVE\_PTHREAD\_SIGMASK – Performing Test HAVE\_PTHREAD\_SIGMASK - Success – Performing Test HAVE\_CREATEFILEMAPPING – Performing Test HAVE\_CREATEFILEMAPPING - Failed – Performing Test HAVE\_SHM\_OPEN – Performing Test HAVE\_SHM\_OPEN - Success – Performing Test HAVE\_SINCOS – Performing Test HAVE\_SINCOS - Success – Performing Test HAVE\_SINCOSF – Performing Test HAVE\_SINCOSF - Success – Performing Test HAVE\_SINF – Performing Test HAVE\_SINF - Success – Performing Test HAVE\_COSF – Performing Test HAVE\_COSF - Success – Performing Test HAVE\_MMAP – Performing Test HAVE\_MMAP - Success – Performing Test HAVE\_PTHREAD\_SETSCHEDPARAM – Performing Test HAVE\_PTHREAD\_SETSCHEDPARAM - Success – Performing Test HAVE\_SCHED\_SETSCHEDULER – Performing Test HAVE\_SCHED\_SETSCHEDULER - Success

## – Configuring gnuradio-runtime support… – Dependency Boost\_FOUND = TRUE – Dependency ENABLE\_VOLK = ON – Dependency PYTHONINTERP\_FOUND = TRUE – Enabling gnuradio-runtime support. – Override with -DENABLE\_GNURADIO\_RUNTIME=ON/OFF – package ‘Ice-3.5’ not found – ICE 3.5 not found. Looking for 3.4 – package ‘Ice-3.4’ not found

## – Configuring gr-ctrlport support… – Dependency Boost\_FOUND = TRUE – Dependency SWIG\_FOUND = TRUE – Dependency SWIG\_VERSION\_CHECK = TRUE – Dependency ICE\_FOUND = – Dependency ENABLE\_GNURADIO\_RUNTIME = ON – Disabling gr-ctrlport support. – Override with -DENABLE\_GR\_CTRLPORT=ON/OFF – Looking for C++ include sys/resource.h – Looking for C++ include sys/resource.h - found – Loading build date Wed, 09 Apr 2014 01:45:27 into constants… – Loading version v3.7.x-xxx-xunknown into constants… – Looking for C++ include windows.h – Looking for C++ include windows.h - not found – TRY\_SHM\_VMCIRCBUF set to ON. – Looking for stdint.h – Looking for stdint.h - found – Looking for stddef.h – Looking for stddef.h - found – Check size of size\_t – Check size of size\_t - done – Check size of unsigned int – Check size of unsigned int - done – Boost version: 1.48.0 – Found the following Boost libraries: – date\_time – program\_options – filesystem – system – thread

## – Configuring gr-blocks support… – Dependency Boost\_FOUND = TRUE – Dependency ENABLE\_GNURADIO\_RUNTIME = ON – Enabling gr-blocks support. – Override with -DENABLE\_GR\_BLOCKS=ON/OFF

## – Python checking for python \>= 2.5 – Python checking for python \>= 2.5 - found

## – Python checking for Cheetah \>= 2.0.0 – Python checking for Cheetah \>= 2.0.0 - found

## – Python checking for lxml \>= 1.3.6 – Python checking for lxml \>= 1.3.6 - found

## – Python checking for pygtk \>= 2.10.0 – Python checking for pygtk \>= 2.10.0 - found

## – Python checking for numpy – Python checking for numpy - found

## – Configuring gnuradio-companion support… – Dependency ENABLE\_GNURADIO\_RUNTIME = ON – Dependency ENABLE\_PYTHON = ON – Dependency PYTHON\_MIN\_VER\_FOUND = TRUE – Dependency CHEETAH\_FOUND = TRUE – Dependency LXML\_FOUND = TRUE – Dependency PYGTK\_FOUND = TRUE – Dependency NUMPY\_FOUND = TRUE – Enabling gnuradio-companion support. – Override with -DENABLE\_GRC=ON/OFF – Boost version: 1.48.0 – Found the following Boost libraries: – date\_time – program\_options – filesystem – system – thread

## – Configuring gr-fec support… – Dependency Boost\_FOUND = TRUE – Dependency ENABLE\_GNURADIO\_RUNTIME = ON – Dependency ENABLE\_GR\_BLOCKS = ON – Enabling gr-fec support. – Override with -DENABLE\_GR\_FEC=ON/OFF – Boost version: 1.48.0 – Found the following Boost libraries: – date\_time – program\_options – filesystem – system – thread – checking for module ‘fftw3f \>= 3.0’ – found fftw3f , version 3.3 – Found FFTW3F: /usr/lib/libfftw3f.so

## – Configuring gr-fft support… – Dependency ENABLE\_VOLK = ON – Dependency Boost\_FOUND = TRUE – Dependency ENABLE\_GNURADIO\_RUNTIME = ON – Dependency ENABLE\_GR\_BLOCKS = ON – Dependency FFTW3F\_FOUND = TRUE – Enabling gr-fft support. – Override with -DENABLE\_GR\_FFT=ON/OFF – Boost version: 1.48.0 – Found the following Boost libraries: – date\_time – program\_options – filesystem – system – thread

## – Configuring gr-filter support… – Dependency ENABLE\_VOLK = ON – Dependency Boost\_FOUND = TRUE – Dependency ENABLE\_GNURADIO\_RUNTIME = ON – Dependency ENABLE\_GR\_FFT = ON – Dependency ENABLE\_GR\_BLOCKS = ON – Enabling gr-filter support. – Override with -DENABLE\_GR\_FILTER=ON/OFF – Boost version: 1.48.0 – Found the following Boost libraries: – date\_time – program\_options – filesystem – system – thread

## – Configuring gr-analog support… – Dependency Boost\_FOUND = TRUE – Dependency ENABLE\_VOLK = ON – Dependency ENABLE\_GNURADIO\_RUNTIME = ON – Dependency ENABLE\_GR\_FFT = ON – Dependency ENABLE\_GR\_FILTER = ON – Enabling gr-analog support. – Override with -DENABLE\_GR\_ANALOG=ON/OFF – Boost version: 1.48.0 – Found the following Boost libraries: – date\_time – program\_options – filesystem – system – thread

## – Configuring gr-digital support… – Dependency Boost\_FOUND = TRUE – Dependency ENABLE\_VOLK = ON – Dependency ENABLE\_GNURADIO\_RUNTIME = ON – Dependency ENABLE\_GR\_FFT = ON – Dependency ENABLE\_GR\_FILTER = ON – Dependency ENABLE\_GR\_BLOCKS = ON – Dependency ENABLE\_GR\_ANALOG = ON – Dependency ENABLE\_GR\_BLOCKS = ON – Dependency ENABLE\_GR\_FILTER = ON – Enabling gr-digital support. – Override with -DENABLE\_GR\_DIGITAL=ON/OFF – Boost version: 1.48.0 – Found the following Boost libraries: – date\_time – program\_options – filesystem – system – thread

## – Configuring gr-atsc support… – Dependency Boost\_FOUND = TRUE – Dependency ENABLE\_GNURADIO\_RUNTIME = ON – Dependency ENABLE\_GR\_FFT = ON – Dependency ENABLE\_GR\_BLOCKS = ON – Dependency ENABLE\_GR\_FEC = ON – Dependency ENABLE\_GR\_FILTER = ON – Dependency ENABLE\_GR\_ANALOG = ON – Enabling gr-atsc support. – Override with -DENABLE\_GR\_ATSC=ON/OFF – Boost version: 1.48.0 – Found the following Boost libraries: – date\_time – program\_options – filesystem – system – thread

## – Configuring gr-audio support… – Dependency Boost\_FOUND = TRUE – Dependency ENABLE\_GNURADIO\_RUNTIME = ON – Enabling gr-audio support. – Override with -DENABLE\_GR\_AUDIO=ON/OFF – checking for module ‘alsa’ – found alsa, version 1.0.25 – Found ALSA 1.0.25 – checking for module ‘jack’ – package ‘jack’ not found – Looking for C++ include AudioUnit/AudioUnit.h – Looking for C++ include AudioUnit/AudioUnit.h - not found – Looking for C++ include AudioToolbox/AudioToolbox.h – Looking for C++ include AudioToolbox/AudioToolbox.h - not found – checking for module ‘portaudio’ – package ‘portaudio’ not found – Could NOT find PORTAUDIO (missing: PORTAUDIO\_INCLUDE\_DIRS PORTAUDIO\_LIBRARIES) – Boost version: 1.48.0 – Found the following Boost libraries: – date\_time – program\_options – filesystem – system – thread – checking for module ‘comedilib’ – package ‘comedilib’ not found

## – Configuring gr-comedi support… – Dependency COMEDI\_FOUND = – Dependency LINUX = TRUE – Dependency Boost\_FOUND = TRUE – Dependency ENABLE\_GNURADIO\_RUNTIME = ON – Disabling gr-comedi support. – Override with -DENABLE\_GR\_COMEDI=ON/OFF – Boost version: 1.48.0 – Found the following Boost libraries: – date\_time – program\_options – filesystem – system – thread

## – Configuring gr-channels support… – Dependency ENABLE\_VOLK = ON – Dependency Boost\_FOUND = TRUE – Dependency ENABLE\_GNURADIO\_RUNTIME = ON – Dependency ENABLE\_GR\_BLOCKS = ON – Dependency ENABLE\_GR\_FFT = ON – Dependency ENABLE\_GR\_FILTER = ON – Dependency ENABLE\_GR\_ANALOG = ON – Enabling gr-channels support. – Override with -DENABLE\_GR\_CHANNELS=ON/OFF – Boost version: 1.48.0 – Found the following Boost libraries: – date\_time – program\_options – filesystem – system – thread

## – Configuring gr-noaa support… – Dependency Boost\_FOUND = TRUE – Dependency ENABLE\_GNURADIO\_RUNTIME = ON – Dependency ENABLE\_GR\_BLOCKS = ON – Enabling gr-noaa support. – Override with -DENABLE\_GR\_NOAA=ON/OFF – Boost version: 1.48.0 – Found the following Boost libraries: – date\_time – program\_options – filesystem – system – thread

## – Configuring gr-pager support… – Dependency Boost\_FOUND = TRUE – Dependency ENABLE\_GNURADIO\_RUNTIME = ON – Dependency ENABLE\_GR\_FILTER = ON – Dependency ENABLE\_GR\_ANALOG = ON – Enabling gr-pager support. – Override with -DENABLE\_GR\_PAGER=ON/OFF – Boost version: 1.48.0 – Found the following Boost libraries: – date\_time – program\_options – filesystem – system – thread – Looking for Q\_WS\_X11 – Looking for Q\_WS\_X11 - found – Looking for Q\_WS\_WIN – Looking for Q\_WS\_WIN - not found – Looking for Q\_WS\_QWS – Looking for Q\_WS\_QWS - not found – Looking for Q\_WS\_MAC – Looking for Q\_WS\_MAC - not found – Found Qt4: /usr/bin/qmake (found suitable version “4.8.1”, minimum required is “4.2.0”) – QWT Version: 5.2.2 – Found Qwt: /usr/lib/libqwt-qt4.so

## – Python checking for PyQt4 – Python checking for PyQt4 - found

## – Configuring gr-qtgui support… – Dependency Boost\_FOUND = TRUE – Dependency QT4\_FOUND = TRUE – Dependency QWT\_FOUND = TRUE – Dependency ENABLE\_VOLK = ON – Dependency ENABLE\_GNURADIO\_RUNTIME = ON – Dependency ENABLE\_GR\_FFT = ON – Dependency ENABLE\_GR\_FILTER = ON – Dependency PYTHONLIBS\_FOUND = TRUE – Dependency PYQT4\_FOUND = TRUE – Enabling gr-qtgui support. – Override with -DENABLE\_GR\_QTGUI=ON/OFF – Boost version: 1.48.0 – Found the following Boost libraries: – date\_time – program\_options – filesystem – system – thread

## – Configuring gr-trellis support… – Dependency Boost\_FOUND = TRUE – Dependency ENABLE\_GNURADIO\_RUNTIME = ON – Dependency ENABLE\_GR\_ANALOG = ON – Dependency ENABLE\_GR\_BLOCKS = ON – Dependency ENABLE\_GR\_DIGITAL = ON – Enabling gr-trellis support. – Override with -DENABLE\_GR\_TRELLIS=ON/OFF – Boost version: 1.48.0 – Found the following Boost libraries: – date\_time – program\_options – filesystem – system – thread – checking for module ‘uhd’ – found uhd, version 003.006.002-64-g92b0b7ab – Found UHD: /usr/local/lib/libuhd.so

## – Configuring gr-uhd support… – Dependency Boost\_FOUND = TRUE – Dependency UHD\_FOUND = TRUE – Dependency ENABLE\_GNURADIO\_RUNTIME = ON – Dependency ENABLE\_GR\_FILTER = ON – Dependency ENABLE\_GR\_BLOCKS = ON – Dependency ENABLE\_GR\_ANALOG = ON – Enabling gr-uhd support. – Override with -DENABLE\_GR\_UHD=ON/OFF

## – Configuring gr-utils support… – Dependency ENABLE\_GNURADIO\_RUNTIME = ON – Dependency ENABLE\_PYTHON = ON – Enabling gr-utils support. – Override with -DENABLE\_GR\_UTILS=ON/OFF – Boost version: 1.48.0 – Found the following Boost libraries: – date\_time – program\_options – filesystem – system – thread – Looking for include file pthread.h – Looking for include file pthread.h - found – Looking for pthread\_create – Looking for pthread\_create - not found – Looking for pthread\_create in pthreads – Looking for pthread\_create in pthreads - not found – Looking for pthread\_create in pthread – Looking for pthread\_create in pthread - found – Found Threads: TRUE – Found SDL: /usr/lib/x86\_64-linux-gnu/libSDL.so;/usr/lib/x86\_64-linux-gnu/libSDLmain.a;-lpthread (found version “1.2.14”)

## – Configuring gr-video-sdl support… – Dependency SDL\_FOUND = TRUE – Dependency Boost\_FOUND = TRUE – Dependency ENABLE\_GNURADIO\_RUNTIME = ON – Enabling gr-video-sdl support. – Override with -DENABLE\_GR\_VIDEO\_SDL=ON/OFF – Boost version: 1.48.0 – Found the following Boost libraries: – date\_time – program\_options – filesystem – system – thread

## – Configuring gr-vocoder support… – Dependency Boost\_FOUND = TRUE – Dependency ENABLE\_GNURADIO\_RUNTIME = ON – Dependency ENABLE\_GR\_FFT = ON – Dependency ENABLE\_GR\_BLOCKS = ON – Dependency ENABLE\_GR\_FILTER = ON – Dependency ENABLE\_GR\_ANALOG = ON – Enabling gr-vocoder support. – Override with -DENABLE\_GR\_VOCODER=ON/OFF – Boost version: 1.48.0 – Found the following Boost libraries: – date\_time – program\_options – filesystem – system – thread – checking for module ‘libusb-1.0’ – found libusb-1.0, version 1.0.9-rc3 – Found libusb-1.0: /usr/include/libusb-1.0, /usr/lib/x86\_64-linux-gnu/ libusb-1.0.so

## – Configuring gr-fcd support… – Dependency Boost\_FOUND = TRUE – Dependency ENABLE\_GNURADIO\_RUNTIME = ON – Dependency ENABLE\_GR\_BLOCKS = ON – Dependency ENABLE\_GR\_AUDIO = ON – Dependency LIBUSB\_FOUND = TRUE – Enabling gr-fcd support. – Override with -DENABLE\_GR\_FCD=ON/OFF – Boost version: 1.48.0 – Found the following Boost libraries: – date\_time – program\_options – filesystem – system – thread – checking for module ‘gsl \>= 1.10’ – found gsl , version 1.15

## – Configuring gr-wavelet support… – Dependency Boost\_FOUND = TRUE – Dependency ENABLE\_GNURADIO\_RUNTIME = ON – Dependency ENABLE\_GR\_BLOCKS = ON – Dependency ENABLE\_GR\_ANALOG = ON – Dependency GSL\_FOUND = 1 – Enabling gr-wavelet support. – Override with -DENABLE\_GR\_WAVELET=ON/OFF – Boost version: 1.48.0 – Found the following Boost libraries: – date\_time – program\_options – filesystem – system – thread

## – Python checking for wx \>= 2.8 – Python checking for wx \>= 2.8 - found

## – Python checking for numpy – Python checking for numpy - found

## – Configuring gr-wxgui support… – Dependency ENABLE\_GNURADIO\_RUNTIME = ON – Dependency ENABLE\_GR\_FFT = ON – Dependency ENABLE\_GR\_FILTER = ON – Dependency ENABLE\_GR\_ANALOG = ON – Dependency ENABLE\_PYTHON = ON – Dependency NUMPY\_FOUND = TRUE – Dependency WX\_FOUND = TRUE – Enabling gr-wxgui support. – Override with -DENABLE\_GR\_WXGUI=ON/OFF

## – ###################################################### – # Gnuradio enabled components – ###################################################### – \* python-support – \* testing-support – \* volk – \* doxygen – \* gnuradio-runtime – \* gr-blocks – \* gnuradio-companion – \* gr-fec – \* gr-fft – \* gr-filter – \* gr-analog – \* gr-digital – \* gr-atsc – \* gr-audio – \* gr-channels – \* gr-noaa – \* gr-pager – \* gr-qtgui – \* gr-trellis – \* gr-uhd – \* gr-utils – \* gr-video-sdl – \* gr-vocoder – \* gr-fcd – \* gr-wavelet – \* gr-wxgui

## – ###################################################### – # Gnuradio disabled components – ###################################################### – \* sphinx – \* gr-ctrlport – \* gr-comedi

– Using install prefix: /usr/local  
– Building for version: v3.7.x-xxx-xunknown / 3.7.4git  
– Configuring done  
– Generating done  
– Build files have been written to: /home/ryjiao/git/gnuradio/build

BR

Jiao X.(Ryan)

---

<div class="post-metadata">

**Author:** ![Jiao\_X](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/bbce88/32.png) [@Jiao\_X](https://www.ruby-forum.com/u/Jiao_X)\
**Post date:** [April 9, 2014, 4:38pm UTC](https://www.ruby-forum.com/t/undefined-reference-to-pthread-sigmask-error-when-make/240344/2 "2014-04-09T16:38:32Z")

</div>

On Wed, Apr 9, 2014 at 12:36 AM, Jiao X. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
wrote:

> [33%] Generating xor\_bb\_impl.h, xor\_ss\_impl.h, xor\_ii\_impl.h  
> collect2: ld returned 1 exit status
> 
> even if I use -lpthread explicitly.
> 
> 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 - Success

So 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

---

<div class="post-metadata">

**Author:** ![Jiao\_X](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/bbce88/32.png) [@Jiao\_X](https://www.ruby-forum.com/u/Jiao_X)\
**Post date:** [April 13, 2014, 4:58am UTC](https://www.ruby-forum.com/t/undefined-reference-to-pthread-sigmask-error-when-make/240344/3 "2014-04-13T04:58:49Z")

</div>

Thanks for your clues.

I haven’t solved it successfully.
