php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #15217 syntax error before `va_list'
Submitted: 2002-01-25 01:16 UTC Modified: 2002-06-09 17:14 UTC
From: breathex at yahoo dot com Assigned:
Status: Closed Package: Compile Failure
PHP Version: 4.1.1 OS: FreeBSD
Private report: No CVE-ID: None
 [2002-01-25 01:16 UTC] breathex at yahoo dot 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 :-)

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-03-03 02:27 UTC] kalowsky@php.net
works fine in FreeBSD 4.5
 [2002-04-05 02:23 UTC] cjs-lists at totaltrak dot com
I'm getting the same error in 4.5-20020402-STABLE.
 [2002-06-09 12:42 UTC] matheny at dbaseiv dot 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-06-09 14:06 UTC] matheny at dbaseiv dot net
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.
 [2002-06-09 14:11 UTC] mfischer@php.net
Can you please try out http://snaps.php.net/php4-latest.tar.gz, build the configure with 2.52 and see if the problem still exists without modifying anything?
 [2002-06-09 16:47 UTC] matheny at dbaseiv dot net
It's gone in the snapshot dated 200206091200. FYI the latest stable (php-4.2.1) version has this problem. The 06-09-1200 snapshot has some yacc problem :-)
 [2002-06-09 17:14 UTC] mfischer@php.net
Fixed in CVS then, so closnig. 

Feel free to open a new report if you think the yacc problem is real.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue May 07 11:01:31 2024 UTC