PHP 4 on AIX using the xlc compiler

From: Date: Mon, 20 Nov 2000 15:00:07 +0000
Subject: PHP 4 on AIX using the xlc compiler
References: 1 2  Groups: php.dev 
Request: Send a blank email to php-dev+get-38611@lists.php.net to get a copy of this message
My last note may have been lost in the noise, so reposting... Pulled the latest php4 from cvs last week and I am still having problems getting a clean compile on AIX using xlc. ./buildconf ./configure --with-apxs=path --without-mysql --without-xml Problem 1: is in php_config.h, line 60.9: (S) Macro name inline cannot be redefined "inline" is defined on line 78 of php.h The attached patch fixes this problem. Any reason this patch should not be committed? Problem 2: Seg fault on start-up because the apache symbols have not been imported by the php dso. There is a bug report on this and the work around described in the report is valid. I am not a autoconf/libtool guru and don't have a clear idea how to fix this one. Update: I believe problem 2 can be cleanly fixed with the next release of libtool (ability to pass arbitrary flags to the linker), so I've been told. Can anyone confirm this? Problem 3: dlfcn.h header not being discovered because the xlc #line directive does not support line numbers over 32768 (bleh). I have not found a clean way around this. I wrote a perl script to munge the #line directives in the configure script as a temporary solution. Any suggestions? There are other problems if I include mysql or xml. Wanted to knock these out first.... Thanks, Bill Index: php.h =================================================================== RCS file: /repository/php4/main/php.h,v retrieving revision 1.126 diff -u -r1.126 php.h --- php.h 2000/11/02 15:32:52 1.126 +++ php.h 2000/11/09 20:10:08 @@ -71,7 +71,7 @@ #define PHP_DEBUG ZEND_DEBUG -#if PHP_DEBUG || !(defined(__GNUC__)||defined(PHP_WIN32)) +#if PHP_DEBUG || !(defined(__GNUC__)||defined(PHP_WIN32)||defined(__IBMC__)) #ifdef inline #undef inline #endif

« previous php.dev (#38611) next »