<div dir="ltr"><div><div>It might be easier to build db5.3 for Jessie, and than building PHP 5.3 with it.<br></div>Not necessary the smartest way, but probably faster.<br><br></div>Kaplan<br></div><div class="gmail_extra">
<br><br><div class="gmail_quote">On Wed, Apr 30, 2014 at 6:41 PM, Jonas Meurer <span dir="ltr"><<a href="mailto:jonas@freesources.org" target="_blank">jonas@freesources.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hey Debian PHP Admins,<br>
<br>
111111111111111111111111111111<u></u>111111111111111111111111111111<u></u>1111111111<br>
I'm wondering whether anybody tried to build the PHP5.3 packages from<br>
Debian/Squeeze on Debian Jessie yet.<br>
<br>
Background is, that I need to setup a system with Apache 2.4 and PHP5.3<br>
(don't ask me why, one of the pet PHP apps that require PHP 5.3 and<br>
don't work even with 5.4).<br>
<br>
I now spent some time trying to build from source, but I didn't succeed<br>
to patch the configure properly so PHP5.3 builds against Berkeley DB 5.3<br>
yet. I used the patch at<br>
<a href="http://lfs.phayoune.org/patches/downloads/php/php-5.3.3-configure-1.patch" target="_blank">http://lfs.phayoune.org/<u></u>patches/downloads/php/php-5.3.<u></u>3-configure-1.patch</a><br>
and modified it to support DB5.2 and DB5.3 as well, but the build still<br>
breaks at checking DB version:<br>
<br>
checking for dpopen in -lqdbm... yes<br>
checking for QDBM support... yes<br>
checking for GDBM support... no<br>
checking for NDBM support... no<br>
checking for DB4 major version... configure: error: Header contains different version<br>
make: *** [configure-apache2-stamp] Error 1<br>
dpkg-buildpackage: error: debian/rules build gave error exit status 2<br>
<br>
<br>
Does anybody have a quick idea on how to fix that build error?<br>
<br>
Kind regards,<br>
 jonas<br>
<br>
Below's the patch I added as new one to quilt patches:<br>
<br>
--- a/configure<br>
+++ b/configure<br>
@@ -30618,7 +30618,7 @@<br>
<br>
   dbdp4="/usr/local/BerkeleyDB.<u></u>4."<br>
   dbdp5="/usr/local/BerkeleyDB.<u></u>5."<br>
-  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<br>
+  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<br>
     if test -f "$i/db5/db.h"; then<br>
       THIS_PREFIX=$i<br>
       THIS_INCLUDE=$i/db5/db.h<br>
@@ -30627,6 +30627,18 @@<br>
       THIS_PREFIX=$i<br>
       THIS_INCLUDE=$i/db4/db.h<br>
       break<br>
+    elif test -f "$i/include/db5.3/db.h"; then<br>
+      THIS_PREFIX=$i<br>
+      THIS_INCLUDE=$i/include/db5.3/<u></u>db.h<br>
+      break<br>
+    elif test -f "$i/include/db5.2/db.h"; then<br>
+      THIS_PREFIX=$i<br>
+      THIS_INCLUDE=$i/include/db5.2/<u></u>db.h<br>
+      break<br>
+    elif test -f "$i/include/db5.1/db.h"; then<br>
+      THIS_PREFIX=$i<br>
+      THIS_INCLUDE=$i/include/db5.1/<u></u>db.h<br>
+      break<br>
     elif test -f "$i/include/db5.0/db.h"; then<br>
       THIS_PREFIX=$i<br>
       THIS_INCLUDE=$i/include/db5.0/<u></u>db.h<br>
@@ -30669,7 +30681,7 @@<br>
   if test -z "$THIS_INCLUDE"; then<br>
     { echo "configure: error: DBA: Could not find necessary header file(s)." 1>&2; exit 1; }<br>
   fi<br>
-  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<br>
+  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<br>
     if test -f $THIS_PREFIX/$PHP_LIBDIR/lib$<u></u>LIB.a || test -f $THIS_PREFIX/$PHP_LIBDIR/lib$<u></u>LIB.$SHLIB_SUFFIX_NAME; then<br>
       lib_found="";<br>
<br>
@@ -30742,7 +30754,12 @@<br>
 #include "confdefs.h"<br>
<br>
 #include "$THIS_INCLUDE"<br>
-#if DB_VERSION_MINOR != 1 || (DB_VERSION_MINOR == 1 && DB_VERSION_PATCH >= 25)<br>
+#if DB_VERSION_MINOR != 1 || (DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR == 1 && DB_VERSION_PATCH >= 25)<br>
+      yes<br>
+#endif<br>
+<br>
+#include "$THIS_INCLUDE"<br>
+#if DB_VERSION_MAJOR == 5<br>
       yes<br>
 #endif<br>
<br>
<br>
______________________________<u></u>_________________<br>
pkg-php-maint mailing list<br>
<a href="mailto:pkg-php-maint@lists.alioth.debian.org" target="_blank">pkg-php-maint@lists.alioth.<u></u>debian.org</a><br>
<a href="http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-php-maint" target="_blank">http://lists.alioth.debian.<u></u>org/cgi-bin/mailman/listinfo/<u></u>pkg-php-maint</a><br>
</blockquote></div><br></div>