<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:times new roman,new york,times,serif;font-size:12pt">Hi,<br><br>I'm trying to build PTLib 2.10.1 in Ubuntu 11, and I have a problem with pthreads. When I run ./configure, I get the following output:<br><br><div>checking for pkg-config... /usr/bin/pkg-config<br>checking pkg-config is at least version 0.9.0... yes<br>checking for gcc... gcc<br>checking whether the C compiler works... yes<br>checking for C compiler default output file name... a.out<br>checking for suffix of executables... <br>checking whether we are cross compiling... no<br>checking for suffix of object files... o<br>checking whether we are using the GNU C compiler... yes<br>checking whether gcc accepts -g... yes<br>checking for gcc option to accept ISO C89... none needed<br>checking for g++... g++<br>checking whether we are using the GNU C++ compiler... yes<br>checking whether g++
 accepts -g... yes<br>.10figure: PTLib version is 2<br>checking build system type... i686-pc-linux-gnu<br>checking host system type... i686-pc-linux-gnu<br>checking target system type... i686-pc-linux-gnu<br>checking for swab... no<br>configure: OSTYPE set to linux<br>configure: OSRELEASE set to "2.6.38-8-generic"<br>configure: MACHTYPE set to x86<br>configure: gcc version is 4.5.2<br>checking checking if pragma implementation should be used... no<br>checking checking if precompiled headers available... no<br>checking how to run the C++ preprocessor... g++ -E<br>checking for grep that handles long lines and -e... /bin/grep<br>checking for egrep... /bin/grep -E<br>checking for ANSI C header files... no<br>checking for sys/types.h... no<br>checking for sys/stat.h... no<br>checking for stdlib.h... no<br>checking for string.h... no<br>checking for memory.h... no<br>checking for strings.h... no<br>checking for inttypes.h... no<br>checking for stdint.h...
 no<br>checking for unistd.h... no<br>checking whether byte ordering is bigendian... yes<br>configure: Default extension for C++ files is cpp<br>checking if compiler accepts -felide-constructors... no<br>checking if linker accepts -Wreorder... no<br>checking if debug build accepts -g3 -ggdb -O0... no<br>checking if compiler uses RTTI by default... no<br>checking size of int... 0<br>checking for long double with more range or precision than double... no<br>checking for flex... /usr/bin/flex<br>checking for ar... ar<br>checking for bison... /usr/bin/bison<br>checking if readdir_r has 2 parms... no<br>checking if readdir_r has 3 parms... no<br>configure: PTRACE and all trace logging included<br>configure: Using ANSI C++ bool for PBoolean: (PFalse=false PTrue=true)<br>checking for recvmsg... no<br>checking for IPV6_ADD_MEMBERSHIP... no<br>checking for NetLink support... no<br>checking if using STL streams... no<br>checking if atomic integer available...
 no<br>checking if Unix semaphores are available... no<br>checking if named semaphores are available... no<br>configure: WARNING: This host does not support semaphores which are essential<br>configure: WARNING: to implement 'critical sections'. This feature was added<br>configure: WARNING: in PWLib 1.7.0 and improves the stability of multithreaded<br>configure: WARNING: programs. This feature has been disabled for this host<br>checking for pthread_create in -lpthread... no<br>configure: error: must have pthreads!<br><br>But if I do: whereis pthread.h<br>I get: /usr/include/pthread.h<br><br>So it seems that pthreads is installed. What am I doing wrong? <br><br>Regards, and thank you in advance for your help.<br><br></div>



</div></body></html>