Bug #15217 Updated: syntax error before `va_list'
| From: | matheny at dbaseiv dot net | Date: | Sun, 09 Jun 2002 18:06:45 +0000 |
| Subject: | Bug #15217 Updated: syntax error before `va_list' | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-9942@lists.php.net to get a copy of this message | ||
ID: 15217
Updated by: matheny@dbaseiv.net
Reported By: breathex@yahoo.com
Status: Closed
Bug Type: Compile Failure
Operating System: FreeBSD
PHP Version: 4.1.1
New Comment:
Looking again, this appears to possibly be a problem with
autoheader/autoconf (I'm using version 2.52) or possibly just the
distributed configure file. The appropriate defines are not being set
in main/php_config.h. After I went through and changed the appropriate
#undef FOO to #define FOO 1 everything went fine.
Previous Comments:
------------------------------------------------------------------------
[2002-06-09 12:42:35] matheny@dbaseiv.net
FreeBSD requires a #include <stdarg.h>, at least 4.5-RELEASE to get
va_list.
Use the freebsd package, because even after fixing this there are
several other places where the compiles fixes. The bsd port has the
neccesary patches. Here is a small patch.
--- php-4.2.1/Zend/zend_hash.h Sun Jun 9 11:39:36 2002
+++ php-blake/Zend/zend_hash.h Sun Jun 9 11:37:31 2002
@@ -21,7 +21,7 @@
#define ZEND_HASH_H
#include <sys/types.h>
-
+#include <stdarg.h>
#define HASH_KEY_IS_STRING 1
#define HASH_KEY_IS_LONG 2
#define HASH_KEY_NON_EXISTANT 3
------------------------------------------------------------------------
[2002-04-05 02:23:38] cjs-lists@totaltrak.com
I'm getting the same error in 4.5-20020402-STABLE.
------------------------------------------------------------------------
[2002-03-03 02:27:46] kalowsky@php.net
works fine in FreeBSD 4.5
------------------------------------------------------------------------
[2002-01-25 01:16:07] breathex@yahoo.com
I run ./configure and whether or not I pass arguments I
receive this error on 'make'. This is the very first
step in the build:
Making all in Zend
/bin/sh ../libtool --silent --mode=compile gcc -DHAVE_CONFIG_H -I. -I.
-I../main -I../TSRM -g -O2 -prefer-non-pic -static -c
zend_language_parser.c
In file included from zend.h:164,
from zend_compile.h:24,
from zend_language_parser.c:148:
zend_hash.h:119: syntax error before `va_list'
In file included from zend.h:165,
from zend_compile.h:24,
from zend_language_parser.c:148:
zend_llist.h:34: syntax error before `va_list'
In file included from zend_compile.h:24,
from zend_language_parser.c:148:
zend.h:247: syntax error before `va_list'
zend.h:378: syntax error before `va_list'
*** Error code 1
Stop in /usr/sources/php-4.1.1/Zend.
*** Error code 1
Stop in /usr/sources/php-4.1.1.
Some previous bug reports I've seen were similar,
but for previous versions. I tried some code edits
anyway, with their ideas in mind, but to no avail.
I'm starting to think my FreeBSD 4.4 STABLE build is
broken.
Thanks in advance :-)
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=15217&edit=1