I managed to resolve the problem by updating the ld and it's libraries. The problem is due to ipv6 support on hpux11i.
Installed 2 patches, PHSS_26560 and PHCO_27434. Regards, Mani -----Original Message----- From: VASAGAN,MANI (HP-Singapore,ex2) Sent: Tuesday, November 19, 2002 2:12 PM To: [EMAIL PROTECTED] Subject: php4 compilation problem with hpux 11i I am trying to compile php 4.2.3 with apache 1.3.27 on hpux 11i using gnu gcc 3.0.4, gmake 3.79.1. Also installed are binutils, flex, bison. When I try to configure php (./configure --with-apache=../apache-1.3.27 , gmake, gmake install) it did without errors. But when i compile apache, (./configure --activate-module=src/modules/php4/libphp4.a --enable-module=php4) configure passes ok. But gmake fails when it reaches php4 with the following error: /usr/ccs/bin/ld: (Warning) At least one PA 2.0 object file (stub.o) was detected. The linked output may not run on a PA 1.x system. /usr/ccs/bin/ld: Unsatisfied symbols: freeaddrinfo (code) getaddrinfo (code) I tried many combinations, php4.2.1, php4.2.2, apache1.3.26 - all gives the same problem/error message. Then i tried to compile only apache (and with ssl) it did fine. I tried compile only php (./configure; gmake). It gives the same error on php4.2.3 compile, which is: /bin/sh /mnt/dev/build/php-4.2.3/libtool --silent --mode=link cc -I. -I/mnt/dev/build/php-4.2.3/ -I/mnt/dev/build/php-4.2.3/main -I/mnt/dev/build/php-4.2.3 -I/mnt/dev/build/php-4.2.3/Zend -I/mnt/dev/build/php-4.2.3/ext/mysql/libmysql -I/mnt/dev/build/php-4.2.3/ext/xml/expat -I/mnt/dev/build/php-4.2.3/TSRM -Aa -D_HPUX_SOURCE +e -o php -export-dynamic stub.lo libphp4.la /usr/ccs/bin/ld: (Warning) At least one PA 2.0 object file (stub.o) was detected. The linked output may not run on a PA 1.x system. /usr/ccs/bin/ld: Unsatisfied symbols: freeaddrinfo (code) getaddrinfo (code) gmake[1]: *** [php] Error 1 gmake[1]: Leaving directory `/mnt/dev/build/php-4.2.3' gmake: *** [all-recursive] Error 1 I built apache 1.3.26/php 4.2.1 successfully on hpux10.20 box about few months back. Only problem i had was ANSI C, -fPIC need to be used instead of -Z. SO i guess i should try on some other version. I am going to try on hpux 11.00 box, but wonder if any answer. Thanks in advance, Regards, Mani Vasagan "My grandfather once told me that there are two kinds of people: those who work and those who take the credit. He told me to try to be in the first group; there was less competition there." - Indira Gandhi -- PHP Install Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php