On 2012/01/06 16:30, James Turner wrote: > On Fri, Jan 06, 2012 at 09:07:58PM +0000, Stuart Henderson wrote: > > On 2012-01-06, James Turner <ja...@calminferno.net> wrote: > > > I'm running a i386 snapshot from 01/05 with the php-pdo_sqlite-5.3.8p0 > > > package from 01/02. When I have the pdo_sqlite module symlinked in > > > /etc/php-5.3, httpd fails to start without any errors displayed or in the > > > error_log. If I remove the pdo_sqlite symlink httpd starts as normal. > > > > > > Any ideas? Thanks. > > > > > > > When this happens, it's usually due to needing to force libpthread to > > be preloaded. If this is the case here too, adding the following to > > /etc/login.conf should do the trick (assuming you use /etc/rc.d/httpd > > to start it). > > > > httpd:\ > > :setenv=LD_PRELOAD=/usr/lib/libpthread.so:\ > > :tc=daemon: > > Any reason why the change in behavior? Is this related to the recent > sqlite update? On 5.0 release this is not needed.
Ah, I see it. The 'l' was removed from the wrong line in patch-configure. I'm testing this diff now: Index: Makefile =================================================================== RCS file: /cvs/ports/databases/sqlite3/Makefile,v retrieving revision 1.60 diff -u -p -r1.60 Makefile --- Makefile 21 Dec 2011 00:38:11 -0000 1.60 +++ Makefile 6 Jan 2012 22:28:14 -0000 @@ -4,13 +4,14 @@ COMMENT-main= embedded SQL implementatio COMMENT-tcl= TCL bindings for Sqlite3 COMMENT-lemon= LEMON LALR(1) parser generator V= 3.7.9 +REVISION= 0 DISTNAME= sqlite-src-3070900 EXTRACT_SUFX = .zip PKGNAME-main= sqlite3-${V} PKGNAME-tcl= sqlite3-tcl-${V} PKGNAME-lemon= lemon-${V} CATEGORIES= databases -SHARED_LIBS += sqlite3 15.2 # .8.6 +SHARED_LIBS += sqlite3 16.0 # .8.6 MASTER_SITES= ${HOMEPAGE} @@ -46,7 +47,7 @@ MULTI_PACKAGES=-main -lemon -tcl .include <bsd.port.arch.mk> .if !${PROPERTIES:Mno_shared} -CONFIGURE_ARGS += --enable-load-extension +CONFIGURE_ARGS += --enable-load-extension .endif .if ${BUILD_PACKAGES:M-tcl} Index: patches/patch-configure =================================================================== RCS file: /cvs/ports/databases/sqlite3/patches/patch-configure,v retrieving revision 1.12 diff -u -p -r1.12 patch-configure --- patches/patch-configure 21 Dec 2011 00:38:11 -0000 1.12 +++ patches/patch-configure 6 Jan 2012 22:28:14 -0000 @@ -1,7 +1,17 @@ $OpenBSD: patch-configure,v 1.12 2011/12/21 00:38:11 nigel Exp $ + +XXX careful! this must apply to pthread and not any other lib. + +if updating, to include additional context to help avoid problems later, +use a hand-rolled patch or 'make update-patches DIFF_ARGS=-u6'. + + --- configure.orig Tue Nov 1 12:31:18 2011 -+++ configure Sun Dec 18 11:43:24 2011 -@@ -11231,8 +11231,8 @@ for ac_lib in '' dl; do ++++ configure Fri Jan 6 22:20:01 2012 +@@ -10540,14 +10540,14 @@ return pthread_create (); + } + _ACEOF + for ac_lib in '' pthread; do if test -z "$ac_lib"; then ac_res="none required" else @@ -11,4 +21,7 @@ $OpenBSD: patch-configure,v 1.12 2011/12 + LIBS="-$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : - ac_cv_search_dlopen=$ac_res + ac_cv_search_pthread_create=$ac_res + fi + rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext