PHP compilation from source on FreeBSD 10
[email protected] (Oriental Sensation) Sun, 23 Mar 2014 21:41:32 +0100
| Newsgroups | php.install |
|---|---|
| Message-ID | <CALazp+W984-=XB0AgUhAtifn7rMNzgvE=ZmChatN=GL9D77oTw@mail.gmail.com> |
Hello all, I am trying to compile PHP from source on FreeBSD 10 using clang. The compilation succeeds but for some reason, I get the opcache library packaged as an ar archive and named libopcache.a (maybe got something to do with PIC?) I have no idea what is causing this to happen. For the record, the same configure command when used on FreeBSD 9 branch followed by compilation produced a working, shared opcache.so library. The configure command: ./configure --prefix=/usr/local --with-xmlrpc --with-pcre-regex=/usr/local --with-bz2=/usr --enable-zip --with-openssl=/usr --with-iconv=/usr/local --with-mcrypt=/usr/local --enable-mbstring --with-curl=/usr/local --with-libxml-dir=/usr/local --with-xsl=/usr/local --enable-exif --enable-intl --enable-bcmath --disable-debug --enable-cgi --disable-cli --with-imap=/usr/local --with-imap-ssl --enable-calendar --with-mhash=/usr/local --with-gd --with-freetype-dir=/usr/local --enable-gd-native-ttf --with-zlib=/usr --with-png-dir=/usr/local --with-jpeg-dir=/usr/local --with-mysql=/usr/local --with-mysqli=/usr/local/bin/mysql_config --with-pdo-mysql=/usr/local --with-regex=php --enable-mbregex --disable-sysvsem --disable-sysvshm --disable-shmop --enable-soap --enable-sockets --enable-inline-optimization --enable-opcache --without-pear --with-config-file-path=/usr/common/etc/php --with-config-file-scan-dir=/usr/local/etc/php/cgi --enable-fpm --with-fpm-user=www --with-fpm-group=www Even if I add --without-pic the same happens. One more thing I noticed: The configure script doesn't guess the correct system type, instead it detects it as: x86_64-unknown-freebsd10.0 (should be x86_64-amd64-freebsd10.0 maybe?) Even if I specify a different system build, the same happens. Any idea why OPCache is compiled as libopcache.a and not opcache.so? Thanks in advance, /OS