php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #46059 Compile failure under IRIX 6.5.30 building posix.c
Submitted: 2008-09-11 20:24 UTC Modified: 2008-09-20 22:13 UTC
From: neko at nekochan dot net Assigned: lbarnaud (profile)
Status: Closed Package: Compile Failure
PHP Version: 5.3.0alpha2 OS: IRIX 6.5.30
Private report: No CVE-ID: None
 [2008-09-11 20:24 UTC] 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


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2008-09-12 12:07 UTC] lbarnaud@php.net
Please try the following patch:
http://arnaud.lb.s3.amazonaws.com/utsname_domainname.patch (run ./buildconf, then re-configure)
 [2008-09-13 21:34 UTC] neko at nekochan dot net
Confirmed this patch resolves build issue. Thanks!
 [2008-09-20 22:13 UTC] lbarnaud@php.net
This bug has been fixed in CVS.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
 
Thank you for the report, and for helping us make PHP better.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Nov 21 08:01:29 2024 UTC