Re: AIX, PHP4 and core dump
| From: | Dave Brooks, BCS Systems | Date: | Tue, 20 Feb 2001 22:33:45 +0000 |
| Subject: | Re: AIX, PHP4 and core dump | ||
| References: | 1 | Groups: | php.install |
| Request: | Send a blank email to php-install+get-2157@lists.php.net to get a copy of this message | ||
It does all go!
The secret (from Bill Stoddard, see http://www.phpbuilder.com/forum/archives/3/2001/01/1/102909), is when using APXS, to edit the 'libtool' script after running './configure' and add the following switch to both the 'archive_cmds=' and 'archive_expsym_cmds=' lines:
\${wl}-bI:/path/to/libexec/httpd.exp
Then 'make', 'make install', etc.
The -bI switch specifies where the 'httpd.exp' file is, which tells PHP what calls have been exported and can be resolved at runtime - otherwise a segfault is caused when PHP attempts to call an Apache API.
Dave
At 10:04 15/02/01 +1300, you wrote:
Hi there, We are trying to build PHP4 under AIX 4.3.3 using gcc ./configure --with-mysql=/usr/local/mysql --with-apxs=/usr/HTTPServer/bin/apxs make make install It all compiles and installs. However httpd core dumps with a segmentation fault. We then tried (as per a posting on the list) building PHP with HAVE_ALLOCA undefined and defining C_ALLOCA (by tweaking the configure script) but still get the core dump. All help and suggestions would be appreciated.