Operating System - HP-UX
1827804 Members
2150 Online
109969 Solutions
New Discussion

Re: Problem on compiling php-5.2.5

 
mrlowprofile
Occasional Contributor

Problem on compiling php-5.2.5

hi all,

im having problem when compiling my php-5.2.5 from source .. im stuck when this message appear ..

"configure: error: ZTS currently requires working POSIX threads. We were unable to verify that your system supports Pthreads."

command on compiling php;

./configure --with-apxs2=/usr/local/apache2/bin/apxs \
--with-mysql=/usr/local/mysql \
--prefix=/usr/local/apache2/php \
--without-tsrm-pthreads
--with-config-file-path=/usr/local/apache2/php \
--enable-force-cgi-redirect \
--disable-cgi \
--with-zlib \
--with-gettext \
--with-gdbm

results -->

loading cache ./config.cache
checking for Cygwin environment... (cached) no
checking for mingw32 environment... (cached) no
checking for egrep... (cached) grep -E
checking for a sed that does not truncate output... (cached) /usr/bin/sed
checking host system type... hppa2.0w-hp-hpux11.11
checking target system type... hppa2.0w-hp-hpux11.11
checking for gcc... (cached) cc
checking whether the C compiler (cc ) works... yes
checking whether the C compiler (cc ) is a cross-compiler... no
checking whether we are using GNU C... (cached) no
checking whether cc accepts -g... (cached) no
checking how to run the C preprocessor... (cached) cc -E
checking for icc... no
checking whether cc understands -c and -o together... (cached) yes
checking how to run the C preprocessor... cc -E
checking for AIX... no
checking whether ln -s works... (cached) yes
checking for system library directory... lib
checking whether to enable runpaths... yes
checking if compiler supports -R... (cached) no
checking if compiler supports -Wl,-rpath,... (cached) no
checking for re2c... no
configure: warning: You will need re2c 0.12.0 or later if you want to regenerate PHP parsers.
checking for gawk... (cached) awk
checking if awk is broken... no
checking for bison... (cached) bison -y
checking for bison version... (cached) 2.1 (ok)
checking for flex... (cached) flex
checking for yywrap in -lfl... (cached) no
checking lex output file root... (cached) lex.yy
checking whether yytext is a pointer... (cached) no
checking for working const... (cached) no
checking for flex version... (cached) 2.5.4 (ok)
checking whether to force non-PIC code in shared modules... no
checking whether /dev/urandom exists... no
checking for pthreads_cflags... (cached)
checking for pthreads_lib... (cached)

Configuring SAPI modules
checking for AOLserver support... no
checking for Apache 1.x module support via DSO through APXS... no
checking for Apache 1.x module support... no
checking whether to enable Apache charset compatibility option... no
checking for Apache 2.0 filter-module support via DSO through APXS... no
checking for Apache 2.0 handler-module support via DSO through APXS... Use of uninitialized value in concatenation (.) or string at /usr/local/apache2/bin/apxs line 237.
Use of uninitialized value in concatenation (.) or string at /usr/local/apache2/bin/apxs line 237.
Use of uninitialized value in concatenation (.) or string at /usr/local/apache2/bin/apxs line 237.
Use of uninitialized value in concatenation (.) or string at /usr/local/apache2/bin/apxs line 237.
Use of uninitialized value in concatenation (.) or string at /usr/local/apache2/bin/apxs line 237.
Use of uninitialized value in concatenation (.) or string at /usr/local/apache2/bin/apxs line 237.
Use of uninitialized value in concatenation (.) or string at /usr/local/apache2/bin/apxs line 237.
Use of uninitialized value in concatenation (.) or string at /usr/local/apache2/bin/apxs line 237.
Use of uninitialized value in concatenation (.) or string at /usr/local/apache2/bin/apxs line 237.
Use of uninitialized value in concatenation (.) or string at /usr/local/apache2/bin/apxs line 237.
Use of uninitialized value in concatenation (.) or string at /usr/local/apache2/bin/apxs line 237.
Use of uninitialized value in concatenation (.) or string at /usr/local/apache2/bin/apxs line 237.
configure: error: ZTS currently requires working POSIX threads. We were unable to verify that your system supports Pthreads.

How do i by pass ZTS ?

Thanks in advance.
1 REPLY 1
Dennis Handly
Acclaimed Contributor

Re: Problem on compiling php-5.2.5

How is it testing that HP-UX supports Pthreads?

The small test case must have: #include
And link with -lpthread.