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.

Reply via email to