#23206 [Fbk->Csd]: Compile failure with informix enabled
| From: | maro dot ciullini at datamar dot it | Date: | Thu, 17 Apr 2003 07:34:55 +0000 |
| Subject: | #23206 [Fbk->Csd]: Compile failure with informix enabled | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-37793@lists.php.net to get a copy of this message | ||
ID: 23206
User updated by: maro dot ciullini at datamar dot it
Reported By: maro dot ciullini at datamar dot it
-Status: Feedback
+Status: Closed
Bug Type: Compile Failure
Operating System: linux redhat 9
PHP Version: 4.3.1
New Comment:
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
Previous Comments:
------------------------------------------------------------------------
[2003-04-15 11:10:02] 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-15 07:05:55] 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-14 14:33:12] 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-14 12:14:54] 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 11:24:53] 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?
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=23206&edit=1