php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #23206 Compile failure with informix enabled
Submitted: 2003-04-14 11:24 UTC Modified: 2003-04-17 02:34 UTC
Votes:2
Avg. Score:5.0 ± 0.0
Reproduced:2 of 2 (100.0%)
Same Version:1 (50.0%)
Same OS:2 (100.0%)
From: maro dot ciullini at datamar dot it Assigned:
Status: Closed Package: Compile Failure
PHP Version: 4.3.1 OS: linux redhat 9
Private report: No CVE-ID: None
 [2003-04-14 11:24 UTC] maro dot ciullini at datamar dot it
I installed apache 2.0.45 from source, then clsdk 2.81 (the most recent version available). 

then I set up informixdir, and I launch:

./configure --with-apxs2=/usr/sbin/apxs --with-informix=yes

then I launch make, and I see:

Incorrectly built binary which accesses errno, h_errno or _res directly. Needs to be fixed.
/bin/sh libtool --silent --mode=compile gcc -I/u/informix/incl/esql -Iext/informix/ -I/root/updates/php-4.3.1/ext/informix/ -DPHP_ATOM_INC -I/root/updates/php-4.3.1/include -I/root/updates/php-4.3.1/main -I/root/updates/php-4.3.1 -I/usr/include/apache -I/root/updates/php-4.3.1/Zend -I/root/updates/php-4.3.1/ext/xml/expat  -I/root/updates/php-4.3.1/TSRM  -g -O2  -prefer-pic -c /root/updates/php-4.3.1/ext/informix/ifx.c -o ext/informix/ifx.lo
/root/updates/php-4.3.1/ext/informix/ifx.ec: In function `zm_info_ifx':
/root/updates/php-4.3.1/ext/informix/ifx.ec:387: parse error before '/' token
/root/updates/php-4.3.1/ext/informix/ifx.ec:3121:17: operator '<' has no left operand
make: *** [ext/informix/ifx.lo] Error 1

I try to edit the file /root/updates/php-4.3.1/ext/informix/ifx.ec
and I put in some /* and */ to comment out some lines (one if and one endif, lines 3121 and 3134


make again...
and I get:
/root/updates/php-4.3.1/ext/informix/ifx.ec:387: parse error before '/' token

the line was:

sprintf(buf, "%02.2f", (double)(IFX_VERSION/100.0));
 I modify in: 
sprintf(buf, "%02.2f", (double)(100.0));

then I launch make again...

and I get:

ext/mysql/libmysql/my_tempnam.lo(.text+0x4c): In function `my_tempnam':
/root/updates/php-4.3.1/ext/mysql/libmysql/my_tempnam.c:103: the use of `tempnam' is dangerous, better use `mkstemp'
ext/mysql/libmysql/my_lib.lo(.text+0x3d1): In function `my_dir':
/root/updates/php-4.3.1/ext/mysql/libmysql/my_lib.c:169: undefined reference to
`errno'
ext/mysql/libmysql/my_lib.lo(.text+0x5ef): In function `my_stat':
/root/updates/php-4.3.1/ext/mysql/libmysql/my_lib.c:588: undefined reference to
`errno'
ext/mysql/libmysql/my_malloc.lo(.text+0xde): In function `my_malloc':
/root/updates/php-4.3.1/ext/mysql/libmysql/my_malloc.c:24: undefined reference to `errno'
ext/mysql/libmysql/my_realloc.lo(.text+0xd5): In function `my_realloc':
/root/updates/php-4.3.1/ext/mysql/libmysql/my_realloc.c:44: undefined reference
to `errno'
ext/mysql/libmysql/my_delete.lo(.text+0x86): In function `my_delete':
/root/updates/php-4.3.1/ext/mysql/libmysql/my_delete.c:16: undefined reference to `errno'
ext/mysql/libmysql/my_tempnam.lo(.text+0x89):/root/updates/php-4.3.1/ext/mysql/libmysql/my_tempnam.c:108: more undefined references to `errno' follow
/u/informix/lib/esql/libifgls.so: undefined reference to `__ctype_b'
/u/informix/lib/esql/libifgls.so: undefined reference to `__ctype_toupper'
/u/informix/lib/esql/libifgls.so: undefined reference to `__ctype_tolower'
collect2: ld returned 1 exit status
make: *** [sapi/cli/php] Error 1

MYSQL??? why? I don't want it, i did not wrote --with-mysql!!!

I am quite lost: I managed to install PHP 4.2.3 (and with the same "workarounds" explained before, it worked...) but I wish to install 4.3.1!

Any Ideas?





Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-04-14 12:14 UTC] maro dot ciullini at datamar dot it
I solved the Mysql Issue, compiling with --without-mysql option, but I always get the 

/u/informix/lib/esql/libifgls.so: undefined reference to `__ctype_b'
/u/informix/lib/esql/libifgls.so: undefined reference to
`__ctype_toupper'
/u/informix/lib/esql/libifgls.so: undefined reference to
`__ctype_tolower'
 [2003-04-14 14:33 UTC] magnus@php.net
Please try using this CVS snapshot:

  http://snaps.php.net/php4-STABLE-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php4-win32-STABLE-latest.zip

And bundled MySQL lib is enabled as default and have been 
that for a long time. 
 [2003-04-15 07:05 UTC] marco dot ciullini at datamar dot it
Tried last CVS, and I had less problems (I did not have to modify ifx.ec) but I get always a compile error message:

make 

(lot of cut)...

/u/informix/lib/esql/libifgls.so: undefined reference to `__ctype_b'
/u/informix/lib/esql/libifgls.so: undefined reference to `__ctype_toupper'
/u/informix/lib/esql/libifgls.so: undefined reference to `__ctype_tolower'
collect2: ld returned 1 exit status
make: *** [sapi/cli/php] Error 1

Same as before...
 [2003-04-15 11:10 UTC] philarete at mindspring dot com
The problem appears to be an incompatibility between the Informix CSDK (both 2.80 and 2.81) and Red Hat 9. Note the line

Incorrectly built binary which accesses errno, h_errno or _res directly. Needs to be fixed.

This is the first line output by "esql -V" when you run it under Red Hat 9. The PHP build process (in ext/informix/config.m4) calls sed to parse the first line output by "esql -V" to set IFX_VERSION: which fails because of the error message.
 [2003-04-17 02:34 UTC] maro dot ciullini at datamar dot it
Hi all, I tahnk you for the support you gave me.
After all, I saw it is not a PHP problem, but a Informix csdk problem on RedHat 9.
I tried with csdk 2.60, 2.80 and 2.81, but when I type esql -V I always get the error:
Incorrectly built binary which accesses errno, h_errno or _res directly. Needs to be fixed.
So I will send a bug report to Informix developers and RedHat.
I am downgrading to Red Hat 8.0, 'casue I'm sure that with that version works...
Bye
 [2003-09-09 11:12 UTC] awilliam at mdah dot state dot ms dot us
I am having the same problem.  But you can still use PHP with informix support on RedHat 9 if you use --disable-cli in your configure.

http://bugs.php.net/bug.php?id=25423$edit=2
 [2003-11-13 03:41 UTC] oliver dot faenger at cityweb dot de
I've got RH9 and try to compile php-4.3.4 or php-5.0.0b.
esql -V says:
IBM Informix CSDK Version 2.81, IBM Informix-ESQL Version 9.53.UC2
Software Serial Number RDS#N000000

And I still get: 
/opt/informix/lib/esql/libifgls.so: undefined reference to `__ctype_b'
/opt/informix/lib/esql/libifgls.so: undefined reference to `__ctype_toupper'
/opt/informix/lib/esql/libifgls.so: undefined reference to `__ctype_tolower'
collect2: ld returned 1 exit status
make: *** [sapi/cgi/php] Error 1

my configure was:
./configure --with-informix=/opt/informix  --disable-libxml --disable-simplexml --disable-xml --disable-dom --without-pear --disable-cli

Informix is recognized as version 953 (no config.m4 problem?)
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed Sep 18 20:01:27 2024 UTC