PHP build error
Posted in 2003
Topics: Error Codes & Troubleshooting, Connectivity: ESQL/C, 4GL & Embedded SQL, Platform-Specific Issues, Internationalization & Character Sets
AIX 5.1 ML3
IBM HTTPServer 1.3.12.0
Openssl 0.9.7b
Informix 9.3
PHP 4.3.2
INFORMIXDIR=/informix/93 is set$INFORMIXDIR/bin included in path
configure command:
./configure --with-openssl=/usr/local/ssl --with-informix=/informix/93 --wit
h-apxs=/usr/HTTPServer/bin/apxs --without-mysql
I get the following message during the configuration phase:
checking for Informix support... yes
checking Informix version... Could not load program
/informix/93/lib/esql/esqlc:
The program is a discontinued 64-bit object file.
./configure[36654]: test: argument expected
During the make phase, I get the following message:
/bin/sh
/scratch/php-4.3.2/libtool --silent --preserve-dup-deps --mode=compile
c -Iext/ctype/ -I/scratch/php-4.3.2/ext/ctype/ -DPHP_ATOM_INC -I/scratch/ph
p-4.3.2/include -I/scratch/php-4.3.2/main -I/scratch/php-4.3.2 -I/scratch/ph
p-4.3.2/Zend -I/usr/local/ssl/include -I/scratch/php-4.3.2/ext/xml/expat -D
__H_LOCALEDEF -I/scratch/php-4.3.2/TSRM -g -prefer-pic -c
/scratch/php-4.3.2/ext/ctype/ctype.c -o ext/ctype/ctype.lo
/bin/sh
/scratch/php-4.3.2/libtool --silent --preserve-dup-deps --mode=link cc
/informix/93/lib/esql/checkapi.o -o ext/informix/libphpifx.a
ar: 0707-132 /informix/93/lib/esql/checkapi.o is a discontinued XCOFF64
file.
ar: 0707-126 /informix/93/lib/esql/checkapi.o is not valid with the current
object file mode.
Use the -X option to specify the desired object mode.
make: 1254-004 The error code from the last command is 2.
Stop.
Has anyone seen this before? Anybody have any suggestions? Any help would
be appreciated.
James T. Sprinkle
AIX System Programmer/Administrator
Assuming that your esql install is working then I'd suspect
that the LD_LIBRARY_PATH or AIX equivalent is not set. Our standard
php config line is
INCL=/usr/local/include ./configure \\
--enable-track-vars \\
--with-informix \\
--with-openssl=shared,/usr/local/ssl \\
--with-imap \\
--with-imap-ssl=shared,/usr/local/ssl \\
--enable-safe-mode \\
--prefix=${PHPHOME} \\
--with-apxs=${WEBHOME}/bin/apxs \\
--enable-trans-sid \\
--enable-inline-optimization
"James T. Sprinkle" wrote:
>
> AIX 5.1 ML3
> IBM HTTPServer 1.3.12.0
> Openssl 0.9.7b
> Informix 9.3
> PHP 4.3.2
>
> INFORMIXDIR=/informix/93 is set> $INFORMIXDIR/bin included in path
>
> configure command:
> ./configure --with-openssl=/usr/local/ssl --with-informix=/informix/93 --wit
> h-apxs=/usr/HTTPServer/bin/apxs --without-mysql
>
> I get the following message during the configuration phase:
>
> checking for Informix support... yes
> checking Informix version... Could not load program
> /informix/93/lib/esql/esqlc:
> The program is a discontinued 64-bit object file.
> ./configure[36654]: test: argument expected
>
> During the make phase, I get the following message:
>
> /bin/sh
> /scratch/php-4.3.2/libtool --silent --preserve-dup-deps --mode=compile
> c -Iext/ctype/ -I/scratch/php-4.3.2/ext/ctype/ -DPHP_ATOM_INC -I/scratch/ph
> p-4.3.2/include -I/scratch/php-4.3.2/main -I/scratch/php-4.3.2 -I/scratch/ph
> p-4.3.2/Zend -I/usr/local/ssl/include -I/scratch/php-4.3.2/ext/xml/expat -D
> __H_LOCALEDEF -I/scratch/php-4.3.2/TSRM -g -prefer-pic -c
> /scratch/php-4.3.2/ext/ctype/ctype.c -o ext/ctype/ctype.lo
> /bin/sh
> /scratch/php-4.3.2/libtool --silent --preserve-dup-deps --mode=link cc
> /informix/93/lib/esql/checkapi.o -o ext/informix/libphpifx.a
> ar: 0707-132 /informix/93/lib/esql/checkapi.o is a discontinued XCOFF64
> file.
> ar: 0707-126 /informix/93/lib/esql/checkapi.o is not valid with the current
> object file mode.
> Use the -X option to specify the desired object mode.
> make: 1254-004 The error code from the last command is 2.
>
> Stop.
>
> Has anyone seen this before? Anybody have any suggestions? Any help would
> be appreciated.
>
> James T. Sprinkle
> AIX System Programmer/Administrator
--
Paul Watson #
Oninit Ltd # Growing old is mandatory
Tel: +44 1436 672201 # Growing up is optional
Fax: +44 1436 678693 #
Mob: +44 7818 003457 #
www.oninit.com #