|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[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! PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Nov 20 18:00:01 2025 UTC |
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 !