From nobody@FreeBSD.org  Mon May 24 09:58:25 2004
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 4D37316A4CE
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 24 May 2004 09:58:25 -0700 (PDT)
Received: from www.freebsd.org (www.freebsd.org [216.136.204.117])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 47A9F43D53
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 24 May 2004 09:58:25 -0700 (PDT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.12.11/8.12.11) with ESMTP id i4OGwOlI013255
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 24 May 2004 09:58:24 -0700 (PDT)
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.12.11/8.12.11/Submit) id i4OGwOAX013254;
	Mon, 24 May 2004 09:58:24 -0700 (PDT)
	(envelope-from nobody)
Message-Id: <200405241658.i4OGwOAX013254@www.freebsd.org>
Date: Mon, 24 May 2004 09:58:24 -0700 (PDT)
From: Max Clark <max@cthought.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: devel/subversion compile failes
X-Send-Pr-Version: www-2.3

>Number:         67130
>Category:       ports
>Synopsis:       devel/subversion compile failes
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    lev
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon May 24 10:00:34 PDT 2004
>Closed-Date:    Sat Aug 21 18:35:03 GMT 2004
>Last-Modified:  Sat Aug 21 18:35:03 GMT 2004
>Originator:     Max Clark
>Release:        4.10RC
>Organization:
>Environment:
FreeBSD cvs.pacificnet.net 4.10-BETA FreeBSD 4.10-BETA #0: Wed Apr 21 18:41:25 UTC 2004     root@cvs.pacificnet.net:/usr/obj/usr/src/sys/CVS  i386
>Description:
When I try to install subversion via the port tree it fails with the following error:

cc: /usr/local/lib/apache2/.libs/libaprutil-0.so: No such file or directory
cc: /usr/local/lib/apache2/.libs/libapr-0.so: No such file or directory
*** Error code 1

cvs# ls -l /usr/local/lib/apache2/
total 528
-rwxr-xr-x  1 root  wheel    8939 May 19 21:29 apr-config
-rw-r--r--  1 root  wheel    6642 May 19 21:29 apr.exp
-rw-r--r--  1 root  wheel    3411 May 19 21:29 aprutil.exp
-rwxr-xr-x  1 root  wheel    6181 May 19 21:29 apu-config
-rw-r--r--  1 root  wheel  166806 May 19 21:29 libapr-0.a
-rw-r--r--  1 root  wheel     810 May 19 21:07 libapr-0.la
lrwxr-xr-x  1 root  wheel      13 May 19 21:29 libapr-0.so -> libapr-0.so.9
-rwxr-xr-x  1 root  wheel  138120 May 19 21:29 libapr-0.so.9
-rw-r--r--  1 root  wheel  107978 May 19 21:29 libaprutil-0.a
-rw-r--r--  1 root  wheel     826 May 19 21:06 libaprutil-0.la
lrwxr-xr-x  1 root  wheel      17 May 19 21:29 libaprutil-0.so -> libaprutil-0.so.9
-rwxr-xr-x  1 root  wheel   88363 May 19 21:29 libaprutil-0.so.9
>How-To-Repeat:
From /usr/ports/devel/subversion

make -DSVNREPOS=/u00/svn/repos -DWITH_REPOSITORY_CREATION -DWITH_PERL -DWITH_MOD_DAV_SVN -DWITH_APACHE2_APR -DWITH_BERKELEYDB=db4 install
>Fix:
      
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->lev 
Responsible-Changed-By: thierry 
Responsible-Changed-When: Mon May 24 10:05:30 PDT 2004 
Responsible-Changed-Why:  

Over to the maintainer. 


http://www.freebsd.org/cgi/query-pr.cgi?pr=67130 
State-Changed-From-To: open->feedback 
State-Changed-By: linimon 
State-Changed-When: Thu Jun 24 23:36:20 GMT 2004 
State-Changed-Why:  
Is the submitter still having this problem?  The build farm is 
showing no build errors right now.  Do you have the latest version 
of the ports collection? 

http://www.freebsd.org/cgi/query-pr.cgi?pr=67130 

From: Dimitry Andric <dimitry@andric.com>
To: freebsd-gnats-submit@FreeBSD.org, max@cthought.com
Cc: clement@FreeBSD.org
Subject: Re: ports/67130: devel/subversion compile failes
Date: Mon, 28 Jun 2004 16:54:36 +0200

 ------------3E611B937C7E6AE
 Content-Type: text/plain; charset=us-ascii
 Content-Transfer-Encoding: quoted-printable
 
 I ran into a similar problem, but for me it fails during the install
 stage:
 
 make WITH_APACHE2_APR=3Dyes WITH_SVNSERVE_WRAPPER=3Dyes
 ...building...
 /usr/ports/devel/subversion/work/subversion-1.0.5/ac-helpers/install-sh -c =
 -m 644 ./subversion/svnversion/svnversion.1 /usr/local/man/man1/svnversion.1
 /usr/ports/devel/subversion/work/subversion-1.0.5/ac-helpers/install-sh -c =
 -d /usr/local/info
 subversion/svnversion/svnversion . /repos/svn/trunk > /usr/local/include/su=
 bversion-1/svn-revision.txt
 /libexec/ld-elf.so.1: Shared object "libaprutil-0.so.9" not found, required=
  by "lt-svnversion"
 *** Error code 1
 
 Stop in /usr/ports/devel/subversion/work/subversion-1.0.5.
 *** Error code 1
 
 Stop in /usr/ports/devel/subversion.
 
 I believe the problem is caused by using WITH_APACHE2_APR=3Dyes, because
 the www/apache2 port installs the libaprutil.so files into
 /usr/local/lib/apache2, while the devel/apr and devel/apr-svn ports,
 which are used if you don't define WITH_APACHE2_APR, install the
 libaprutil.so files into /usr/local/lib.
 
 (Note that the subversion/svnversion/svnversion stuff was recently
 introduced into subversion's Makefile, with a comment of "HACK!! Find
 a better way to do this", which doesn't sound too encouraging.)
 
 I'm not sure what the proper solution is here, one of:
 1) Modify the www/apache2 port to install the libaprutil stuff into
 /usr/local/lib instead of /usr/local/lib/apache2.=20
 2) Modify the devel/apr and devel/apr-svn ports to also put their
 libaprutil stuff into /usr/local/lib/apache2, possibly make them
 conflict with the www/apache2 port to prevent overwriting of the same
 libraries, and fix up the subversion port to build for this situation.
 
 Regarding 1), I have no idea why the apache2 port maintainer has
 chosen to put the aprutil files under a separate dir, but not added
 this dir to ldconfig, for example.  It may be that other ports than
 subversion depend on this specific location...
 
 Regarding 2), in this case it would also be needed to add
 /usr/local/lib/apache2 to ldconfig, to be able to run the svnversion
 script during installation, and to be able to generally find the
 libaprutil.so files.
 
 ------------3E611B937C7E6AE
 Content-Type: application/pgp-signature
 
 -----BEGIN PGP MESSAGE-----
 Version: GnuPG v1.2.4 (MingW32)
 
 iD8DBQFA4DErsF6jCi4glqMRAk7dAJ9pnmsUrxdv35dtT5Qy1wQLsqRaeQCgo7hK
 l74fCK2mRd9opgjjXuE8/Bo=
 =1wrn
 -----END PGP MESSAGE-----
 
 ------------3E611B937C7E6AE--
 

From: Lev Serebryakov <lev@FreeBSD.org>
To: freebsd-gnats-submit@FreeBSD.org
Cc: Dimitry Andric <dimitry@andric.com>, max@cthought.com,
	clement@FreeBSD.org
Subject: Re[2]: ports/67130: devel/subversion compile failes
Date: Wed, 30 Jun 2004 00:19:22 +0400

 Hello Dimitry,
 
 Monday, June 28, 2004, 7:00:38 PM, you wrote:
 
 
 DA>  the www/apache2 port installs the libaprutil.so files into
 DA>  /usr/local/lib/apache2, while the devel/apr and devel/apr-svn ports,
 DA>  which are used if you don't define WITH_APACHE2_APR, install the
 DA>  libaprutil.so files into /usr/local/lib.
 
 DA>  Regarding 1), I have no idea why the apache2 port maintainer has
 DA>  chosen to put the aprutil files under a separate dir, but not added
 DA>  this dir to ldconfig, for example.  It may be that other ports than
 DA>  subversion depend on this specific location...
  Yes, I think, that this should be fixed by Apache2 maintainer...
 libapr.so/libaprutil.so is not plugins, loaded dynamically, but normal shared libs...
 
 
 
 -- 
 Best regards,
  Lev                            mailto:lev@FreeBSD.org
 

From: Clement Laforet <clement@FreeBSD.org>
To: Lev Serebryakov <lev@FreeBSD.org>
Cc: freebsd-gnats-submit@FreeBSD.org, dimitry@andric.com,
	max@cthought.com
Subject: Re: Re[2]: ports/67130: devel/subversion compile failes
Date: Tue, 29 Jun 2004 22:34:34 +0200

 --Signature=_Tue__29_Jun_2004_22_34_34_+0200_QGNk4NmWE7BunHNo
 Content-Type: text/plain; charset=US-ASCII
 Content-Disposition: inline
 Content-Transfer-Encoding: 7bit
 
 On Wed, 30 Jun 2004 00:19:22 +0400
 Lev Serebryakov <lev@FreeBSD.org> wrote:
 
 Hi guys,
 
 > DA>  the www/apache2 port installs the libaprutil.so files into
 > DA>  /usr/local/lib/apache2, while the devel/apr and devel/apr-svn
 > DA>  ports, which are used if you don't define WITH_APACHE2_APR,
 > DA>  install the libaprutil.so files into /usr/local/lib.
 > 
 > DA>  Regarding 1), I have no idea why the apache2 port maintainer has
 > DA>  chosen to put the aprutil files under a separate dir, but not
 > DA>  added this dir to ldconfig, for example.  It may be that other
 > DA>  ports than subversion depend on this specific location...
 >  Yes, I think, that this should be fixed by Apache2 maintainer...
 > libapr.so/libaprutil.so is not plugins, loaded dynamically, but normal
 > shared libs...
 
 It was originally done by perky, and I agree this. I won't put aprlib
 from apache in ${PREFIX}/lib, unless I maintain an apr-apache port
 (since WITH_APR_FROM_PORTS seems to work).
 you can workaround the problem with -L${LOCALBASE}/lib/apache2, -rpath
 and -I${LOCALBASE}/include/apache2. If you wish I can work on better
 integration between svn and apache2.
 Here the solution (post 2.0.50):
 1. I can have a look @ svn port and try my best to provide an efficiant patch
 2. Splitting apache2 port to support an apr-apache2 port.
 3. Adding a ldconfig -m to apache.sh startup script (what a dirty solution)
 
 clem
 
 --Signature=_Tue__29_Jun_2004_22_34_34_+0200_QGNk4NmWE7BunHNo
 Content-Type: application/pgp-signature
 
 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v1.2.4 (FreeBSD)
 
 iD8DBQFA4dJasRhfjwcjuh0RAkiUAJ9Xk7jxRVJzuhQ/BqJ2Fy1qdQUimQCfT0bu
 4YYZgD69JhX0fJL28YyCgoM=
 =t0Nc
 -----END PGP SIGNATURE-----
 
 --Signature=_Tue__29_Jun_2004_22_34_34_+0200_QGNk4NmWE7BunHNo--

From: Lev Serebryakov <lev@FreeBSD.org>
To: Clement Laforet <clement@FreeBSD.org>
Cc: freebsd-gnats-submit@FreeBSD.org, dimitry@andric.com,
	max@cthought.com, rodrigc@crodrigues.org
Subject: Re[4]: ports/67130: devel/subversion compile failes
Date: Wed, 30 Jun 2004 20:35:14 +0400

 Hello Clement,
 
 Wednesday, June 30, 2004, 12:34:34 AM, you wrote:
 
 >> DA>  the www/apache2 port installs the libaprutil.so files into
 >> DA>  /usr/local/lib/apache2, while the devel/apr and devel/apr-svn
 >> DA>  ports, which are used if you don't define WITH_APACHE2_APR,
 >> DA>  install the libaprutil.so files into /usr/local/lib.
 >> 
 >> DA>  Regarding 1), I have no idea why the apache2 port maintainer has
 >> DA>  chosen to put the aprutil files under a separate dir, but not
 >> DA>  added this dir to ldconfig, for example.  It may be that other
 >> DA>  ports than subversion depend on this specific location...
 >>  Yes, I think, that this should be fixed by Apache2 maintainer...
 >> libapr.so/libaprutil.so is not plugins, loaded dynamically, but normal
 >> shared libs...
 CL> It was originally done by perky, and I agree this. I won't put aprlib
 CL> from apache in ${PREFIX}/lib, unless I maintain an apr-apache port
 CL> (since WITH_APR_FROM_PORTS seems to work).
   WHY!? BTW, it is strange, that apache2 works with this port, because `devel/apr' conatins old snapshot of all this stuff: we (I and `devel/apr' maintainer rodrigc@crodrigues.org) wait for 1.0 release, and we asked apr's developers for 0.9.5 release MANY times...
   IMHO, `www/apache2' should install libapr*.so into ${PREFIX}/lib and have CONFLICTS with `devel/apr'. IMHO, it is simple and good solution.
 	
 -- 
 Best regards,
  Lev                            mailto:lev@FreeBSD.org
 

From: Dimitry Andric <dimitry@andric.com>
To: Clement Laforet <clement@FreeBSD.org>
Cc: Lev Serebryakov <lev@FreeBSD.org>,
	freebsd-gnats-submit@FreeBSD.org, max@cthought.com
Subject: Re: ports/67130: devel/subversion compile failes
Date: Wed, 30 Jun 2004 21:04:50 +0200

 ------------2D727D1379C423
 Content-Type: text/plain; charset=us-ascii
 Content-Transfer-Encoding: quoted-printable
 
 On 2004-06-29 at 22:34:34 Clement Laforet wrote:
 
 > It was originally done by perky, and I agree this. I won't put aprlib
 > from apache in ${PREFIX}/lib, unless I maintain an apr-apache port
 > (since WITH_APR_FROM_PORTS seems to work).
 > you can workaround the problem with -L${LOCALBASE}/lib/apache2, -rpath
 > and -I${LOCALBASE}/include/apache2. If you wish I can work on better
 > integration between svn and apache2.
 
 What I don't understand is, if any application dynamically links with
 libaprutil.so, and the apache2 port is installed, how will it find the
 library?  Since /usr/local/lib/apache2 is not added to ldconfig during
 initialization.  (If it is, but I just missed where, please enlighten
 me.)
 
 
 > Here the solution (post 2.0.50):
 > 1. I can have a look @ svn port and try my best to provide an efficiant p=
 atch
 
 The only problem here is that somewhere in the Makefile, a program
 from subversion is run which need libaprutil.so, and thus fails if the
 apache2 port instead of the apr-svn port is installed.  There might be
 a way to hack some LD_LIBRARY_PATH statement into the Makefile, but
 I've not tried...
 
 
 > 2. Splitting apache2 port to support an apr-apache2 port.
 
 This would seem better, but I don't know the reason(s) for having the
 current separate apr and apr-svn ports.  These also seem to use a
 different tarball from apache.org...
 
 
 > 3. Adding a ldconfig -m to apache.sh startup script (what a dirty solutio=
 n)
 
 That would work, but what if you installed both apache2 and one of
 apr or apr-svn ports on the same system?  Which libaprutil.so will be
 used? :)
 
 Maybe a conflict between these ports is too much, because when I look
 at apache.org, the apr stuff is really presented as being a separate
 project, on which other projects, such as subversion, depend.
 
 What I don't understand is why apache itself doesn't depend on apr,
 that would solve the problem IMHO.  Now it seems a bit duplicated
 effort: having two sets of apr include files and libraries.
 
 ------------2D727D1379C423
 Content-Type: application/pgp-signature
 
 -----BEGIN PGP MESSAGE-----
 Version: GnuPG v1.2.4 (MingW32)
 
 iD8DBQFA4w7SsF6jCi4glqMRAuriAJ0Tnv0oaf9p0h56v47EdUS4/L33+QCgjszp
 R6M0gQX8upE2on8FlP5K/rE=
 =epqD
 -----END PGP MESSAGE-----
 
 ------------2D727D1379C423--
 
State-Changed-From-To: feedback->closed 
State-Changed-By: lev 
State-Changed-When: Sat Aug 21 18:34:46 GMT 2004 
State-Changed-Why:  

Fixed by apache2 maintainer. 


http://www.freebsd.org/cgi/query-pr.cgi?pr=67130 
>Unformatted:
