From owner-freebsd-ports@FreeBSD.ORG Sat Sep 11 21:16:05 2004 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5A49516A4CE for ; Sat, 11 Sep 2004 21:16:05 +0000 (GMT) Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by mx1.FreeBSD.org (Postfix) with SMTP id 61CFA43D3F for ; Sat, 11 Sep 2004 21:16:04 +0000 (GMT) (envelope-from andreas.kohn@gmx.net) Received: (qmail 8217 invoked by uid 65534); 11 Sep 2004 21:16:03 -0000 Received: from unknown (EHLO [212.204.44.203]) (212.204.44.203) by mail.gmx.net (mp020) with SMTP; 11 Sep 2004 23:16:03 +0200 X-Authenticated: #2431876 From: Andreas Kohn To: freebsd-ports@freebsd.org Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-D1LiqhQZ4pvRUhY6Ugca" Message-Id: <1094937362.7634.24.camel@klamath.ankon.de.eu.org> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.6 Date: Sat, 11 Sep 2004 23:16:02 +0200 Subject: apr problems with apache2 *and* subversion X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 11 Sep 2004 21:16:05 -0000 --=-D1LiqhQZ4pvRUhY6Ugca Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Hi, I want to use both apache2 (with mod_python3) and subversion on my machine, and I'm having some problems with apr. Subversion needs apr, and installed the devel/apr-svn port as dependency. Apache2 also needs apr, and will try to install its own version, although in a different path (/usr/local/lib/apache2 vs /usr/local/lib for apr-svn). If apr-svn is already installed, apache2 installation aborts with a hint to use WITH_APR_FROM_PORTS. (Which is experimental, unsupported etc) If I install apache2 first, and apr-svn afterwards, apache2 will automatically link the /usr/local/lib/libapr[-util].so[.9] instead of the versions in /usr/local/lib/apache2. The problems start with mod_python3, which needs a threaded apache (either using WITH_THREADS, or LD_PRELOAD=3D"libpthread.so") So having apache2 linking to libapr[-util].so from /usr/local/lib (which is unthreaded according to its name: apr-nothr-gdbm-db4-0.9.4_9) is not possible, and apache will coredump.=20 I ended up with linking /usr/local/lib/apache2/libapr[-util].so[.9] to /usr/local/lib/libapr[-util]-apache2.so[.9], and then adding=20 [httpd] libaprutil-0.so.9 libaprutil-0-apache2.so.9 libaprutil-0.so libaprutil-0-apache2.so libapr-0.so.9 libapr-0-apache2.so.9 libapr-0.so libapr-0-apache2.so to libmap.conf. But I consider this solution rather ugly, and am wondering if there is any other way to have apache2, subversion, and mod_python3 working together. Could anything be achieved with forcing apache to use the correct libapr stuff using -rpath? Or am I simply overlooking some points here? Regards, Andreas --- System information --- FreeBSD klamath.ankon.de.eu.org 6.0-CURRENT FreeBSD 6.0-CURRENT #0: Tue Sep 7 23:19:39 CEST 2004 =20 root@klamath.ankon.de.eu.org:/usr/obj/usr/src/sys/KLAMATH i386 apr-nothr-gdbm-db4-0.9.4_9 apache-2.0.50_2 subversion-1.0.6 subversion-perl-1.0.6_2 mod_python-3.1.3 --- [Maintainers of apr-svn and apache2 ports CC:ed, I hope that's not considered too offensive] --=-D1LiqhQZ4pvRUhY6Ugca Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iD8DBQBBQ2sSYucd7Ow1ygwRAnniAJ4iAoHxp9f7ciDIu4712vPCNUSSOgCfZxhr GIdD1MdjylgfcsPqgtMrYUU= =4ah3 -----END PGP SIGNATURE----- --=-D1LiqhQZ4pvRUhY6Ugca--