|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2013-07-05 02:07 UTC] reh at hebis dot uni-frankfurt dot de
Description: ------------ Configure tries to define a macro for the os dependent structure of flock. (lines 64988 to 65007) Using solarisstudio 12.3 as compiler, non of the pattern matches and configure suggests to disable OPCache Not really knowing what I'm doing, I tried to patch the line 64991 From "# elif defined(__svr4__)" to "# elif defined(__svr4__) || defined(__SVR4)" This workaround is poor I know, but it seems to work, configure generates the Makefiles. The same construct can be found in ext/opcache/ZendAccelerator.h and for me it looks like that there were some other smells in the opcache package. Make still fails. Test script: --------------- Configure itself Actual result: -------------- Configure: checking for known struct flock definition... configure: error: Don't know how to define struct flock on this system, set --enable-opcache=no PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Oct 30 15:00:01 2025 UTC |
Today I was able too complete the build. I had to add some Lines in configure and ZendAccelerator.h. (corresponding to <sys/fcntl.h>) > # elif defined(__SVR4) > # define FLOCK_STRUCTURE(name, type, whence, start, len) \ > struct flock name = {type, whence, start, len, 0, 0, 0 } Also it was necessary to translate some files of ext/opcache/ with dos2unix. Maybe the problem has been long lines concatunated whith "\CRNL" instead of "\NL" Still it's a hack, not a tested solution. ;-)I've tried on PHP-5.5.10 and -5.5.9 with libmcrypt-2.5.8 with no success. I have confirmed that removing "--with-mcrypt..." allows configure to complete successfully. It should be noted that I am doing this on Heroku. My libmcrypt configure directives: ./configure --prefix=/app/vendor/mcrypt \ --disable-posix-threads \ --enable-dynamic-loading My PHP configure directives: ./configure --prefix=/app/vendor/php \ --with-mysqli \ --with-gd \ --with-curl=/usr/lib \ --with-config-file-path=/app/vendor/php \ --with-openssl \ --enable-fpm \ --with-zlib \ --enable-mbstring \ --disable-debug \ --disable-rpath \ --enable-gd-native-ttf \ --enable-inline-optimization \ --with-bz2 \ --with-mhash \ --enable-zip \ --with-gettext \ --with-jpeg-dir=/usr \ --with-png-dir=/usr \ --enable-exif \ --enable-bcmath \ --enable-calendar \ --enable-sockets \ --with-xmlrpc \ --with-mcrypt=/app/vendor/mcrypt \ --without-pdo-sqlite \ --without-sqlite3