ID:               28719
 Updated by:       [EMAIL PROTECTED]
 Reported By:      terry dot bowling at verizon dot com
-Status:           Open
+Status:           Bogus
 Bug Type:         Informix related
 Operating System: Fedora Core 2
 PHP Version:      4.3.7
 New Comment:

This is a problem with the SPRMS, please file a bug with the Fedora
people.


Previous Comments:
------------------------------------------------------------------------

[2004-06-10 03:39:32] terry dot bowling at verizon dot com

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 this bug report at http://bugs.php.net/?id=28719&edit=1

Reply via email to