You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by Stephen Clouse <st...@theiqgroup.com> on 2002/06/21 01:15:13 UTC

Can't build Subversion against installed libapr, but build against libapr source tree is fine

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

With repository tip as of about five minutes ago (r2302) and configured like
so:

	./configure --prefix=/home/stephenc/bin/subversion \
        	--with-apr=/home/stephenc/bin/apache-2.0 \
        	--with-apr-util=/home/stephenc/bin/apache-2.0 \
        	--with-apxs=/home/stephenc/bin/apache-2.0/bin/apxs \
        	--enable-maintainer-mode

make fails with the following:

cd subversion/libsvn_subr && /bin/sh
	/home/stephenc/devel/bleeding-edge/subversion/libtool --silent
	--mode=link  gcc -DLINUX=2 -D_REENTRANT -D_XOPEN_SOURCE=500
	-D_BSD_SOURCE -D_SVID_SOURCE -D_GNU_SOURCE  -g -Wall
	-Wmissing-prototypes -Wstrict-prototypes -Wmissing-declarations
	-pthread -DNEON_ZLIB -DNEON_SSL -Wpointer-arith -Wwrite-strings
	-Wshadow -DSVN_DEBUG -DAP_DEBUG   -I./subversion/include -I. 
	-I/home/stephenc/bin/apache-2.0/include 
	-I/home/stephenc/bin/apache-2.0/include  -I/usr/include/neon
	-rpath /usr/local/lib -o libsvn_subr-1.la  config.lo config_file.lo
	config_win.lo getdate.lo hash.lo io.lo path.lo quoprint.lo sorts.lo
	svn_base64.lo svn_error.lo svn_string.lo target.lo time.lo xml.lo 
	/home/stephenc/bin/apache-2.0/lib/libaprutil.la -lgdbm -ldb -lexpat
	/home/stephenc/bin/apache-2.0/lib/libapr.la -lm -lcrypt -lnsl  -ldl
libtool: link: warning: library 
	`/home/stephenc/bin/apache-2.0/lib/libaprutil.la' was moved.
libtool: link: warning: library `/home/stephenc/bin/apache-2.0/lib/libapr.la'
	was moved.
gcc: /home/stephenc/bin/apache-2.0/lib/.libs/libaprutil.a: No such file or
	directory
gcc: /home/stephenc/bin/apache-2.0/lib/.libs/libapr.a: No such file or
	directory
make: *** [subversion/libsvn_subr/libsvn_subr-1.la] Error 1

However, if I point configure at my Apache source tree for apr and apr-util, 
Subversion builds fine.  Seems like libtool is tripping over itself somewhere
(of course, it seems to do that a lot -- it doesn't want to install mod_dav_svn
without some tweaking either).

- -- 
Stephen Clouse <st...@theiqgroup.com>
Senior Programmer, IQ Coordinator Project Lead
The IQ Group, Inc. <http://www.theiqgroup.com/>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)

iD8DBQE9En4hA4aoazQ9p2cRAhhnAKCuocFBO+Rk9c3C8rwUXYQ8nz9NBQCdEjiG
FeyyP6pNY+czY5be+zQKF90=
=6BZJ
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: Can't build Subversion against installed libapr, but build against libapr source tree is fine

Posted by Stephen Clouse <st...@theiqgroup.com>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Fri, Jun 21, 2002 at 04:04:18PM -0500, Stephen Clouse wrote:
> On Fri, Jun 21, 2002 at 03:05:48PM +0100, Philip Martin wrote:
> > This seems to confirm that the problem is your Apache installation and
> > not Subversion.
> 
> Yes, there seems to be a bug in the Apache install, or perhaps in libtool.

Turns out it's none of the above.  I had emerge install a pristine libtool and
everything is okay.  Looks like a bug in one of Gentoo's local patches to
libtool.

- -- 
Stephen Clouse <st...@theiqgroup.com>
Senior Programmer, IQ Coordinator Project Lead
The IQ Group, Inc. <http://www.theiqgroup.com/>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)

iD8DBQE9GAhOA4aoazQ9p2cRAo9xAJ90YozCZDDoOibBksrBXEyC3jJ2YgCgswU5
/goNDokv4aejW/HhaZW8O04=
=esb5
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: Can't build Subversion against installed libapr, but build against libapr source tree is fine

Posted by Stephen Clouse <st...@theiqgroup.com>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Fri, Jun 21, 2002 at 03:05:48PM +0100, Philip Martin wrote:
> This seems to confirm that the problem is your Apache installation and
> not Subversion.

Yes, there seems to be a bug in the Apache install, or perhaps in libtool.

libtool installs libapr(util).la to PREFIX/lib, with a line like so:

    # Directory that this library needs to be installed in:
    libdir=''

Changing this to the Right Thing allows the build to complete.  However, one
would expect libtool to be bright enough to change this itself on install.

Another thing that works is just blowing away the .la files -- then libtool
apparently quits attempting to work its "magic" and just performs a normal link 
to the shared library.  However, that seems like an unsafe solution :)

I'll keep digging to see if I can decipher why libtool is acting this way, since
it's apparently just my machine doing it.

- -- 
Stephen Clouse <st...@theiqgroup.com>
Senior Programmer, IQ Coordinator Project Lead
The IQ Group, Inc. <http://www.theiqgroup.com/>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)

iD8DBQE9E5TSA4aoazQ9p2cRAo+gAKDsyNk3c51SjfG1bSx30EX3CXSGmACgtJ4o
VbmqNHbt/HVJRd4zj9/dGf4=
=P7Dl
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: Can't build Subversion against installed libapr, but build against libapr source tree is fine

Posted by Philip Martin <ph...@codematters.co.uk>.
Stephen Clouse <st...@theiqgroup.com> writes:

> libtool: link: warning: library 
> 	`/home/stephenc/bin/apache-2.0/lib/libaprutil.la' was moved.
> libtool: link: warning: library `/home/stephenc/bin/apache-2.0/lib/libapr.la'
> 	was moved.
> gcc: /home/stephenc/bin/apache-2.0/lib/.libs/libaprutil.a: No such file or
> 	directory
> gcc: /home/stephenc/bin/apache-2.0/lib/.libs/libapr.a: No such file or
> 	directory
> make: *** [subversion/libsvn_subr/libsvn_subr-1.la] Error 1

I'm not a libtool guru, but this looks like an error in your Apache
installation.  Did you move it?  Did you configure Apache with
--prefix=/home/stephenc/bin/apache-2.0?

> 
> However, if I point configure at my Apache source tree for apr and apr-util, 
> Subversion builds fine. 

This seems to confirm that the problem is your Apache installation and
not Subversion.

-- 
Philip

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org