Bug #69827 [Com]: Don't know how to define struct flock on this system

From: Date: Sun, 14 Jun 2015 10:31:55 +0000
Subject: Bug #69827 [Com]: Don't know how to define struct flock on this system
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-193464@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=69827&edit=1

 ID:                 69827
 Comment by:         jiaxianglu at gmail dot com
 Reported by:        jiaxianglu at gmail dot com
 Summary:            Don't know how to define struct flock on this system
 Status:             Closed
 Type:               Bug
 Package:            Compile Failure
 Operating System:   CentOS6.4
 PHP Version:        7.0.0alpha1
 Assigned To:        laruence
 Block user comment: N
 Private report:     N

 New Comment:

..No..
Thank you for your remind

return:
/bin/sh /home/jiaxiang/php-7.0.0alpha1/libtool --silent --preserve-dup-deps --mode=install cp
ext/opcache/opcache.la /home/jiaxiang/php-7.0.0alpha1/modules

Build complete.
Don't forget to run 'make test'.


Previous Comments:
------------------------------------------------------------------------
[2015-06-14 10:25:55] laruence@php.net

did you try "make -j" ? :)

------------------------------------------------------------------------
[2015-06-14 09:31:57] jiaxianglu at gmail dot com

Now I resolved.
First, I edit /etc/ld.so.conf.d/local.conf
content is:
/usr/local/lib64
/usr/local/lib
/usr/lib
/usr/lib64

So config is OK, but make is still failure !

Finally, I added /usr/local/gd2/lib
and replace config args --with-gd=/usr/local/gd2 to --with-gd

then compile is success!

Thank you!

PS: new PHP compile is sososo long time. I buy a cup of starbucks and back to my computer. It is
still compileing.
But I love it . It is so fast!

------------------------------------------------------------------------
[2015-06-14 09:30:20] laruence@php.net

please check config.log for more info about error

------------------------------------------------------------------------
[2015-06-14 08:27:29] jiaxianglu at gmail dot com

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 this bug report at https://bugs.php.net/bug.php?id=69827&edit=1


Thread (6 messages)

« previous php.bugs (#193464) next »