[h323plus] Compiling PTLib 2.10.1 in Ubuntu 11

JF NP jfnp090274 at yahoo.es
Wed Jun 22 02:35:58 EDT 2011

Thank you, Piyush. But it seems that I've that installed already:

sudo apt-get install libpthread-stubs0-dev
[sudo] password for xxxxxxx: 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
libpthread-stubs0-dev is already the newest version.
libpthread-stubs0-dev set to manually installed.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

De: Piyush Verma <piyush.pv at gmail.com>
Para: JF NP <jfnp090274 at yahoo.es>
CC: h323plus at lists.packetizer.com
Enviado: mié,22 junio, 2011 03:42
Asunto: Re: [h323plus] Compiling PTLib 2.10.1 in Ubuntu 11


Try to install  libpthread-stubs0-dev.

sudo apt-get install libpthread-stubs0-dev.

pthread stubs not provided by native libc, development files.

Thanks & Regards

Piyush Verma

On Tue, Jun 21, 2011 at 11:14 PM, JF NP <jfnp090274 at yahoo.es> wrote:

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

More information about the h323plus mailing list