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: 2021-06-20 04:22 UTC
Votes:5
Avg. Score:3.8 ± 1.0
Reproduced:3 of 3 (100.0%)
Same Version:2 (66.7%)
Same OS:2 (66.7%)
From: vigoritor at gmail dot com Assigned: cmb (profile)
Status: No Feedback Package: Compile Failure
PHP Version: 5.6.10 OS: Centos 7
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: vigoritor at gmail dot com
New email:
PHP Version: OS:

 

 [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

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2021-06-10 13:03 UTC] cmb@php.net
-Status: Open +Status: Feedback -Assigned To: +Assigned To: cmb
 [2021-06-10 13:03 UTC] cmb@php.net
Is that still an issue with any of the actively supported PHP
versions[1]?

[1] <https://www.php.net/supported-versions.php>
 [2021-06-20 04:22 UTC] php-bugs at lists dot php dot net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Re-Opened". Thank you.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Mar 19 04:01:31 2024 UTC