Bug #1937: Complaint about "__builtin_va_alist".
| From: | lupe at lupe-christoph dot de | Date: | Sun, 01 Aug 1999 12:37:53 +0000 |
| Subject: | Bug #1937: Complaint about "__builtin_va_alist". | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-9422@lists.php.net to get a copy of this message | ||
From: lupe@lupe-christoph.de
Operating system: Solaris 7
PHP version: 3.0.12
PHP Bug Type: Compile Failure
Bug description: Complaint about "__builtin_va_alist".
gcc -g -O2 -O2 -I/opt/local/i386/include -I. -I. -I/opt/local/i386/imap/include
-I/opt/local/i386/include -I/usr/X11R6/include/X11/magick -I/usr/openwin/include/X11
-I/opt/local/i386/mysql/include -I/opt/local/i386/postgres/include -I/usr/include
-I/usr/local/include -I/opt/local/i386/include/xml -c main.c -o main.o
main.c: In function `php3_printf':
main.c:308: `__builtin_va_alist' undeclared (first use in this function)
main.c:308: (Each undeclared identifier is reported only once
main.c:308: for each function it appears in.)
main.c: In function `php3_error':
main.c:381: `__builtin_va_alist' undeclared (first use in this function)
Using "gcc version egcs-2.91.57 19980901 (egcs-1.1 release)".
The cause is the inclusion of "/usr/include" in the Makefile INCLUDE
line. Dunno where this is generated by configure. /usr/include is
always used by any Unix compiler I've seen so far, but GCC does not
like seeing it before it's own include dir, for obvious reasons.
Removing /usr/include from that line allows the compilation to proceed.