From:             terry dot bowling at verizon dot com
Operating system: Fedora Core 2
PHP version:      4.3.7
PHP Bug Type:     Informix related
Bug description:  problem with php-4.3.x and Informix Client SDK 2.81.UC1 UC2 UC3

Description:
------------
Cannot successfully compile php-informix when using any of the following
Fedora Core 2 srpms:
php-4.3.4-11, php-4.3.6-6, or php-4.3.7-1
As well as the source php-3.4.7 from php.net

I added the " || true" to the makefiles of 4.3.4 and 4.3.6 so they would
finish compiling just like 4.3.7 (see recent changelog), but all of them
give bad end results.

The only Informix Client SDK's available on IBM's website are 2.81.UC1,
2.81.UC2, and 2.81.UC3.  I tried all three with the same result. 

I set the following env vars:
INFORMIXDIR=/usr/local/informix
LD_LIBRARY_PATH=:/usr/local/informix/lib:/usr/local/informix/lib/esql

I was able to compile perl's DBD::Informix with no problems and I can
query and write to my DB, so I think informix sdk is fine.

I add --with-informix=/usr/local/informix to php's SPEC file.  It starts
compiling fine, then gives this error:

*******  RPM compile error:
   /usr/bin/ld: cannot find -lphpifx
   collect2: ld returned 1 exit status
   make: *** [sapi/cgi/php] Error 1
   error: Bad exit status from /home/admin/tmp/rpm-tmp.54071 (%build)

***  Strategy 2, forget the whole rpm and just do Informix module  ***

Since I already have php installed, I tried going into the
php4.3.x/ext/informix dir to compile this module by itself.  I used the
following commands:
phpize
./configure
make

It says it builds completely and without error.
cp modules/informix.so /usr/lib/php4/informix.so
put the appropriate informix.ini in /etc/php.d

then I use the following command to test it:
/home/admin>  php ifxtest.php

ifxtest.php contains the following lines of code:
<?
#ifx_connect(1,2,3);
?>

This script should give an error saying it could not connect to the
database because I gave it bogus parameters.  But instead I get:

/home/admin>  php ifxtest.php
PHP Warning:  Unknown(): Unable to load dynamic library
'/usr/lib/php4/informix.so' - /usr/local/informix/lib/esql/libifos.so:
undefined symbol: ifx_checkAPI in Unknown on line 0
Content-type: text/html
X-Powered-By: PHP/4.3.7

Actual result:
--------------
*******  RPM compile error:
   /usr/bin/ld: cannot find -lphpifx
   collect2: ld returned 1 exit status
   make: *** [sapi/cgi/php] Error 1
   error: Bad exit status from /home/admin/tmp/rpm-tmp.54071 (%build)

*******  php script using /usr/lib/php4/informix.so
/home/admin>  php ifxtest.php
PHP Warning:  Unknown(): Unable to load dynamic library
'/usr/lib/php4/informix.so' - /usr/local/informix/lib/esql/libifos.so:
undefined symbol: ifx_checkAPI in Unknown on line 0
Content-type: text/html
X-Powered-By: PHP/4.3.7


-- 
Edit bug report at http://bugs.php.net/?id=28719&edit=1
-- 
Try a CVS snapshot (php4):  http://bugs.php.net/fix.php?id=28719&r=trysnapshot4
Try a CVS snapshot (php5):  http://bugs.php.net/fix.php?id=28719&r=trysnapshot5
Fixed in CVS:               http://bugs.php.net/fix.php?id=28719&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=28719&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=28719&r=needtrace
Need Reproduce Script:      http://bugs.php.net/fix.php?id=28719&r=needscript
Try newer version:          http://bugs.php.net/fix.php?id=28719&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=28719&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=28719&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=28719&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=28719&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=28719&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=28719&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=28719&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=28719&r=isapi
Install GNU Sed:            http://bugs.php.net/fix.php?id=28719&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=28719&r=float

Reply via email to