ID:               25423
 Comment by:       clairedelaunay at ifrance dot com
 Reported By:      awilliam at mdah dot state dot ms dot us
 Status:           Bogus
 Bug Type:         Compile Failure
 Operating System: Redhat 9 Linux 2.4.21
 PHP Version:      4.3.3
 New Comment:

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 !


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

[2003-09-09 11:00:21] [EMAIL PROTECTED]

See bug #23206 (this is not PHP bug)





------------------------------------------------------------------------

[2003-09-09 09:57:54] 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-08 09:09:54] [EMAIL PROTECTED]

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-08 08:34:51] [EMAIL PROTECTED]

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 00:05:19] 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.

------------------------------------------------------------------------

The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
    http://bugs.php.net/25423

-- 
Edit this bug report at http://bugs.php.net/?id=25423&edit=1

Reply via email to