[php-maint] Build PHP5.3 on Debian Jessie
Jonas
jonas at freesources.org
Wed Apr 30 20:25:05 UTC 2014
Hello Lior,
Am 30.04.2014 18:15, schrieb Lior Kaplan:
> It might be easier to build db5.3 for Jessie, and than building PHP 5.3
> with it.
> Not necessary the smartest way, but probably faster.
thanks for the quick response. I went another way in the meantime:
install libdb4.8(-dev) from Squeeze on Jessie, that one worked. I had to
adjust pathes for some more libraries. But now php5.3 configure script
doesn't find the libjpeg.a file, even though it's installed and path
correct.
After all it seems like a bigger task than expected to build PHP5.3 for
Jessie. I fear that I'll have to walk through all the hassle nevertheless.
Kind regards,
jonas
> On Wed, Apr 30, 2014 at 6:41 PM, Jonas Meurer <jonas at freesources.org
> <mailto:jonas at freesources.org>> wrote:
>
> Hey Debian PHP Admins,
>
> 111111111111111111111111111111__111111111111111111111111111111__1111111111
> I'm wondering whether anybody tried to build the PHP5.3 packages from
> Debian/Squeeze on Debian Jessie yet.
>
> Background is, that I need to setup a system with Apache 2.4 and PHP5.3
> (don't ask me why, one of the pet PHP apps that require PHP 5.3 and
> don't work even with 5.4).
>
> I now spent some time trying to build from source, but I didn't succeed
> to patch the configure properly so PHP5.3 builds against Berkeley DB 5.3
> yet. I used the patch at
> http://lfs.phayoune.org/__patches/downloads/php/php-5.3.__3-configure-1.patch
> <http://lfs.phayoune.org/patches/downloads/php/php-5.3.3-configure-1.patch>
> and modified it to support DB5.2 and DB5.3 as well, but the build still
> breaks at checking DB version:
>
> checking for dpopen in -lqdbm... yes
> checking for QDBM support... yes
> checking for GDBM support... no
> checking for NDBM support... no
> checking for DB4 major version... configure: error: Header contains
> different version
> make: *** [configure-apache2-stamp] Error 1
> dpkg-buildpackage: error: debian/rules build gave error exit status 2
>
>
> Does anybody have a quick idea on how to fix that build error?
>
> Kind regards,
> jonas
>
> Below's the patch I added as new one to quilt patches:
>
> --- a/configure
> +++ b/configure
> @@ -30618,7 +30618,7 @@
>
> dbdp4="/usr/local/BerkeleyDB.__4."
> dbdp5="/usr/local/BerkeleyDB.__5."
> - for i in $PHP_DB4 ${dbdp5}0 ${dbdp4}8 ${dbdp4}7 ${dbdp4}6
> ${dbdp4}5 ${dbdp4}4 ${dbdp4}3 ${dbdp4}2 ${dbdp4}1 ${dbdp}0
> /usr/local /usr; do
> + for i in $PHP_DB4 ${dbdp5}3 ${dbdp5}2 ${dbdp5}1 ${dbdp5}0
> ${dbdp4}8 ${dbdp4}7 ${dbdp4}6 ${dbdp4}5 ${dbdp4}4 ${dbdp4}3
> ${dbdp4}2 ${dbdp4}1 ${dbdp}0 /usr/local /usr; do
> if test -f "$i/db5/db.h"; then
> THIS_PREFIX=$i
> THIS_INCLUDE=$i/db5/db.h
> @@ -30627,6 +30627,18 @@
> THIS_PREFIX=$i
> THIS_INCLUDE=$i/db4/db.h
> break
> + elif test -f "$i/include/db5.3/db.h"; then
> + THIS_PREFIX=$i
> + THIS_INCLUDE=$i/include/db5.3/__db.h
> + break
> + elif test -f "$i/include/db5.2/db.h"; then
> + THIS_PREFIX=$i
> + THIS_INCLUDE=$i/include/db5.2/__db.h
> + break
> + elif test -f "$i/include/db5.1/db.h"; then
> + THIS_PREFIX=$i
> + THIS_INCLUDE=$i/include/db5.1/__db.h
> + break
> elif test -f "$i/include/db5.0/db.h"; then
> THIS_PREFIX=$i
> THIS_INCLUDE=$i/include/db5.0/__db.h
> @@ -30669,7 +30681,7 @@
> if test -z "$THIS_INCLUDE"; then
> { echo "configure: error: DBA: Could not find necessary header
> file(s)." 1>&2; exit 1; }
> fi
> - for LIB in db-5.0 db-4.8 db-4.7 db-4.6 db-4.5 db-4.4 db-4.3
> db-4.2 db-4.1 db-4.0 db-4 db4 db; do
> + for LIB in db-5.3 db-5.2 db-5.1 db-5.0 db-4.8 db-4.7 db-4.6
> db-4.5 db-4.4 db-4.3 db-4.2 db-4.1 db-4.0 db-4 db4 db; do
> if test -f $THIS_PREFIX/$PHP_LIBDIR/lib$__LIB.a || test -f
> $THIS_PREFIX/$PHP_LIBDIR/lib$__LIB.$SHLIB_SUFFIX_NAME; then
> lib_found="";
>
> @@ -30742,7 +30754,12 @@
> #include "confdefs.h"
>
> #include "$THIS_INCLUDE"
> -#if DB_VERSION_MINOR != 1 || (DB_VERSION_MINOR == 1 &&
> DB_VERSION_PATCH >= 25)
> +#if DB_VERSION_MINOR != 1 || (DB_VERSION_MAJOR == 4 &&
> DB_VERSION_MINOR == 1 && DB_VERSION_PATCH >= 25)
> + yes
> +#endif
> +
> +#include "$THIS_INCLUDE"
> +#if DB_VERSION_MAJOR == 5
> yes
> #endif
>
>
> _________________________________________________
> pkg-php-maint mailing list
> pkg-php-maint at lists.alioth.__debian.org
> <mailto:pkg-php-maint at lists.alioth.debian.org>
> http://lists.alioth.debian.__org/cgi-bin/mailman/listinfo/__pkg-php-maint
> <http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-php-maint>
>
>
More information about the pkg-php-maint
mailing list