From: [EMAIL PROTECTED]
Operating system: Aix 4.3.3
PHP version: 4.3.0
PHP Bug Type: Apache2 related
Bug description: Libtool error and apache segmentation fault when load libphp4.so
I have apache 2.0.43 working on Aix 4.3.3.10. When i try build
php4-latest,4.3.0, 4.2.3 or 4.2.2 all go fine except, on make install
process and if i continue, when apache load module libphp4.so doesn't
start and show a segmentation fault error.I use gcc-3.2.1 and gnu.make.
-----------------------------------------------------------
# setenv CC /usr/local/bin/gcc
#./configure --enable-force-cgi-redirect \
--enable-static --disable-shared \
--with-mysql --with-apxs2=/usr/IBMIHS/bin/apxs \
--prefix=/usr/IBMIHS/php --with-config-file-path=/usr/IBMIHS/php
------------------------------------------------------------
Appear this error, although i continuous:
creating main/internal_functions_cli.c
+--------------------------------------------------------------------+
| *** WARNING *** |
| |
| You chose to compile PHP with the built-in MySQL support. If you |
| are compiling a server module, and intend to use other server |
| modules that also use MySQL (e.g, mod_auth_mysql, PHP 3.0, |
| mod_perl) you must NOT rely on PHP's built-in MySQL support, and |
| instead build it with your local MySQL support files, by adding |
| --with-mysql=/path/to/mysql to your configure line. |
+--------------------------------------------------------------------+
| License: |
| This software is subject to the PHP License, available in this |
| distribution in the file LICENSE. By continuing this installation |
| process, you are bound by the terms of this license agreement. |
| If you do not agree with the terms of this license, you must abort |
| the installation process at this point. |
+--------------------------------------------------------------------+
| *** NOTE *** |
| The default for register_globals is now OFF! |
| |
| If your application relies on register_globals being ON, you |
| should explicitly set it to on in your php.ini file. |
| Note that you are strongly encouraged to read |
| http://www.php.net/manual/en/security.registerglobals.php |
| about the implications of having register_globals set to on, and |
| avoid using it if possible. |
+--------------------------------------------------------------------+
./config.status[1814]: 6: bad file unit number
./config.status[1815]: 6: bad file unit number
-----------------------------------------------------------
#make
#make install
Installing PHP SAPI module
/usr/IBMIHS/build/instdso.sh SH_LIBTOOL='/usr/IBMIHS/build/libtool'
libphp4.la /usr/IBMIHS/modules
/usr/IBMIHS/build/libtool --mode=install cp libphp4.la
/usr/IBMIHS/modules/
cp .libs/libphp4.a /usr/IBMIHS/modules/libphp4.a
cp .libs/libphp4.lai /usr/IBMIHS/modules/libphp4.la
libtool: install: warning: remember to run `libtool --finish
/software2/php-4.3.0/libs'
chmod 755 /usr/IBMIHS/modules/libphp4.so
chmod: /usr/IBMIHS/modules/libphp4.so: Un archivo o directorio en la v�a
de acceso no existe.
apxs:Error: Command failed with rc=65536
.
make: 1254-004 El c�digo de error del �ltimo mandato es 1.
-------------------------------------------------
At this point i cp .libs/libphp4.so /usr/IBMIHS/modules and i make install
again.
-------------------------------------------------
#make install
Installing PHP SAPI module
/usr/IBMIHS/build/instdso.sh SH_LIBTOOL='/usr/IBMIHS/build/libtool'
libphp4.la /usr/IBMIHS/modules
/usr/IBMIHS/build/libtool --mode=install cp libphp4.la
/usr/IBMIHS/modules/
cp .libs/libphp4.a /usr/IBMIHS/modules/libphp4.a
cp .libs/libphp4.lai /usr/IBMIHS/modules/libphp4.la
libtool: install: warning: remember to run `libtool --finish
/software2/php-4.3.0/libs'
chmod 755 /usr/IBMIHS/modules/libphp4.so
Installing shared extensions:
/usr/IBMIHS/php/lib/php/extensions/no-debug-zts-20020429/
Installing PEAR environment: /usr/IBMIHS/php/lib/php/
[PEAR] Archive_Tar - installed: 0.9
[PEAR] Console_Getopt - installed: 1.0
[PEAR] PEAR - installed: 1.0b3
[PEAR] DB - installed: 1.3
[PEAR] HTTP - installed: 1.2
[PEAR] Mail - installed: 1.0.1
[PEAR] Net_SMTP - installed: 1.0
[PEAR] Net_Socket - installed: 1.0.1
[PEAR] XML_Parser - installed: 1.0
[PEAR] XML_RPC - installed: 1.0.4
Installing build environment: /usr/IBMIHS/php/lib/php/build/
Installing header files: /usr/IBMIHS/php/include/php/
Installing helper programs: /usr/IBMIHS/php/bin/
program: phpize
program: php-config
program: phpextdist
El destino "install" is upgraded.
#cp php.ini-dist /usr/IBMIHS/php/php.ini
Then i start apache and shows segmentation fault.
--
Edit bug report at http://bugs.php.net/?id=21777&edit=1
--
Try a CVS snapshot: http://bugs.php.net/fix.php?id=21777&r=trysnapshot
Fixed in CVS: http://bugs.php.net/fix.php?id=21777&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=21777&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=21777&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=21777&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=21777&r=support
Expected behavior: http://bugs.php.net/fix.php?id=21777&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=21777&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=21777&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=21777&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=21777&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=21777&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=21777&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=21777&r=gnused