Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 11 Sep 2004 23:16:02 +0200
From:      Andreas Kohn <andreas.kohn@gmx.net>
To:        freebsd-ports@freebsd.org
Subject:   apr problems with apache2 *and* subversion
Message-ID:  <1094937362.7634.24.camel@klamath.ankon.de.eu.org>

next in thread | raw e-mail | index | archive | help

--=-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--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1094937362.7634.24.camel>