Bug #69827 [NEW]: Don't know how to define struct flock on this system
From: jiaxianglu at gmail dot com
Operating system: CentOS6.4
PHP version: 7.0.0alpha1
Package: Compile Failure
Bug Type: Bug
Bug description:Don't know how to define struct flock on this system
Description:
------------
php-7.0.0alpha1
CentOS release 6.4 (Final)
2.6.32-358.el6.x86_64
Test script:
---------------
yum -y install libxml2 libxml2-devel openssl openssl-devel libcurl
libcurl-devel libjpeg libjpeg-devel libpng libpng-devel freetype
freetype-devel libmcrypt libmcrypt-devel libxslt libxslt-devel libtool
libtool-ltdl libtool-ltdl-devel
libgd is reinstalled by libgd-2.1.1.tar.xz
./configure --prefix=/usr/local/gd2
make && make install
compile following args:
./configure --enable-fpm --prefix=/usr/local/php7
--with-config-file-path=/usr/local/php7/etc \
--with-fpm-user=nobody --with-fpm-group=nobody --with-mysqli
--with-pdo-mysql \
--with-iconv-dir --with-freetype-dir --with-jpeg-dir --with-png-dir
--with-zlib \
--enable-libxml --with-libxml-dir=/usr --enable-xml \
--enable-dom --disable-rpath --enable-bcmath --enable-shmop \
--enable-sysvsem --enable-inline-optimization --with-curl
--enable-mbregex \
--enable-mbstring --with-mcrypt --enable-ftp --enable-gd-native-ttf \
--with-openssl --with-mhash --enable-pcntl --enable-sockets
--with-xmlrpc \
--enable-zip --enable-soap --without-pear --with-gettext \
--disable-fileinfo --enable-maintainer-zts --enable-exif --with-xsl
--with-gd=/usr/local/gd2
Actual result:
--------------
This is the result:
checking whether to enable Zend OPcache support... yes
checking whether to enable file based caching (experimental)... no
checking for mprotect... yes
checking for sysvipc shared memory support... no
checking for mmap() using MAP_ANON shared memory support... no
checking for mmap() using /dev/zero shared memory support... no
checking for mmap() using shm_open() shared memory support... no
checking for mmap() using regular file shared memory support... no
checking "whether flock struct is linux ordered"... "no"
checking "whether flock struct is BSD ordered"... "no"
configure: error: Don't know how to define struct flock on this system,
set --enable-opcache=no
If I used '--enable-opcache=no' , when I make it, it return:
/home/jiaxiang/php-7.0.0alpha1/ext/gd/gd.c:57:22: error: X11/xpm.h: No
such file or directory
make: *** [ext/gd/gd.lo] Error 1
--
Edit bug report at https://bugs.php.net/bug.php?id=69827&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=69827&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=69827&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=69827&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=69827&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=69827&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=69827&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=69827&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=69827&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=69827&r=support
Expected behavior: https://bugs.php.net/fix.php?id=69827&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=69827&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=69827&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=69827&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=69827&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=69827&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=69827&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=69827&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=69827&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=69827&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=69827&r=mysqlcfg
Thread (6 messages)
- jiaxianglu at gmail dot com