php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #69808 5.6 BUILD FAILS: configure: error: Don't know how to define struct flock on thi
Submitted: 2015-06-12 07:56 UTC Modified: -
Votes:4
Avg. Score:3.5 ± 0.9
Reproduced:3 of 3 (100.0%)
Same Version:2 (66.7%)
Same OS:2 (66.7%)
From: vigoritor at gmail dot com Assigned:
Status: Open Package: Compile Failure
PHP Version: 5.6.10 OS: Centos 7
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2015-06-12 07:56 UTC] vigoritor at gmail dot com
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:




Patches

Add a Patch

Pull Requests

Add a Pull Request

 
PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Sun Sep 15 18:01:27 2019 UTC