Problem compiling PHP with cc

Luca Fasolo
Occasional Advisor

Problem compiling PHP with cc

I'm compiling PHP 4.2.1 with cc:

# cat configLuca
CC=cc CFLAGS="+e -O2" ./configure -with-apxs=/usr/local/apache/bin/apxs

make fails with:
/bin/sh ../libtool --silent --mode=compile cc -DHAVE_CONFIG_H -I. -I. -I../main -DHPUX11 -D_HPUX_SOURCE -DMOD_SSL=208107 -DUSE_HSREGEX -DEAPI -DUSE_EXPAT -I../TSRM +e -O2 -prefer-pic -c ./zend_execute.c
cc: "zend_execute.c", line 70: error 1000: Unexpected symbol: "*".
cc: panic 2017: Cannot recover from earlier errors, terminating.
*** Error exit code 1

Do you have some idea? In line 70
static inline zval *_get_zval_ptr ...
Perhaps cc doesn't like this construct?

My system is:

# uname -a
HP-UX a500 B.11.00 U 9000/800 1517720548 unlimited-user license

I can't use gcc because I need openssl, and
I was not able to compile it with gcc3.

Thanks in advance