Page 1 of 1

Installing - make fails - ANSI C problem

Posted: Tue Oct 15, 2002 9:36 am
by jdunlop
I am new to PHP and not too experienced with HP-UX. Trying to install PHP 4.2.3 on HP-UX 11.11. It fails on the "make", see below :

root>make
Making all in Zend
/bin/sh ../libtool --silent --mode=compile cc -DHAVE_CONFIG_H -I. -I. -I
../main -DHPUX11 -DUSE_HSREGEX -DUSE_EXPAT -I../TSRM -prefer-pic -c zend_lang
uage_parser.c
(Bundled) cc: warning 480: The +Z option is available only with the C/ANSI C pro
duct; ignored.
(Bundled) cc: "zend_globals_macros.h", line 38: error 1705: Function prototypes
are an ANSI feature.
(Bundled) cc: "zend_alloc.h", line 74: error 1705: Function prototypes are an ANSI feature. etc etc

I think it is using the HP C compiler which is not ANSI/C compliant. I have downloaded the GCC compiler but cannot figure out how to get the make to use it instead of the HP C compiler. Has anyone successfully loaded PHP on HP-UX 11? Can anyone help?

TIA,

JD

Posted: Tue Oct 15, 2002 3:44 pm
by volka
have you run ./configure?

Installing - make fails - ANSI C problem

Posted: Wed Oct 16, 2002 3:29 am
by jdunlop
Yes. I used the following :

./configure --prefix=/usr/local/php --with-config-file-path=/usr/local/php --with-apxs=/opt/apache/bin/apxs --enable-track-vars --enable-magic-quotes --enable-debugger

and it generated the appropriate messages, no errors.