Bug #15217 Updated: syntax error before `va_list'

From: Date: Sun, 09 Jun 2002 20:47:18 +0000
Subject: Bug #15217 Updated: syntax error before `va_list'
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-9952@lists.php.net to get a copy of this message
ID: 15217 Updated by: matheny@dbaseiv.net Reported By: breathex@yahoo.com Status: Feedback Bug Type: Compile Failure Operating System: FreeBSD PHP Version: 4.1.1 New Comment: 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 :-) Previous Comments: ------------------------------------------------------------------------ [2002-06-09 14:11:14] 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 14:06:45] matheny@dbaseiv.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 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 ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/15217 -- Edit this bug report at http://bugs.php.net/?id=15217&edit=1

« previous php.bugs (#9952) next »