Hello,
when building PHP 4.2.0 on Solaris 8 using gcc it fails with the following messages:
Making all in main
make[1]: Entering directory /workplace/php-4.2.0/main'
make[2]: Entering directory/workplace/php-4.2.0/main'
/bin/sh /workplace/php-4.2.0/libtool --silent --mode=compile gcc -I. -I/workpla
ce/php-4.2.0/main -I/workplace/php-4.2.0/main -I/workplace/php-4.2.0 -I/usr/apac
he/include -I/workplace/php-4.2.0/Zend -I/usr/local/mysql/include/mysql -I/workp
lace/php-4.2.0/ext/xml/expat -D_POSIX_PTHREAD_SEMANTICS -DEAPI -DMOD_PERL -DUSE
_EXPAT -I/workplace/php-4.2.0/TSRM -g -O2 -prefer-pic -c main.c
In file included from php_syslog.h:9,
from /workplace/php-4.2.0/ext/standard/php_ext_syslog.h:26,
from /workplace/php-4.2.0/ext/standard/php_standard.h:33,
from main.c:52:
/usr/include/syslog.h:1: parse error before character 0214
/usr/include/syslog.h:1: missing white space after number 2'
/usr/include/syslog.h:3: missing white space after number2'
/usr/include/syslog.h:5: missing white space after number 2'
/usr/include/syslog.h:6: warning: This file contains more}'s than {'s.
In file included from /workplace/php-4.2.0/ext/standard/php_ext_syslog.h:26,
from /workplace/php-4.2.0/ext/standard/php_standard.h:33,
from main.c:52:
php_syslog.h:33: warning: This file contains more}'s than {'s.
In file included from /workplace/php-4.2.0/ext/standard/php_standard.h:33,
from main.c:52:
/workplace/php-4.2.0/ext/standard/php_ext_syslog.h:40: warning: This file contai
ns more}'s than {'s.
In file included from /workplace/php-4.2.0/ext/standard/fsock.h:32,
from /workplace/php-4.2.0/ext/standard/php_standard.h:43,
from main.c:52:
php_network.h:55: warning:struct sockaddr' declared inside parameter list
php_network.h:55: warning: its scope is only this definition or declaration, whi
ch is probably not what you want.
In file included from /workplace/php-4.2.0/ext/standard/php_standard.h:43,
from main.c:52:
/workplace/php-4.2.0/ext/standard/fsock.h:63: warning: struct in_addr' declared
inside parameter list
In file included from main.c:52:
/workplace/php-4.2.0/ext/standard/php_standard.h:71: warning: This file contains
more}'s than {'s.
main.c: In functionphp_log_err':
main.c:305: LOG_NOTICE' undeclared (first use in this function)
main.c:305: (Each undeclared identifier is reported only once
main.c:305: for each function it appears in.)
make[2]: *** [main.lo] Error 1
make[2]: Leaving directory/workplace/php-4.2.0/main'
make[1]: [all-recursive] Error 1
make[1]: Leaving directory `/workplace/php-4.2.0/main'
make: [all-recursive] Error 1
#
The problems remains with several versions of gcc and several versions of PHP.
Any idea what I could have done wrong and how to solve that problem?
Thanks
Alexander