php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #25423 Compile failure on using --with-informix
Submitted: 2003-09-07 23:50 UTC Modified: 2003-09-09 11:00 UTC
From: awilliam at mdah dot state dot ms dot us Assigned:
Status: Not a bug Package: Compile Failure
PHP Version: 4.3.3 OS: Redhat 9 Linux 2.4.21
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: awilliam at mdah dot state dot ms dot us
New email:
PHP Version: OS:

 

 [2003-09-07 23:50 UTC] awilliam at mdah dot state dot ms dot us
Description:
------------
I am compiling PHP 4.3.3 on RH 9 Linux 2.4.21.  My configure is as follows:

./configure --enable-track-vars --without-mysql --with-mail --with-apxs2=/usr/local/apache2/bin/apxs --with-informix

And when I do make, this is what happens:

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

and then returns me to the prompt and PHP isn't finished compiling.  Any suggestions on how to make it compile?  I have PHP 5 compiled and working on the server, but I don't like using beta software on a production server, and am having a few problems with PHP 5 and some of our scripts, so I'd like to stick with PHP 4.3.3 because it works with our scripts on another server (which is solaris 7 with informix and PHP 4.3.2)  Thanks!


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-09-07 23:59 UTC] awilliam at mdah dot state dot ms dot us
Oh, I forgot to add that I am running INFORMIX-SQL Version   7.30.UC6 nad I have the Client SDK, version 2.81 UC-1 which is the latest version of the SDK ( http://www14.software.ibm.com/webapp/download/preconfig.jsp?id=2003-03-18+12%3A53%3A09.323902C&cat=&fam=&s=&S_TACT=&S_CMP= )
 [2003-09-08 00:05 UTC] awilliam at mdah dot state dot ms dot us
I found that if I use --disable-cli on my configure, it compiles fine, but I'd like to have the use of CLI, also.  I had to disable cli on php 5 as well to get it to compile.
 [2003-09-08 08:34 UTC] sniper@php.net
Try this patch:

http://www.php.net/~jani/patches/bug25352.patch

(running 'autoconf' after applying it should be enough)
And of course, 'rm config.cache && ./config.nice'

 [2003-09-08 09:09 UTC] sniper@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

Try the snapshot in about hour from now.

 [2003-09-09 09:57 UTC] awilliam at mdah dot state dot ms dot us
Hello, I just tried compiling with php4-STABLE-200309091130 and I still get the same error.
 [2003-09-09 11:00 UTC] sniper@php.net
See bug #23206 (this is not PHP bug)


 [2004-04-05 07:49 UTC] clairedelaunay at ifrance dot com
If you want to compile php with --enable-cli, you should follow this way (excuse my poor english)

first : ./configure with all options that you need
then : create a file patch.c
----------------------patch.c------------------------
__const unsigned short int *__ctype_b;
__const __int32_t *__ctype_tolower;
__const __int32_t *__ctype_toupper;


void ctSetup()
{
__ctype_b = *(__ctype_b_loc());
__ctype_toupper = *(__ctype_toupper_loc());
__ctype_tolower = *(__ctype_tolower_loc());
}
-----------------------------------------------------
save this file in path_php_source/ext/informix/
edit path_php_source/ext/informix/ifx.c
and add ' #include "patch.c"' after '#include "php_ini.h"'

then type : make
You MUST execute ./configure before patch ifx.c !
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Sep 10 23:01:27 2024 UTC