Re: [PATCH] Fix compile problem with php4 on AIX using the xlc compiler

From: Date: Fri, 17 Nov 2000 15:53:06 +0000
Subject: Re: [PATCH] Fix compile problem with php4 on AIX using the xlc compiler
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-38414@lists.php.net to get a copy of this message
Pulled the latest php4 from cvs... ./buildconf ./configure --with-apxs=path --without-mysql --without-xml First failure 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. Second failure 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. Third failure: 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. There are other problems if I include mysql or xml. Wanted to knock these out first.... Bill ----- Original Message ----- From: Bill Stoddard <bill@wstoddard.com> To: <php-dev@lists.php.net> Sent: Thursday, November 09, 2000 3:28 PM Subject: [PHP-DEV] [PATCH] Fix compile problem with php4 on AIX using the xlc compiler > Just getting my toes wet in PHP4 on AIX (using xlc). I'll submit more patches > once I figure out the -right- way to fix the problems I am seeing :-) > > Bill Stoddard > > 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 > > > > -- > PHP Development Mailing List <http://www.php.net/> > To unsubscribe, e-mail: php-dev-unsubscribe@lists.php.net > For additional commands, e-mail: php-dev-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net >

« previous php.dev (#38414) next »