#36577 [NEW]: soap extension fails; reports php_session.h problem

From: Date: Wed, 01 Mar 2006 17:47:05 +0000
Subject: #36577 [NEW]: soap extension fails; reports php_session.h problem
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-93808@lists.php.net to get a copy of this message
From: mit at mitayai dot org Operating system: FreeBSD 4.11 PHP version: 5.1.2 PHP Bug Type: Compile Failure Bug description: soap extension fails; reports php_session.h problem Description: ------------ When compiling /usr/ports/net/php5-:soap (php5-soap-5.1.2_1) my system kicks out an error relating to the session extension (which is also 5.1.2_1): Reproduce code: --------------- In file included from /usr/ports/net/php5-soap/work/php-5.1.2/ext/soap/soap.c:27: /usr/local/include/php/ext/session/php_session.h:194: syntax error before `encode' /usr/local/include/php/ext/session/php_session.h:194: `php_session_register_serializer' declared as function returning a function /usr/local/include/php/ext/session/php_session.h:195: syntax error before `int' *** Error code 1 Stop in /usr/ports/net/php5-soap/work/php-5.1.2/ext/soap. *** Error code 1 Stop in /usr/ports/net/php5-soap. Actual result: -------------- [server1:root]/usr/ports/net/php5-soap# make clean all deinstall reinstall ===> Cleaning for php5-5.1.2_1 ===> Cleaning for php5-session-5.1.2_1 ===> Cleaning for autoconf-2.59_2 ===> Cleaning for pkgconfig-0.20 ===> Cleaning for libxml2-2.6.23_1 ===> Cleaning for apache-2.0.55_4 ===> Cleaning for libgnugetopt-1.2 ===> Cleaning for perl-5.8.8 ===> Cleaning for m4-1.4.4 ===> Cleaning for help2man-1.36.3 ===> Cleaning for gmake-3.80_2 ===> Cleaning for libiconv-1.9.2_2 ===> Cleaning for openssl-0.9.8a ===> Cleaning for libtool-1.5.22_2 ===> Cleaning for expat-2.0.0_1 ===> Cleaning for db4-4.0.14_1,1 ===> Cleaning for rc_subr-1.31_1 ===> Cleaning for gdbm-1.8.3_2 ===> Cleaning for p5-gettext-1.05_1 ===> Cleaning for gettext-0.14.5_2 ===> Cleaning for php5-soap-5.1.2_1 ===> WARNING: Vulnerability database out of date, checking anyway ===> Extracting for php5-soap-5.1.2_1 => MD5 Checksum OK for php-5.1.2.tar.bz2. => SHA256 Checksum OK for php-5.1.2.tar.bz2. ===> Patching for php5-soap-5.1.2_1 ===> Applying FreeBSD patches for php5-soap-5.1.2_1 ===> php5-soap-5.1.2_1 depends on file: /usr/local/include/php/main/php.h - found ===> php5-soap-5.1.2_1 depends on executable: phpize - found ===> php5-soap-5.1.2_1 depends on file: /usr/local/lib/php/20050922/session.so - found ===> php5-soap-5.1.2_1 depends on file: /usr/local/bin/autoconf259 - found ===> php5-soap-5.1.2_1 depends on executable: pkg-config - found ===> php5-soap-5.1.2_1 depends on shared library: xml2.5 - found ===> PHPizing for php5-soap-5.1.2_1 Configuring for: PHP Api Version: 20041225 Zend Module Api No: 20050922 Zend Extension Api No: 220051025 ===> Configuring for php5-soap-5.1.2_1 configure: WARNING: you should use --build, --host, --target checking for egrep... grep -E checking for a sed that does not truncate output... /usr/bin/sed checking for i386-portbld-freebsd4.11-gcc... cc checking for C compiler default output file name... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether cc accepts -g... yes checking for cc option to accept ANSI C... none needed checking whether cc understands -c and -o together... yes checking if compiler supports -R... yes checking build system type... i386-portbld-freebsd4.11 checking host system type... i386-portbld-freebsd4.11 checking target system type... i386-portbld-freebsd4.11 checking for PHP prefix... /usr/local checking for PHP includes... -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext checking for PHP extension directory... /usr/local/lib/php/20050922 checking for PHP installed headers prefix... /usr/local/include/php checking for re2c... no configure: WARNING: You will need re2c 0.9.11 or later if you want to regenerate PHP parsers. checking for gawk... no checking for nawk... nawk checking if nawk is broken... no checking whether to enable SOAP support... yes, shared checking libxml2 install dir... /usr/local checking for xml2-config path... /usr/local/bin/xml2-config checking whether libxml build works... yes checking for ld used by cc... /usr/libexec/elf/ld checking if the linker (/usr/libexec/elf/ld) is GNU ld... yes checking for /usr/libexec/elf/ld option to reload object files... -r checking for BSD-compatible nm... nm checking whether ln -s works... yes checking how to recognise dependent libraries... pass_all checking how to run the C preprocessor... cc -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... no checking for unistd.h... yes checking dlfcn.h usability... yes checking dlfcn.h presence... yes checking for dlfcn.h... yes checking for i386-portbld-freebsd4.11-g++... c++ checking whether we are using the GNU C++ compiler... yes checking whether c++ accepts -g... yes checking how to run the C++ preprocessor... c++ -E checking the maximum length of command line arguments... (cached) 65536 checking command to parse nm output from cc object... ok checking for objdir... .libs checking for i386-portbld-freebsd4.11-ar... no checking for ar... ar checking for i386-portbld-freebsd4.11-ranlib... no checking for ranlib... ranlib checking for i386-portbld-freebsd4.11-strip... no checking for strip... strip checking if cc static flag works... yes checking if cc supports -fno-rtti -fno-exceptions... yes checking for cc option to produce PIC... -fPIC checking if cc PIC flag -fPIC works... yes checking if cc supports -c -o file.o... yes checking whether the cc linker (/usr/libexec/elf/ld) supports shared libraries... yes checking whether -lc should be explicitly linked in... yes checking dynamic linker characteristics... freebsd4.11 ld.so checking how to hardcode library paths into programs... immediate checking whether stripping libraries is possible... yes checking if libtool supports shared libraries... yes checking whether to build shared libraries... yes checking whether to build static libraries... no creating libtool appending configuration tag "CXX" to libtool checking for ld used by c++... /usr/libexec/elf/ld checking if the linker (/usr/libexec/elf/ld) is GNU ld... yes checking whether the c++ linker (/usr/libexec/elf/ld) supports shared libraries... yes checking for c++ option to produce PIC... -fPIC checking if c++ PIC flag -fPIC works... yes checking if c++ supports -c -o file.o... yes checking whether the c++ linker (/usr/libexec/elf/ld) supports shared libraries... yes checking dynamic linker characteristics... freebsd4.11 ld.so checking how to hardcode library paths into programs... immediate checking whether stripping libraries is possible... yes configure: creating ./config.status config.status: creating config.h ===> Building for php5-soap-5.1.2_1 /bin/sh /usr/ports/net/php5-soap/work/php-5.1.2/ext/soap/libtool --mode=compile cc -I. -I/usr/ports/net/php5-soap/work/php-5.1.2/ext/soap -DPHP_ATOM_INC -I/usr/ports/net/php5-soap/work/php-5.1.2/ext/soap/include -I/usr/ports/net/php5-soap/work/php-5.1.2/ext/soap/main -I/usr/ports/net/php5-soap/work/php-5.1.2/ext/soap -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/libxml2 -I/usr/local/include -DHAVE_CONFIG_H -O -pipe -c /usr/ports/net/php5-soap/work/php-5.1.2/ext/soap/soap.c -o soap.lo mkdir .libs cc -I. -I/usr/ports/net/php5-soap/work/php-5.1.2/ext/soap -DPHP_ATOM_INC -I/usr/ports/net/php5-soap/work/php-5.1.2/ext/soap/include -I/usr/ports/net/php5-soap/work/php-5.1.2/ext/soap/main -I/usr/ports/net/php5-soap/work/php-5.1.2/ext/soap -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/libxml2 -I/usr/local/include -DHAVE_CONFIG_H -O -pipe -c /usr/ports/net/php5-soap/work/php-5.1.2/ext/soap/soap.c -fPIC -DPIC -o .libs/soap.o In file included from /usr/ports/net/php5-soap/work/php-5.1.2/ext/soap/soap.c:27: /usr/local/include/php/ext/session/php_session.h:194: syntax error before `encode' /usr/local/include/php/ext/session/php_session.h:194: `php_session_register_serializer' declared as function returning a function /usr/local/include/php/ext/session/php_session.h:195: syntax error before `int' *** Error code 1 Stop in /usr/ports/net/php5-soap/work/php-5.1.2/ext/soap. *** Error code 1 Stop in /usr/ports/net/php5-soap. [server1:root]/usr/ports/net/php5-soap# -- Edit bug report at http://bugs.php.net/?id=36577&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=36577&r=trysnapshot44 Try a CVS snapshot (PHP 5.1): http://bugs.php.net/fix.php?id=36577&r=trysnapshot51 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=36577&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=36577&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=36577&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=36577&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=36577&r=needscript Try newer version: http://bugs.php.net/fix.php?id=36577&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=36577&r=support Expected behavior: http://bugs.php.net/fix.php?id=36577&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=36577&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=36577&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=36577&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=36577&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=36577&r=dst IIS Stability: http://bugs.php.net/fix.php?id=36577&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=36577&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=36577&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=36577&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=36577&r=mysqlcfg

« previous php.bugs (#93808) next »