From:             neko at nekochan dot net
Operating system: IRIX 6.5.30
PHP version:      5.3.0alpha2
PHP Bug Type:     Compile Failure
Bug description:  Compile failure under IRIX 6.5.30 building posix.c

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 bug report at http://bugs.php.net/?id=46059&edit=1
-- 
Try a CVS snapshot (PHP 5.2): 
http://bugs.php.net/fix.php?id=46059&r=trysnapshot52
Try a CVS snapshot (PHP 5.3): 
http://bugs.php.net/fix.php?id=46059&r=trysnapshot53
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=46059&r=trysnapshot60
Fixed in CVS:                 http://bugs.php.net/fix.php?id=46059&r=fixedcvs
Fixed in release:             
http://bugs.php.net/fix.php?id=46059&r=alreadyfixed
Need backtrace:               http://bugs.php.net/fix.php?id=46059&r=needtrace
Need Reproduce Script:        http://bugs.php.net/fix.php?id=46059&r=needscript
Try newer version:            http://bugs.php.net/fix.php?id=46059&r=oldversion
Not developer issue:          http://bugs.php.net/fix.php?id=46059&r=support
Expected behavior:            http://bugs.php.net/fix.php?id=46059&r=notwrong
Not enough info:              
http://bugs.php.net/fix.php?id=46059&r=notenoughinfo
Submitted twice:              
http://bugs.php.net/fix.php?id=46059&r=submittedtwice
register_globals:             http://bugs.php.net/fix.php?id=46059&r=globals
PHP 4 support discontinued:   http://bugs.php.net/fix.php?id=46059&r=php4
Daylight Savings:             http://bugs.php.net/fix.php?id=46059&r=dst
IIS Stability:                http://bugs.php.net/fix.php?id=46059&r=isapi
Install GNU Sed:              http://bugs.php.net/fix.php?id=46059&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=46059&r=float
No Zend Extensions:           http://bugs.php.net/fix.php?id=46059&r=nozend
MySQL Configuration Error:    http://bugs.php.net/fix.php?id=46059&r=mysqlcfg

Reply via email to