Re: [PHP4BETA] Compile problem on Solaris 2.7

[email protected] (Cary Collett) Mon, 5 Jun 2000 14:35:21 -0400
Newsgroups php.version4
Message-ID <[email protected]>
Thanks! That did the trick. But...

I'm compiling with --with-nsapi (geh, I know, I'm working on getting
us off of it) and I get a gazillion parse errors in 
/usr/netscape/suitespot/nsapi.h

This is version 3.63 of iPlanet (Netscape) Enterprise Server.

Below is the spewage:

make[3]: Entering directory `/usr/netscape/php-4.0.0/sapi/nsapi'
/bin/sh /usr/netscape/php-4.0.0/libtool --silent --mode=compile gcc -DHAVE_CONFIG_H -I. -I/usr/netscape/php-4.0.0/sapi/nsapi -I/usr/netscape/php-4.0.0 -I/usr/netscape/suitespot/include -I/usr/netscape/php-4.0.0/Zend -I/usr/netscape/php-4.0.0 -I/usr/mysql/include/mysql -I/usr/netscape/php-4.0.0/ext/xml/expat/xmltok -I/usr/netscape/php-4.0.0/ext/xml/expat/xmlparse -I/usr/netscape/php-4.0.0/TSRM  -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT -DXML_BYTE_ORDER=21 -I../TSRM -g -O2 -pthreads  -c nsapi.c
In file included from nsapi.c:37:
/usr/netscape/suitespot/include/nsapi.h:911: parse error before `Func'
/usr/netscape/suitespot/include/nsapi.h:911: warning: data definition has no type or storage class
/usr/netscape/suitespot/include/nsapi.h:914: parse error before `*'
/usr/netscape/suitespot/include/nsapi.h:914: warning: data definition has no type or storage class
/usr/netscape/suitespot/include/nsapi.h:924: parse error before `FuncPtr'
/usr/netscape/suitespot/include/nsapi.h:924: warning: no semicolon at end of struct or union
/usr/netscape/suitespot/include/nsapi.h:927: parse error before `}'
/usr/netscape/suitespot/include/nsapi.h:1033: parse error before `PASSWD'
/usr/netscape/suitespot/include/nsapi.h:1231: parse error before `FuncPtr'
/usr/netscape/suitespot/include/nsapi.h:1231: warning: no semicolon at end of struct or union
/usr/netscape/suitespot/include/nsapi.h:1233: parse error before `FuncPtr'
/usr/netscape/suitespot/include/nsapi.h:1279: parse error before `*'
/usr/netscape/suitespot/include/nsapi.h:1279: parse error before `FuncPtr'
/usr/netscape/suitespot/include/nsapi.h:1279: `FuncPtr' declared as function returning a function
/usr/netscape/suitespot/include/nsapi.h:1279: `FuncPtr' redeclared as different kind of symbol
/usr/netscape/suitespot/include/nsapi.h:914: previous declaration of `FuncPtr'
/usr/netscape/suitespot/include/nsapi.h:1279: warning: data definition has no type or storage class
/usr/netscape/suitespot/include/nsapi.h:1309: parse error before `*'
/usr/netscape/suitespot/include/nsapi.h:1309: `HANDLE' declared as function returning a function
/usr/netscape/suitespot/include/nsapi.h:1309: warning: data definition has no type or storage class
/usr/netscape/suitespot/include/nsapi.h:1313: parse error before `}'
nsapi.c: In function `sapi_nsapi_ub_write':
nsapi.c:138: dereferencing pointer to incomplete type
nsapi.c: In function `sapi_nsapi_header_handler':
nsapi.c:163: dereferencing pointer to incomplete type
nsapi.c:163: dereferencing pointer to incomplete type
nsapi.c:164: dereferencing pointer to incomplete type
nsapi.c:166: dereferencing pointer to incomplete type
nsapi.c:168: dereferencing pointer to incomplete type
nsapi.c: In function `sapi_nsapi_send_headers':
nsapi.c:189: dereferencing pointer to incomplete type
nsapi.c:189: dereferencing pointer to incomplete type
nsapi.c:190: dereferencing pointer to incomplete type
nsapi.c:193: dereferencing pointer to incomplete type
nsapi.c:194: dereferencing pointer to incomplete type
nsapi.c: In function `sapi_nsapi_read_post':
nsapi.c:213: dereferencing pointer to incomplete type
nsapi.c:240: dereferencing pointer to incomplete type
nsapi.c: In function `sapi_nsapi_read_cookies':
nsapi.c:258: dereferencing pointer to incomplete type
nsapi.c: In function `nsapi_hash_environment':
nsapi.c:335: dereferencing pointer to incomplete type
nsapi.c:336: dereferencing pointer to incomplete type
nsapi.c:342: dereferencing pointer to incomplete type
nsapi.c:349: dereferencing pointer to incomplete type
nsapi.c:356: dereferencing pointer to incomplete type
nsapi.c:363: dereferencing pointer to incomplete type
nsapi.c:369: dereferencing pointer to incomplete type
nsapi.c:372: dereferencing pointer to incomplete type
nsapi.c:373: dereferencing pointer to incomplete type
nsapi.c: In function `nsapi_request_ctor':
nsapi.c:383: dereferencing pointer to incomplete type
nsapi.c:384: dereferencing pointer to incomplete type
nsapi.c:385: dereferencing pointer to incomplete type
nsapi.c:387: dereferencing pointer to incomplete type
nsapi.c:388: dereferencing pointer to incomplete type
nsapi.c:389: dereferencing pointer to incomplete type
nsapi.c:392: dereferencing pointer to incomplete type
nsapi.c: In function `php4_init':
nsapi.c:497: dereferencing pointer to incomplete type
make[3]: *** [nsapi.lo] Error 1
make[3]: Leaving directory `/usr/netscape/php-4.0.0/sapi/nsapi'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/usr/netscape/php-4.0.0/sapi/nsapi'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/netscape/php-4.0.0/sapi'
make: *** [all-recursive] Error 1

Thus spake Rasmus Lerdorf ([email protected]):

> rm Zend/zend-parser.c and rebuild
>