Bug #69808 [NEW]: 5.6 BUILD FAILS: configure: error: Don't know how to define struct flock on thi
From: vigoritor at gmail dot com
Operating system: Centos 7
PHP version: 5.6.10
Package: Compile Failure
Bug Type: Bug
Bug description:5.6 BUILD FAILS: configure: error: Don't know how to define struct flock on thi
Description:
------------
PHP 5.6.4
CentOS Linux release 7.1.1503 (Core)
Trying to compile w/ following args:
sudo ./configure --with-apxs2 --disable-cgi --enable-sockets
--enable-pcntl --with-readline --with-zlib --with-openssl --with-curl
--with-ldap --enable-mbstring --with-gettext --enable-soap --enable-wddx
--with-tidy --with-jpeg-dir --with-png-dir --with-gd
--enable-gd-native-ttf --with-freetype-dir --with-libxml-dir
--with-xmlrpc --with-pdo-mysql=mysqlnd --with-mysql=mysqlnd
--with-mysqli=mysqlnd --with-config-file-path=/etc/httpd/conf
--with-mcrypt --enable-opcache --prefix=/usr/local/php-5.6.4
if i do enable-opcache=no it works, if i do --enable-opcache and remove
--with-curl it works, but as listed above it wont compile and am left
with the following error:
configure: error: Don't know how to define struct flock on this system,
set --enable-opcache=no
ive read a lot about this, including bug reports here and no resolution.
Kinda of at a loss.
config.log has a lot of errors w/ exit status 1. here are few in:
/tmp/ccpRlmKX.o: In function `main':
/usr/local/src/php/php-5.6.4-BUILD/conftest.c:37: undefined reference to
`pthread_mutexattr_init'
/usr/local/src/php/php-5.6.4-BUILD/conftest.c:38: undefined reference to
`pthread_create'
collect2: error: ld returned 1 exit status
configure:5790: $? = 1
configure: program exited with status 1
configure: failed program was:
| /* confdefs.h */
/tmp/ccpcO0GK.o: In function `main':
/usr/local/src/php/php-5.6.4-BUILD/conftest.c:59: undefined reference to
`setproctitle'
collect2: error: ld returned 1 exit status
configure:10800: $? = 1
/tmp/ccBXiVXA.o: In function `main':
/usr/local/src/php/php-5.6.4-BUILD/conftest.c:67: undefined reference to
`dlopen'
collect2: error: ld returned 1 exit status
configure:17467: $? = 1
... with the last one being:
configure:24333: cc -o conftest -g -O2 -fvisibility=hidden conftest.c
-lssl -lrt -lm -ldl -lnsl -lxml2 -lz -lm -ldl >&5
/bin/ld: /tmp/ccodvPas.o: undefined reference to symbol
'DSA_get_default_method@@libcrypto.so.10'
/bin/ld: note: 'DSA_get_default_method@@libcrypto.so.10' is defined in
DSO /lib64/libcrypto.so.10 so try adding it to the linker command line
/lib64/libcrypto.so.10: could not read symbols: Invalid operation
collect2: error: ld returned 1 exit status
configure:24333: $? = 1
configure: failed program was:
--
Edit bug report at https://bugs.php.net/bug.php?id=69808&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=69808&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=69808&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=69808&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=69808&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=69808&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=69808&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=69808&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=69808&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=69808&r=support
Expected behavior: https://bugs.php.net/fix.php?id=69808&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=69808&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=69808&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=69808&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=69808&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=69808&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=69808&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=69808&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=69808&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=69808&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=69808&r=mysqlcfg
Thread (3 messages)
- vigoritor at gmail dot com