<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"><div>Thank you, Piyush. But it seems that I've that installed already:<br><br>sudo apt-get install libpthread-stubs0-dev<br>[sudo] password for xxxxxxx: <br>Reading package lists... Done<br>Building dependency tree       <br>Reading state information... Done<br>libpthread-stubs0-dev is already the newest version.<br>libpthread-stubs0-dev set to manually installed.<br>0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.<br></div><div style="font-family:times new roman, new york, times, serif;font-size:12pt"><br><div style="font-family:times new roman, new york, times, serif;font-size:12pt"><font face="Tahoma" size="2"><hr size="1"><b><span style="font-weight: bold;">De:</span></b> Piyush Verma <piyush.pv@gmail.com><br><b><span style="font-weight:
 bold;">Para:</span></b> JF NP <jfnp090274@yahoo.es><br><b><span style="font-weight: bold;">CC:</span></b> h323plus@lists.packetizer.com<br><b><span style="font-weight: bold;">Enviado:</span></b> mié,22 junio, 2011 03:42<br><b><span style="font-weight: bold;">Asunto:</span></b> Re: [h323plus] Compiling PTLib 2.10.1 in Ubuntu 11<br></font><br>Hi,<br><br>Try to install  libpthread-stubs0-dev.<br><br>sudo apt-get install libpthread-stubs0-dev.<br><br>pthread stubs not provided by native libc, development files.<br><br><br><br>-- <br>Thanks & Regards<br><br>Piyush Verma<br>
<br><br><br><br><br><br><div class="gmail_quote">On Tue, Jun 21, 2011 at 11:14 PM, JF NP <span dir="ltr"><<a rel="nofollow" ymailto="mailto:jfnp090274@yahoo.es" target="_blank" href="mailto:jfnp090274@yahoo.es">jfnp090274@yahoo.es</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div><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></div></blockquote></div><br><br clear="all"><br><br>
</div></div>



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