From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Thompson Subject: [PATCH 0/2] PHP work in progress Date: Thu, 29 Jan 2015 16:43:14 -0500 Message-ID: <87y4ole00d.fsf@izanagi.i-did-not-set--mail-host-address--so-tickle-me> Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:45581) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YGwrt-0002Xu-Pj for guix-devel@gnu.org; Thu, 29 Jan 2015 16:43:18 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YGwrr-0004mk-Iq for guix-devel@gnu.org; Thu, 29 Jan 2015 16:43:17 -0500 Received: from mail.fsf.org ([208.118.235.13]:48737) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YGwrr-0004mg-G9 for guix-devel@gnu.org; Thu, 29 Jan 2015 16:43:15 -0500 Received: from 209-6-40-86.c3-0.smr-ubr1.sbo-smr.ma.cable.rcn.com ([209.6.40.86]:52528 helo=izanagi) by mail.fsf.org with esmtpsa (TLS-1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.69) (envelope-from ) id 1YGwrr-0003Mz-5y for guix-devel@gnu.org; Thu, 29 Jan 2015 16:43:15 -0500 List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org To: guix-devel@gnu.org This patchset contains a sort-of working PHP package. Unfortunately, the build fails in a way that I have been unable to fix when the '--with-apxs2' configure flag is turned on to build the mod_php Apache httpd module. Here is the build output at the point of failure: /gnu/store/nx4zd42igyb7ghmv4mxv6ncg8wr7ypa1-bash-4.3.33/bin/bash /tmp/n= ix-build-php-5.6.3.drv-14/php-5.6.3/libtool --silent --preserve-dup-deps --= mode=3Dlink /tmp/nix-build-php-5.6.3.drv-14/php-5.6.3/meta_ccld -DPHP_ATOM_= INC -I/tmp/nix-build-php-5.6.3.drv-14/php-5.6.3/include -I/tmp/nix-build-ph= p-5.6.3.drv-14/php-5.6.3/main -I/tmp/nix-build-php-5.6.3.drv-14/php-5.6.3 -= I/tmp/nix-build-php-5.6.3.drv-14/php-5.6.3/ext/date/lib -I/tmp/nix-build-ph= p-5.6.3.drv-14/php-5.6.3/ext/ereg/regex -I/gnu/store/dng0rvcw4264k0r9fp7618= bxsh20bi9v-libxml2-2.9.0/include/libxml2 -I/tmp/nix-build-php-5.6.3.drv-14/= php-5.6.3/ext/sqlite3/libsqlite -I/tmp/nix-build-php-5.6.3.drv-14/php-5.6.3= /TSRM -I/tmp/nix-build-php-5.6.3.drv-14/php-5.6.3/Zend -D_REENTRANT -I/us= r/include -g -O2 -fvisibility=3Dhidden -pthread -DZTS -o ext/opcache/opca= che.la -export-dynamic -avoid-version -prefer-pic -module -rpath /tmp/nix-b= uild-php-5.6.3.drv-14/php-5.6.3/modules -avoid-version -module -L/gnu/store= /dng0rvcw4264k0r9fp7618bxsh20bi9v-libxml2-2.9.0/lib ext/opcache/ZendAcceler= ator.lo ext/opcache/zend_accelerator_blacklist.lo ext/opcache/zend_accelera= tor_debug.lo ext/opcache/zend_accelerator_hash.lo ext/opcache/zend_accelera= tor_module.lo ext/opcache/zend_persist.lo ext/opcache/zend_persist_calc.lo = ext/opcache/zend_shared_alloc.lo ext/opcache/zend_accelerator_util_funcs.lo= ext/opcache/shared_alloc_shm.lo ext/opcache/shared_alloc_mmap.lo ext/opcac= he/shared_alloc_posix.lo ext/opcache/Optimizer/zend_optimizer.lo=20 ld: ext/opcache/.libs/ZendAccelerator.o: relocation R_X86_64_32S agains= t `.text' can not be used when making a shared object; recompile with -fPIC ext/opcache/.libs/ZendAccelerator.o: error adding symbols: Bad value collect2: error: ld returned 1 exit status The first patch contains a simple patch that could be applied right now that fixes the broken 'apxs' program in httpd. The second is the current state of php. Help wanted! Thanks! --=20 David Thompson Web Developer - Free Software Foundation - http://fsf.org GPG Key: 0FF1D807 Support the FSF: https://fsf.org/donate