Bug #70641 [NEW]: Compile fails for ext/standard/random.c

From: Date: Mon, 05 Oct 2015 12:07:41 +0000
Subject: Bug #70641 [NEW]: Compile fails for ext/standard/random.c
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-196397@lists.php.net to get a copy of this message
From: sascha dot pfalz at ivz dot de Operating system: RHEL 5.7 PHP version: 7.0.0RC4 Package: Compile Failure Bug Type: Bug Bug description:Compile fails for ext/standard/random.c Description: ------------ Trying to compile the sources gave the following error: In file included from /usr/src/php-7.0.0RC4/ext/standard/random.c:35: /usr/include/linux/random.h:38: error: expected specifier-qualifier-list before ‘__u32’ /usr/include/linux/random.h:42: error: expected specifier-qualifier-list before ‘__u32’ make: *** [ext/standard/random.lo] Error 1 Looking at the source, there is the following include part: #ifdef __linux__ # include <linux/random.h> #endif I've commented the whole section and the code compiles. Uncommented it again and got the described error. The compile works with this section commented out. My configure line: CFLAGS="-m64 -O3 -pipe" CXXFLAGS="${CFLAGS}" ./configure \ --with-libdir=lib64 \ --with-apxs2=/opt/apache22/bin/apxs \ --enable-fpm \ --enable-phpdbg \ --enable-phpdbg-webhelper \ --with-config-file-path=/opt/apache22/conf/php70 \ --with-config-file-scan-dir=/opt/apache22/conf/php70/php.d \ --enable-sigchild \ --with-libxml-dir=/usr \ --with-openssl=/opt/openssl \ --with-system-ciphers \ --with-pcre-regex \ --with-zlib=/usr \ --enable-bcmath \ --with-bz2=/usr \ --enable-calendar \ --with-curl=/usr \ --enable-dba \ --with-gdbm=/usr \ --with-db4=/usr \ --with-libxml-dir=/usr \ --enable-exif \ --enable-ftp \ --with-openssl-dir=/opt/openssl \ --with-gd \ --with-jpeg-dir=/usr \ --with-png-dir=/usr \ --with-zlib-dir=/usr \ --with-xpm-dir=/usr \ --with-freetype-dir=/usr \ --enable-gd-native-ttf \ --enable-gd-jis-conv \ --with-gettext=/usr \ --with-gmp=/opt/gmp6 \ --with-mhash \ --with-imap=/usr/local/php-imap \ --without-kerberos \ --with-imap-ssl=/opt/openssl \ --enable-intl \ --with-icu-dir=/opt/icu \ --with-ldap \ --with-ldap-sasl \ --enable-mbstring \ --with-libmbfl \ --with-mcrypt \ --with-mysqli=mysqlnd \ --with-mysql-sock=/var/lib/mysql/mysql.sock \ --with-oci8 \ --enable-pcntl \ --with-pdo-mysql=mysqlnd \ --with-zlib-dir=/usr \ --with-pdo-oci \ --with-readline=/usr \ --enable-shmop \ --with-libxml-dir=/usr \ --without-snmp \ --enable-soap \ --enable-sockets \ --enable-sysvmsg \ --enable-sysvsem \ --enable-sysvshm \ --enable-wddx \ --with-libxml-dir=/usr \ --enable-zip \ --with-pear=/opt/apache22/PEAR \ --with-xsl \ --enable-mysqlnd \ --with-xmlrpc On this box I've had PHP 5.6.x series compiled so far without any problems. -- Edit bug report at https://bugs.php.net/bug.php?id=70641&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=70641&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=70641&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=70641&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=70641&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=70641&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=70641&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=70641&r=needscript Try newer version: https://bugs.php.net/fix.php?id=70641&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=70641&r=support Expected behavior: https://bugs.php.net/fix.php?id=70641&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=70641&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=70641&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=70641&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=70641&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=70641&r=dst IIS Stability: https://bugs.php.net/fix.php?id=70641&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=70641&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=70641&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=70641&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=70641&r=mysqlcfg

« previous php.bugs (#196397) next »