Installing - make fails - ANSI C problem

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
jdunlop
Forum Newbie
Posts: 5
Joined: Tue Oct 15, 2002 9:36 am

Installing - make fails - ANSI C problem

Post 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
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post by volka »

have you run ./configure?
jdunlop
Forum Newbie
Posts: 5
Joined: Tue Oct 15, 2002 9:36 am

Installing - make fails - ANSI C problem

Post 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.
Post Reply