Bug #18297 Updated: Unable to link correctly a stable PHP kernel
| From: | sniper@php.net | Date: | Fri, 12 Jul 2002 22:37:22 +0000 |
| Subject: | Bug #18297 Updated: Unable to link correctly a stable PHP kernel | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-14029@lists.php.net to get a copy of this message | ||
ID: 18297
Updated by: sniper@php.net
Reported By: fturi@chez.com
-Status: Open
+Status: Feedback
Bug Type: Compile Failure
Operating System: AIX 4.3.3
PHP Version: 4.2.1
New Comment:
Snapshots have that bad thing about them that they're sometimes
broken.. :(
I fixed this, but you need to wait until a new snapshot
is generated. http://snaps.php.net/php4-latest.tar.gz
Make sure the revision in ext/standard/image.c is 1.66 or above. If
not, then the snapshot is too old and you have to wait for new one to
be generated (about 3 hours)
Previous Comments:
------------------------------------------------------------------------
[2002-07-12 08:53:40] fturi@chez.com
Thanks for the very quick answer.
Downloaded the php4-200207120000 snapshot but I don't manage to build
it (with the same environment).
() GNU@sigp3:/u08/open_data/build/php4-200207120000>make
/bin/sh libtool --silent --mode=compile cc -Iext/standard/
-I/u08/open_data/build/php4-200207120000/ext/standard/ -DPHP_ATO
M_INC -I/u08/open_data/build/php4-200207120000/include
-I/u08/open_data/build/php4-200207120000/main
-I/u08/open_data/build/php4-200
207120000 -I/u08/open_data/build/php4-200207120000/Zend
-I/opt/freeware/include -I/usr/local/include
-I/u06/app/oracle/product/8.1.7
/rdbms/public -I/u06/app/oracle/product/8.1.7/rdbms/demo
-I/u08/open_data/build/php4-200207120000/ext/xml/expat
-I/usr/local/includ
e -I/opt/freeware/include -DAIX=43 -DUSE_PTHREAD_SERIALIZED_ACCEPT
-DAIX_BIND_PROCESSOR -DUSE_HSREGEX -DUSE_EXPAT -I/u08/open_data/b
uild/php4-200207120000/TSRM -I/usr/local/include
-I/opt/freeware/include -prefer-pic -c
/u08/open_data/build/php4-200207120000/ext/
standard/image.c -o ext/standard/image.lo
"/u08/open_data/build/php4-200207120000/TSRM/tsrm_config_common.h",
line 27.2: 1506-224 (W) Incorrect #pragma ignored.
"/u08/open_data/build/php4-200207120000/ext/standard/image.c", line
593.23: 1506-334 (S) Identifier uchar has already been defined o
n line 455 of "/usr/include/sys/types.h".
"/u08/open_data/build/php4-200207120000/ext/standard/image.c", line
601.25: 1506-019 (S) Expecting an array or a pointer to object t
ype.
"/u08/open_data/build/php4-200207120000/ext/standard/image.c", line
601.53: 1506-019 (S) Expecting an array or a pointer to object t
ype.
"/u08/open_data/build/php4-200207120000/ext/standard/image.c", line
603.25: 1506-019 (S) Expecting an array or a pointer to object t
ype.
"/u08/open_data/build/php4-200207120000/ext/standard/image.c", line
603.53: 1506-019 (S) Expecting an array or a pointer to object t
ype.
"/u08/open_data/build/php4-200207120000/ext/standard/image.c", line
621.55: 1506-019 (S) Expecting an array or a pointer to object t
ype.
"/u08/open_data/build/php4-200207120000/ext/standard/image.c", line
622.26: 1506-019 (S) Expecting an array or a pointer to object t
ype.
"/u08/open_data/build/php4-200207120000/ext/standard/image.c", line
622.55: 1506-019 (S) Expecting an array or a pointer to object t
ype.
"/u08/open_data/build/php4-200207120000/ext/standard/image.c", line
624.55: 1506-019 (S) Expecting an array or a pointer to object t
ype.
"/u08/open_data/build/php4-200207120000/ext/standard/image.c", line
625.26: 1506-019 (S) Expecting an array or a pointer to object t
ype.
"/u08/open_data/build/php4-200207120000/ext/standard/image.c", line
625.55: 1506-019 (S) Expecting an array or a pointer to object t
ype.
make: The error code from the last command is 1.
Stop.
------------------------------------------------------------------------
[2002-07-12 04:43:02] sniper@php.net
Please try this snapshot:
http://snaps.php.net/php4-latest.tar.gz
(you can safely ignore those warnings about incorrect file suffix..)
------------------------------------------------------------------------
[2002-07-12 04:36:08] fturi@chez.com
Hi to every body. I'm having an hard time to compile a stable PHP DSO
library for Aix 4.3.3
I tried different Apache server (1.13.12 shipped with oracle Ias 9i
releaase 1, 1.13.26 binary shipped from www.apache.org)
I tried different PHP version (4.0.6, 4.1.2, 4.2.1)
but all of them have the same problems on my Unix box.
I trully appreciate some help on that issue.
Best regards, Francois TURI
Symptom:
PHP unstable: function pow generate a segmentation fault when running
on apache server.
Auto test failure:
Running tests in /u08/open_data/build/php-4.2.1//ext/session/test
==============================================================
Session Object Serialization (001.phpt)
... failed
session_unset() without any session
... passed
Session Object Deserialization (003.phpt)
... failed
session_set_save_handler test (004.phpt)
... failed
Custom save handler, multiple session_start()s, complex data structu
... failed
References between variables in sessions (006.phpt)
... failed
Running tests in
/u08/open_data/build/php-4.2.1//ext/standard/tests/array
=====================================================================
Test array_merge and array_walk (001.phpt)
... failed
Test arsort, asort, krsort, ksort, rsort, and sort (002.phpt)
... failed
Test usort, uksort and uasort (003.phpt)
... failed
Test natsort and natcasesort
... passed
search_array and in_array (including bug 13567)
... passed
count
... passed
Running tests in
/u08/open_data/build/php-4.2.1//ext/standard/tests/math
========================================================================
Simple math tests
... passed
Tests for floor en ceil (floorceil.phpt)
... failed
Various pow() tests
... passed
Simple math tests
... passed
Running tests in /u08/open_data/build/php-4.2.1//tests/basic
============================================================
Trivial "Hello World" test
... passed
Simple POST Method test (002.phpt)
... failed
GET and POST Method combined (003.phpt)
... failed
Two variables in POST data (004.phpt)
... failed
Three variables in POST data (005.phpt)
... failed
Add 3 variables together and print result
... passed
Multiply 3 variables and print result
... passed
Divide 3 variables and print result
... passed
Subtract 3 variables and print result
... passed
Testing | and & operators
... passed
Testing $argc and $argv handling (011.phpt)
... failed
Running tests in /u08/open_data/build/php-4.2.1//tests/func
===========================================================
Strlen() function test
... passed
Static variables in functions
... passed
General function test
... passed
General function test
... passed
Testing register_shutdown_function()
... passed
Output buffering test (006.phpt)
... failed
TEST RESULT SUMMARY
=============================
Number of tests: 278
Tests skipped: 135 ( 49%)
Tests failed: 50 ( 35%)
Tests passed: 93 ( 65%)
=============================
Skipped 0 extensions.
PHP Version: 4.2.1
My Aix box is composed of:
Aix native IBM C Compiler
Aix native IBM ld linker
Open ldap from "IBM" RPM openldap-2.0.21-3.aix4.3.ppc.rpm
DB from "IBM" RPM db-3.3.11-1.aix4.3.ppc.rpm
PERL 5.0.6 from "IBM" perl-5.6.1-2.aix4.3.ppc.rpm
bison 1.28 from "IBM" bison-1.28-5.aix4.3.ppc.rpm
Building environement:
export LIBPATH=/usr/lib:/usr/local/lib:/opt/freeware/lib
export LIBRARY_PATH=$LIBPATH
export CFLAGS="-I/usr/local/include -I/opt/freeware/include"
export CPPFLAGS=$CFLAGS
export C_INCLUDE_PATH=/usr/local/include:/opt/freeware/include
export LDFLAGS="-L/usr/lib -L/usr/local/lib -L/opt/freeware/lib"
export LANG=C
export LC_CTYPE=en_US
export CC=cc
#export GCC_EXEC_PREFIX=
export LOCPATH=/usr/lib/nls/loc
export PATH=/usr/local/bin:/opt/freeware/bin:/usr/bin:$PATH
configure --with-config-file-path=$ORACLE_HOME/Apache/Apache/conf
\
--with-apxs=$ORACLE_HOME/Apache/Apache/bin/apxs --enable-static
\
--with-ldap=/opt/freeware
\
--with-mhash=/usr/local/mhash
\
--with-openssl=/usr/local/ssl
\
--with-oci8
Trace of linkage phase:
make[1]: Entering directory `/u08/open_data/build/php-4.2.1'
/bin/sh /u08/open_data/build/php-4.2.1/libtool --silent --mode=compile
cc -I. -I/u08/open_data/build/php-4.2.1/
-I/u08/open_data/build/php-4.2.1/main -I/u08/open_data/build/php-4.2.1
-I/usr/local/apache/include -I/u08/open_data/build/php-4.2.1/Zend
-I/usr/local/ssl/include -I/opt/freeware/include -I/usr/local/include
-I/u08/open_data/build/php-4.2.1/ext/mysql/libmysql
-I/u06/app/oracle/product/8.1.7/rdbms/public
-I/u06/app/oracle/product/8.1.7/rdbms/demo
-I/u08/open_data/build/php-4.2.1/ext/xml/expat -I/usr/local/include
-I/opt/freeware/include -DAIX=43 -DUSE_PTHREAD_SERIALIZED_ACCEPT
-DAIX_BIND_PROCESSOR -DUSE_HSREGEX -DUSE_EXPAT
-I/u08/open_data/build/php-4.2.1/TSRM -I/usr/local/include
-I/opt/freeware/include -prefer-pic -c stub.c
"stub.c", line 1: 1506-356 (W) Compilation unit is empty.
/bin/sh /u08/open_data/build/php-4.2.1/libtool --silent --mode=link cc
-I. -I/u08/open_data/build/php-4.2.1/
-I/u08/open_data/build/php-4.2.1/main -I/u08/open_data/build/php-4.2.1
-I/usr/local/apache/include -I/u08/open_data/build/php-4.2.1/Zend
-I/usr/local/ssl/include -I/opt/freeware/include -I/usr/local/include
-I/u08/open_data/build/php-4.2.1/ext/mysql/libmysql
-I/u06/app/oracle/product/8.1.7/rdbms/public
-I/u06/app/oracle/product/8.1.7/rdbms/demo
-I/u08/open_data/build/php-4.2.1/ext/xml/expat -I/usr/local/include
-I/opt/freeware/include -DAIX=43 -DUSE_PTHREAD_SERIALIZED_ACCEPT
-DAIX_BIND_PROCESSOR -DUSE_HSREGEX -DUSE_EXPAT
-I/u08/open_data/build/php-4.2.1/TSRM -I/usr/local/include
-I/opt/freeware/include -prefer-pic -L/usr/lib -L/usr/local/lib
-L/opt/freeware/lib -o libphp4.la -rpath
/u08/open_data/build/php-4.2.1/libs
-Wl,-bI:/usr/local/apache/libexec/httpd.exp -avoid-version
-L/usr/local/ssl/lib -L/opt/freeware/lib -L/usr/local/lib
-L/u06/app/oracle/product/8.1.7/lib -L/usr/lib -L/usr/local/lib
-L/opt/freeware/lib -R /usr/local/ssl/lib -R /opt/freeware/lib -R
/usr/local/lib -R /u06/app/oracle/product/8.1.7/lib stub.lo
Zend/libZend.la sapi/apache/libsapi.la main/libmain.la
regex/libregex.la /u08/open_data/build/php-4.2.1/ext/ctype/libctype.la
/u08/open_data/build/php-4.2.1/ext/ldap/libldap.la
/u08/open_data/build/php-4.2.1/ext/mhash/libmhash.la
/u08/open_data/build/php-4.2.1/ext/mysql/libmysql.la
/u08/open_data/build/php-4.2.1/ext/oci8/liboci8.la
/u08/open_data/build/php-4.2.1/ext/openssl/libopenssl.la
/u08/open_data/build/php-4.2.1/ext/pcre/libpcre.la
/u08/open_data/build/php-4.2.1/ext/posix/libposix.la
/u08/open_data/build/php-4.2.1/ext/session/libsession.la
/u08/open_data/build/php-4.2.1/ext/standard/libstandard.la
/u08/open_data/build/php-4.2.1/ext/xml/libxml.la TSRM/libtsrm.la -lld
-lbsd_r -lm -lodm -ldl -lmhash -lldap -llber -lcrypt -lssl -lcrypto
-lbind -lm -ldl -lcrypt -lclntsh -ldl
cc: 1501-218 file .libs/libphp4.lax/libZend.al/zend_language_parser.lo
contains an incorrect file suffix
cc: 1501-218 file .libs/libphp4.lax/libZend.al/zend_language_scanner.lo
contains an incorrect file suffix
cc: 1501-218 file .libs/libphp4.lax/libZend.al/zend_ini_parser.lo
contains an incorrect file suffix
cc: 1501-218 file .libs/libphp4.lax/libZend.al/zend_ini_scanner.lo
contains an incorrect file suffix
cc: 1501-218 file .libs/libphp4.lax/libZend.al/zend_alloc.lo contains
an incorrect file suffix
cc: 1501-218 file .libs/libphp4.lax/libZend.al/zend_compile.lo contains
an incorrect file suffix
cc: 1501-218 file .libs/libphp4.lax/libZend.al/zend_constants.lo
contains an incorrect file suffix
cc: 1501-218 file .libs/libphp4.lax/libZend.al/zend_dynamic_array.lo
contains an incorrect file suffix
cc: 1501-218 file .libs/libphp4.lax/libZend.al/zend_execute.lo contains
an incorrect file suffix
cc: 1501-218 file .libs/libphp4.lax/libZend.al/zend_execute_API.lo
contains an incorrect file suffix
cc: 1501-218 file .libs/libphp4.lax/libZend.al/zend_highlight.lo
contains an incorrect file suffix
cc: 1501-218 file .libs/libphp4.lax/libZend.al/zend_llist.lo contains
an incorrect file suffix
cc: 1501-218 file .libs/libphp4.lax/libZend.al/zend_opcode.lo contains
an incorrect file suffix
cc: 1501-218 file .libs/libphp4.lax/libZend.al/zend_operators.lo
contains an incorrect file suffix
cc: 1501-218 file .libs/libphp4.lax/libZend.al/zend_ptr_stack.lo
contains an incorrect file suffix
cc: 1501-218 file .libs/libphp4.lax/libZend.al/zend_stack.lo contains
an incorrect file suffix
cc: 1501-218 file .libs/libphp4.lax/libZend.al/zend_variables.lo
contains an incorrect file suffix
cc: 1501-218 file .libs/libphp4.lax/libZend.al/zend.lo contains an
incorrect file suffix
cc: 1501-218 file .libs/libphp4.lax/libZend.al/zend_API.lo contains an
incorrect file suffix
cc: 1501-218 file .libs/libphp4.lax/libZend.al/zend_extensions.lo
contains an incorrect file suffix
cc: 1501-218 file .libs/libphp4.lax/libZend.al/zend_hash.lo contains an
incorrect file suffix
cc: 1501-218 file .libs/libphp4.lax/libZend.al/zend_list.lo contains an
incorrect file suffix
cc: 1501-218 file .libs/libphp4.lax/libZend.al/zend_indent.lo contains
an incorrect file suffix
cc: 1501-218 file
.libs/libphp4.lax/libZend.al/zend_builtin_functions.lo contains an
incorrect file suffix
cc: 1501-218 file .libs/libphp4.lax/libZend.al/zend_sprintf.lo contains
an incorrect file suffix
cc: 1501-218 file .libs/libphp4.lax/libZend.al/zend_ini.lo contains an
incorrect file suffix
cc: 1501-218 file .libs/libphp4.lax/libZend.al/zend_qsort.lo contains
an incorrect file suffix
cc: 1501-218 file .libs/libphp4.lax/libsapi.al/sapi_apache.lo contains
an incorrect file suffix
cc: 1501-218 file .libs/libphp4.lax/libsapi.al/mod_php4.lo contains an
incorrect file suffix
cc: 1501-218 file .libs/libphp4.lax/libsapi.al/php_apache.lo contains
an incorrect file suffix
cc: 1501-218 file .libs/libphp4.lax/libmain.al/main.lo contains an
incorrect file suffix
...
etc
....
cc: 1501-218 file
/u08/open_data/build/php-4.2.1/ext/ctype/.libs/libctype.al contains an
incorrect file suffix
cc: 1501-218 file
/u08/open_data/build/php-4.2.1/ext/ldap/.libs/libldap.al contains an
incorrect file suffix
cc: 1501-218 file
/u08/open_data/build/php-4.2.1/ext/mhash/.libs/libmhash.al contains an
incorrect file suffix
cc: 1501-218 file
/u08/open_data/build/php-4.2.1/ext/mysql/.libs/libmysql.al contains an
incorrect file suffix
cc: 1501-218 file
/u08/open_data/build/php-4.2.1/ext/oci8/.libs/liboci8.al contains an
incorrect file suffix
cc: 1501-218 file
/u08/open_data/build/php-4.2.1/ext/openssl/.libs/libopenssl.al contains
an incorrect file suffix
cc: 1501-218 file
/u08/open_data/build/php-4.2.1/ext/pcre/.libs/libpcre.al contains an
incorrect file suffix
cc: 1501-218 file
/u08/open_data/build/php-4.2.1/ext/posix/.libs/libposix.al contains an
incorrect file suffix
cc: 1501-218 file
/u08/open_data/build/php-4.2.1/ext/session/.libs/libsession.al contains
an incorrect file suffix
cc: 1501-218 file
/u08/open_data/build/php-4.2.1/ext/standard/.libs/libstandard.al
contains an incorrect file suffix
cc: 1501-218 file
/u08/open_data/build/php-4.2.1/ext/xml/.libs/libxml.al contains an
incorrect file suffix
cc: 1501-218 file TSRM/.libs/libtsrm.al contains an incorrect file
suffix
make[1]: Leaving directory `/u08/open_data/build/php-4.2.1'
Making all in pear
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=18297&edit=1