php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #11268 Apache segfaults when starting after compile with informix
Submitted: 2001-06-04 18:04 UTC Modified: 2001-06-05 01:22 UTC
From: zhamm at secmgmt dot com Assigned:
Status: Closed Package: Compile Failure
PHP Version: 4.0.5 OS: AIX 4.3.3
Private report: No CVE-ID: None
 [2001-06-04 18:04 UTC] zhamm at secmgmt dot com
Using AIX 4.3.3, PHP 4.0.6RC2, Informix Client SDK 2.70 and Apache 1.3.9
Compiled with C for AIX v5

I'm fairly ignorant about compiling, so I read most of the bug reports to first see what I may have been 
doing wrong.  It would not even configure under 4.0.5...

Here are the steps I used to compile PHP with Apache and Informix:

1.  SET ENVIRONMENT VARIABLES
export CC=/usr/bin/cc
export CFLAGS="-g -ma"
export INFORMIXDIR=/opt/informix
export PATH=$PATH:/opt/informix/bin

2.  RUN CONFIGURE
./configure --enable-c9x-inline --with-apxs=/usr/local/etc/apache/bin/apxs --with-informix=/opt/informix --without-mysql

3. EDIT LIBTOOL SHELL SCRIPT TO ADD: to "archivecmds" area...  (per 4630)
add:   \${wl}-bI:/usr/local/etc/apache/libexec/httpd.exp

4. MAKE

5. REMOVE old PHP 
rm -f /usr/local/etc/apache/libexec/libphp4.so

6. MAKE INSTALL

7. RESTART APACHE

Apache says: 
# /usr/local/etc/apache/bin/apachectl start
/usr/local/etc/apache/bin/apachectl[71]: 25948 Segmentation fault(coredump)
/usr/local/etc/apache/bin/apachectl start: httpd could not be started     

I received no errors during configuration and compile steps.  Is there anything I've overlooked?

ZACK


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-06-04 21:05 UTC] zhamm at secmgmt dot com
Not sure how I fixed this...

I compiled again with mysql and informix, and the same settings above.  But, this time setting the LD_LIBRARY_PATH=/opt/informix/lib:/opt/informix/lib/esql

It worked.  A HOWTO for AIX sure would be helpful.

Zack
 [2001-06-05 01:22 UTC] sniper@php.net
perfectly normal problem. You need to tell where
your shared libs are located. If they are not in the
normal libpath that is.

--Jani

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 26 04:01:30 2024 UTC