Edit report at https://bugs.php.net/bug.php?id=62357&edit=1
ID: 62357 Patch added by: larue...@php.net Reported by: mamfelt at gmail dot com Summary: compile failure: (S) Arguments missing for built-in function __memcmp. Status: Feedback Type: Bug Package: Compile Failure Operating System: AIX PHP Version: 5.4.4 Block user comment: N Private report: N New Comment: The following patch has been added/updated: Patch Name: bug62357.patch Revision: 1340603615 URL: https://bugs.php.net/patch-display.php?bug=62357&patch=bug62357.patch&revision=1340603615 Previous Comments: ------------------------------------------------------------------------ [2012-06-25 05:52:39] larue...@php.net Hi: could you please try with this patch? --- zend_language_parser.c 2012-06-25 13:52:20.000000000 +0800 +++ zend_language_parser.c.new 2012-06-25 13:52:08.000000000 +0800 @@ -6041,7 +6041,7 @@ if (LANG_SCNG(yy_text)[0] == 0 && LANG_SCNG(yy_leng) == 1 && - memcmp(yystr, ZEND_STRL("\"end of file\"")) == 0) { + memcmp(yystr, "\"end of file\"", sizeof("\"end of file\"") - 1) == 0) { yystpcpy(yyres, "end of file"); return sizeof("end of file")-1; } ------------------------------------------------------------------------ [2012-06-18 19:18:02] mamfelt at gmail dot com Description: ------------ ./configure with minimal arguments completes, make fails same error with CFLAGS='-O2 -qlanglvl=extc89 -qcpluscmt' IBM compiler - vac.C version 11, AIX 6.1 TL6 and 7 See last lines of results for Syntax errors Test script: --------------- NAME: php VERSION.RELEASE: 5.4.4.0 CFLAGS=-O2 -qlanglvl=extc99 ./configure \ --prefix=/opt \ --sysconfdir=/etc \ --mandir=/usr/share/man \ > build/aix/configure.out make Expected result: ---------------- that make completes. Actual result: -------------- make > build/aix/make.out 1500-030: (I) INFORMATION: scan: Additional optimization may be attained by recompiling and specifying MAXMEM option with a value greater than 8192. "/usr/include/math.h", line 122.9: 1506-236 (W) Macro name INFINITY has been redefined. "/usr/include/math.h", line 122.9: 1506-358 (I) "INFINITY" is defined on line 8 of /data/prj/php-5.4.4/ext/ereg/regex/utils.h. 1500-030: (I) INFORMATION: match: Additional optimization may be attained by recompiling and specifying MAXMEM option with a value greater than 8192. 1500-030: (I) INFORMATION: codeOneLoopStart: Additional optimization may be attained by recompiling and specifying MAXMEM option with a value greater than 8192. 1500-030: (I) INFORMATION: zm_startup_dom: Additional optimization may be attained by recompiling and specifying MAXMEM option with a value greater than 8192. 1500-030: (I) INFORMATION: RIPEMD128Transform: Additional optimization may be attained by recompiling and specifying MAXMEM option with a value greater than 8192. 1500-030: (I) INFORMATION: TigerFinalize: Additional optimization may be attained by recompiling and specifying MAXMEM option with a value greater than 8192. "/data/prj/php-5.4.4/ext/iconv/iconv.c", line 739.33: 1506-280 (W) Function argument assignment between types "unsigned int*" and "int*" is not allowed. "/data/prj/php-5.4.4/ext/pdo/pdo_dbh.c", line 997.77: 1506-280 (W) Function argument assignment between types "unsigned int*" and "int*" is not allowed. 1500-030: (I) INFORMATION: pdo_dbh_init: Additional optimization may be attained by recompiling and specifying MAXMEM option with a value greater than 8192. 1500-030: (I) INFORMATION: do_fetch: Additional optimization may be attained by recompiling and specifying MAXMEM option with a value greater than 8192. 1500-030: (I) INFORMATION: phar_parse_tarfile: Additional optimization may be attained by recompiling and specifying MAXMEM option with a value greater than 8192. 1500-030: (I) INFORMATION: phar_zip_changed_apply: Additional optimization may be attained by recompiling and specifying MAXMEM option with a value greater than 8192. 1500-030: (I) INFORMATION: phar_fancy_stat: Additional optimization may be attained by recompiling and specifying MAXMEM option with a value greater than 8192. 1500-030: (I) INFORMATION: phar_parse_pharfile: Additional optimization may be attained by recompiling and specifying MAXMEM option with a value greater than 8192. 1500-030: (I) INFORMATION: _class_string: Additional optimization may be attained by recompiling and specifying MAXMEM option with a value greater than 8192. 1500-030: (I) INFORMATION: zm_info_spl: Additional optimization may be attained by recompiling and specifying MAXMEM option with a value greater than 8192. "/data/prj/php-5.4.4/ext/spl/spl_functions.c", line 50.40: 1506-068 (W) Operation between types "struct _zend_object_value(*)(struct _zend_class_entry*)" and "void*" is not allowed. "/data/prj/php-5.4.4/ext/spl/spl_functions.c", line 65.40: 1506-068 (W) Operation between types "struct _zend_object_value(*)(struct _zend_class_entry*)" and "void*" is not allowed. "/data/prj/php-5.4.4/ext/standard/dir.c", line 571.21: 1506-280 (W) Function argument assignment between types "int(*)(const char**,const char**)" and "void*" is not allowed. "/data/prj/php-5.4.4/ext/standard/dir.c", line 575.21: 1506-280 (W) Function argument assignment between types "int(*)(const char**,const char**)" and "void*" is not allowed. 1500-030: (I) INFORMATION: php_stat: Additional optimization may be attained by recompiling and specifying MAXMEM option with a value greater than 8192. 1500-030: (I) INFORMATION: php_var_export_ex: Additional optimization may be attained by recompiling and specifying MAXMEM option with a value greater than 8192. 1500-030: (I) INFORMATION: xx_mainloop: Additional optimization may be attained by recompiling and specifying MAXMEM option with a value greater than 8192. 1500-030: (I) INFORMATION: php_stream_url_wrap_http_ex: Additional optimization may be attained by recompiling and specifying MAXMEM option with a value greater than 8192. 1500-030: (I) INFORMATION: php_var_unserialize: Additional optimization may be attained by recompiling and specifying MAXMEM option with a value greater than 8192. "/data/prj/php-5.4.4/ext/standard/filters.c", line 1310.51: 1506-280 (W) Function argument assignment between types "unsigned long*" and "long*" is not allowed. "/data/prj/php-5.4.4/ext/xml/xml.c", line 1385.57: 1506-280 (W) Function argument assignment between types "int(*)(void*,const unsigned char*,const unsigned char*,const unsigned char*,const unsigned char*)" and "void*" is not allowed. "/data/prj/php-5.4.4/main/snprintf.c", line 1229.21: 1506-280 (W) Function argument assignment between types "int*" and "unsigned int*" is not allowed. "/data/prj/php-5.4.4/main/snprintf.c", line 1243.21: 1506-280 (W) Function argument assignment between types "int*" and "unsigned int*" is not allowed. "/data/prj/php-5.4.4/main/output.c", line 461.49: 1506-280 (W) Function argument assignment between types "void*" and "void(*)(char*,unsigned int,char**,unsigned int*,int)" is not allowed. "/data/prj/php-5.4.4/Zend/zend_language_parser.c", line 6044.75: 1506-041 (E) The invocation of macro memcmp contains fewer arguments than are required by the macro definition. "/data/prj/php-5.4.4/Zend/zend_language_parser.c", line 6044.33: 1506-046 (S) Syntax error. "/data/prj/php-5.4.4/Zend/zend_language_parser.c", line 6044.33: 1506-182 (S) Arguments missing for built-in function __memcmp. make: 1254-004 The error code from the last command is 1. ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=62357&edit=1