Bug #69808 [Opn->Fbk]: 5.6 BUILD FAILS: configure: error: Don't know how to define struct flock on thi

From: Date: Thu, 10 Jun 2021 13:03:33 +0000
Subject: Bug #69808 [Opn->Fbk]: 5.6 BUILD FAILS: configure: error: Don't know how to define struct flock on thi
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-234344@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=69808&edit=1 ID: 69808 Updated by: cmb@php.net Reported by: vigoritor at gmail dot com Summary: 5.6 BUILD FAILS: configure: error: Don't know how to define struct flock on thi -Status: Open +Status: Feedback Type: Bug Package: Compile Failure Operating System: Centos 7 PHP Version: 5.6.10 -Assigned To: +Assigned To: cmb Block user comment: N Private report: N New Comment: Is that still an issue with any of the actively supported PHP versions[1]? [1] <https://www.php.net/supported-versions.php> Previous Comments: ------------------------------------------------------------------------ [2015-06-12 07:56:35] 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: ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=69808&edit=1

« previous php.bugs (#234344) next »