|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2007-04-09 16:54 UTC] dgrimes at scvl dot com
Description:
------------
Receiving the following error during compile:
/usr/include/arpa/nameser_compat.h:164:1: warning: "INT16SZ" redefined
In file included from /user01/dgrimes/cdev/php-5.2.1/ext/standard/php_standard.h:26,
from /user01/dgrimes/cdev/php-5.2.1/ext/standard/basic_functions.c:27:
/user01/dgrimes/cdev/php-5.2.1/ext/standard/dns.h:51:1: warning: this is the location of the previous definition
/user01/dgrimes/cdev/php-5.2.1/ext/standard/basic_functions.c: In function `php_ini_get_option':
/user01/dgrimes/cdev/php-5.2.1/ext/standard/basic_functions.c:5548: parse error before "zval"
/user01/dgrimes/cdev/php-5.2.1/ext/standard/basic_functions.c:5548: parse error before "zval"
/user01/dgrimes/cdev/php-5.2.1/ext/standard/basic_functions.c:5548: parse error before ')' token
/user01/dgrimes/cdev/php-5.2.1/ext/standard/basic_functions.c:5549: parse error before "int"
/user01/dgrimes/cdev/php-5.2.1/ext/standard/basic_functions.c:5549: parse error before "int"
/user01/dgrimes/cdev/php-5.2.1/ext/standard/basic_functions.c:5549: parse error before ')' token
/user01/dgrimes/cdev/php-5.2.1/ext/standard/basic_functions.c: In function `copy_request_variable':
/user01/dgrimes/cdev/php-5.2.1/ext/standard/basic_functions.c:6228: parse error before "char"
/user01/dgrimes/cdev/php-5.2.1/ext/standard/basic_functions.c:6228: parse error before "char"
/user01/dgrimes/cdev/php-5.2.1/ext/standard/basic_functions.c:6228: parse error before ')' token
/user01/dgrimes/cdev/php-5.2.1/ext/standard/basic_functions.c:6229: parse error before "uint"
/user01/dgrimes/cdev/php-5.2.1/ext/standard/basic_functions.c:6229: parse error before "uint"
/user01/dgrimes/cdev/php-5.2.1/ext/standard/basic_functions.c:6229: parse error before ')' token
make: *** [ext/standard/basic_functions.lo] Error 1
Reproduce code:
---------------
Compile Options:
gcc version 3.1
make 3.79
CC="gcc"
CXX="g++"
CFLAGS="-pthread -O4 -ansi_alias -ansi_args"
CXXFLAGS="-pthread -O4 -ansi_alias -ansi_args"
export CC CXX CFLAGS CXXFLAGS
Configure options:
configure \
--with-mysql=/usr/local/mysql \
--with-oracle \
--with-libxml-dir=/user01/dgrimes/libxml2 \
--with-xsl=/user01/dgrimes/libxslt \
--with-zlib-dir=/usr/local \
--with-freetype-dir=/usr/local \
--with-png-dir=/usr/local \
--with-tiff-dir=/usr/local \
--with-jpeg-dir=/usr/local \
--with-gd \
--without-sqlite \
--without-pdo-sqlite \
--enable-ftp \
--enable-soap \
--enable-sysvsem \
--enable-sysvshm \
--disable-reflection
Let me know if there is any additional information you require.
Thanks,
Dean
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Nov 25 20:00:01 2025 UTC |
I found the following in /usr/include/varargs.h: /* * ***************************************************************** * * * * * Copyright 2002 Compaq Information Technologies Group, L.P. * * * * * * The software contained on this media is proprietary to * * * and embodies the confidential technology of Compaq * * * Computer Corporation. Possession, use, duplication or * * * dissemination of the software and media is authorized only * * * pursuant to a valid written license from Compaq Computer * * * Corporation. * * * * * * RESTRICTED RIGHTS LEGEND Use, duplication, or disclosure * * * by the U.S. Government is subject to restrictions as set * * * forth in Subparagraph (c)(1)(ii) of DFARS 252.227-7013, * * * or in FAR 52.227-19, as applicable. * * * * * ***************************************************************** */ /* * HISTORY */ /* $Header: /share/buffer/build/rcs.dsk1/os/src/usr/include/alpha/varargs.h,v 1.2.11.3 1998/07/17 13:15:44 Arvind_Jagannath Exp $ */ #ifndef _VARARGS_H_ #define _VARARGS_H_ #include <va_list.h> /* defines va_list */ #define va_dcl long va_alist; #define va_start(list) __builtin_va_start(list, va_alist, 0) #define va_end(list) ((void)0) #if defined(__LINT) #define va_arg(list, mode) \ (*(mode *)(((list)._offset += ((int)sizeof(mode) + 7) & -8))) #else #define va_arg(list, mode) \ (*((__builtin_isfloat(mode) && sizeof(mode) > sizeof(double)) ? \ *(((list)._offset += ((int)sizeof(mode *) + 7) & -8), \ (mode **)( ((char *)(list)._a0) + (list)._offset - \ (((int)sizeof(mode *) + 7) & -8))) : \ (((list)._offset += ((int)sizeof(mode) + 7) & -8), \ (mode *)( ((char *)(list)._a0) + (list)._offset - \ ((__builtin_isfloat(mode) && (list)._offset <= (6 * 8)) ? \ (6 * 8) + 8 : ((int)sizeof(mode) + 7) & -8))))) #endif /* __LINT */ #endif /* _VARARGS_H_ */Here is the text by line numer: 5546 static int php_ini_get_option(zend_ini_entry *ini_entry, int num_args, v a_list args, zend_hash_key *hash_key) 5547 { 5548 zval *ini_array = va_arg(args, zval *); 5549 int module_number = va_arg(args, int); 5550 zval *option; 5551 5552 if (module_number != 0 && ini_entry->module_number != module_number) { 5553 return 0; 5554 } 5555 5556 if (hash_key->nKeyLength == 0 || hash_key->arKey[0] != 0) { 5557 5558 MAKE_STD_ZVAL(option); 5559 array_init(option); 5560 5561 if (ini_entry->orig_value) { 5562 add_assoc_stringl(option, "global_value", ini_entry->orig_value, ini_entry->orig_value_length, 1); 5563 } else if (ini_entry->value) { 5564 add_assoc_stringl(option, "global_value", ini_entry->value, ini_e ntry->value_length, 1); 5565 } else { 5566 dd_assoc_null(option, "global_value");