ID: 46059 User updated by: neko at nekochan dot net Reported By: neko at nekochan dot net -Status: Feedback +Status: Open Bug Type: Compile Failure Operating System: IRIX 6.5.30 PHP Version: 5.3.0alpha2 New Comment:
Confirmed this patch resolves build issue. Thanks! Previous Comments: ------------------------------------------------------------------------ [2008-09-12 12:07:55] [EMAIL PROTECTED] Please try the following patch: http://arnaud.lb.s3.amazonaws.com/utsname_domainname.patch (run ./buildconf, then re-configure) ------------------------------------------------------------------------ [2008-09-11 20:24:15] neko at nekochan dot net Description: ------------ Able to compile up to and including php-5.2.6 without error (and run in a production environment). My attempt to build php-5.3.0alpha2 dies in posix.c (The struct "utsname" has no field "domainname".). Reproduce code: --------------- IRIX64 Kazehana 6.5 6.5.30f 07202013 IP35 MIPSpro Compilers: Version 7.4.4m './configure' '--prefix=/usr/nekoware/php5' '--enable-dba' '--enable-dbx' '--enable-calendar' '--enable-wddx' '--with-config-file-path=/usr/nekoware/etc/php5' '--with-apxs2=/usr/nekoware/apache2/bin/apxs' '--enable-cli' '--with-libxml-dir=/usr/nekoware' '--with-expat-dir=/usr/nekoware' '--with-png-dir=/usr/nekoware' '--with-jpeg-dir=/usr/nekoware' '--with-freetype-dir=/usr/nekoware' '--with-zlib-dir=/usr/nekoware' '--with-zlib' '--with-curlwrappers' '--with-curl=shared,/usr/nekoware' '--with-openssl=shared,/usr/nekoware' '--with-mysql=shared,mysqlnd' '--with-mysqli=shared,mysqlnd' '--with-mhash=shared,/usr/nekoware' '--with-mcrypt=shared,/usr/nekoware' '--with-bz2=shared,/usr/nekoware' '--enable-ftp=shared' '--enable-sockets=shared' '--with-gd=shared '--enable-exif=shared' '--enable-dbase=shared' '--with-xmlrpc' '--with-gettext=shared,/usr/nekoware' '--with-iconv-dir=/usr/nekoware' '--enable-mbstring=shared' '--enable-sysvsem=shared' '--enable-sysvshm=shared' '--enable-sysvmsg=shared' '--with-xpm-dir=/usr/lib32' '--enable-zip=shared' '--with-pgsql=shared,/usr/nekoware/pgsql' '--disable-fileinfo' '--disable-phar' '--with-tsrm-st' Expected result: ---------------- Completed build. Actual result: -------------- /bin/sh /opt/build/php-5.3.0alpha2/libtool --silent --preserve-dup-deps --mode=compile c99 -Iext/posix/ -I/opt/build/php-5.3.0alpha2/ext/posix/ -DPHP_ATOM_INC -I/opt/build/php-5.3.0alpha2/include -I/opt/build/php-5.3.0alpha2/main -I/opt/build/php-5.3.0alpha2 -I/opt/build/php-5.3.0alpha2/ext/ereg/regex -I/usr/nekoware/include/libxml2 -I/usr/nekoware/include -I/opt/build/php-5.3.0alpha2/ext/date/lib -I/usr/nekoware/include/freetype2 -I/opt/build/php-5.3.0alpha2/ext/mbstring/oniguruma -I/opt/build/php-5.3.0alpha2/ext/mbstring/libmbfl -I/opt/build/php-5.3.0alpha2/ext/mbstring/libmbfl/mbfl -I/opt/build/php-5.3.0alpha2/ext/sqlite3/libsqlite -I/usr/nekoware/pgsql/include -I/opt/build/php-5.3.0alpha2/TSRM -I/opt/build/php-5.3.0alpha2/Zend -D_XPG_IV -L/usr/nekoware/lib -L/usr/lib32 -I/usr/include -mips4 -O2 -I/usr/nekoware/include -I/usr/include -Wl,-rpath -Wl,/usr/nekoware/lib:/usr/nekoware/mysql5/lib/mysql -OPT:Olimit=0:roundoff=3 -TARG:platform=IP35:proc=r16000 -c /opt/build/php-5.3.0alpha2/ext/posix/posix.c -o ext/posix/posix.lo cc-3604 c99: WARNING File = /opt/build/php-5.3.0alpha2/Zend/zend_alloc.h, Line = 87 missing return statement at end of non-void function "__zend_malloc" } ^ cc-3604 c99: WARNING File = /opt/build/php-5.3.0alpha2/Zend/zend_alloc.h, Line = 104 missing return statement at end of non-void function "__zend_realloc" } ^ cc-3970 c99: WARNING File = /opt/build/php-5.3.0alpha2/Zend/zend_execute.h, Line = 70 conversion from pointer to same-sized integral type (potential portability problem) FREE_ZVAL_REL(p); ^ cc-3970 c99: WARNING File = /opt/build/php-5.3.0alpha2/Zend/zend_execute.h, Line = 272 conversion from pointer to same-sized integral type (potential portability problem) int delete_count = (int)(zend_uintptr_t) *p; ^ cc-3970 c99: WARNING File = /opt/build/php-5.3.0alpha2/Zend/zend_execute.h, Line = 285 conversion from pointer to same-sized integral type (potential portability problem) int arg_count = (int)(zend_uintptr_t) *p; ^ cc-1565 c99: ERROR File = /opt/build/php-5.3.0alpha2/ext/posix/posix.c, Line = 671 The struct "utsname" has no field "domainname". add_assoc_string(return_value, "domainname", u.domainname, 1); ^ cc-3968 c99: WARNING File = /opt/build/php-5.3.0alpha2/ext/posix/posix.c, Line = 1267 implicit conversion of a 64-bit integral type to a smaller integral type (potential portability problem) add_assoc_long(return_value, soft, rl.rlim_cur); ^ cc-3968 c99: WARNING File = /opt/build/php-5.3.0alpha2/ext/posix/posix.c, Line = 1273 implicit conversion of a 64-bit integral type to a smaller integral type (potential portability problem) add_assoc_long(return_value, hard, rl.rlim_max); ^ 1 error detected in the compilation of "/opt/build/php-5.3.0alpha2/ext/posix/posix.c". gmake: *** [ext/posix/posix.lo] Error 1 ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=46059&edit=1