You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by Jens-Uwe Mager <ju...@anubis.han.de> on 2003/05/22 18:03:39 UTC

undefined externals while compiling svnversion?

I am just attempting to upgrade from 0.22 to 0.23 on a Gentoo Linux box.
I did all the things as per the notes I kept for the last time around
but now I am getting the following undefined external linker error:

cd subversion/svnversion && /bin/sh /work/src/svn/libtool --silent
--mode=link gcc  -g -O2 -pthread  -DNEON_ZLIB -DNEON_SSL
-L/work/db-4.0.14/lib  -rpath /work/svn-head/lib -o svnversion main.o
./../subversion/libsvn_client/libsvn_client-1.la
/work/apache-head/lib/libaprutil-0.la -lgdbm
/work/db-4.0.14/lib/libdb-4.0.la  -lexpat
/work/apache-head/lib/libapr-0.la -lrt -lm -lcrypt -lnsl  -ldl
/work/src/svn/subversion/libsvn_ra_dav/.libs/libsvn_ra_dav-1.so:
undefined reference to `ne_get_session_private'
/work/src/svn/subversion/libsvn_ra_dav/.libs/libsvn_ra_dav-1.so:
undefined reference to `ne_set_session_private'
collect2: ld returned 1 exit status
make: *** [subversion/svnversion/svnversion] Error 1

Does that ring a bell with anyone? Anything obvious I am missing?

-- 
Jens-Uwe Mager	<pgp-mailto:F476EBC2>

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

Re: undefined externals while compiling svnversion?

Posted by Jens-Uwe Mager <ju...@anubis.han.de>.
On Thu, May 22, 2003 at 16:05 -0500, Ben Collins-Sussman wrote:

> Jens-Uwe Mager <ju...@anubis.han.de> writes:
> 
> > cd subversion/svnversion && /bin/sh /work/src/svn/libtool --silent
> > --mode=link gcc  -g -O2 -pthread  -DNEON_ZLIB -DNEON_SSL
> > -L/work/db-4.0.14/lib  -rpath /work/svn-head/lib -o svnversion main.o
> > ./../subversion/libsvn_client/libsvn_client-1.la
> > /work/apache-head/lib/libaprutil-0.la -lgdbm
> > /work/db-4.0.14/lib/libdb-4.0.la  -lexpat
> > /work/apache-head/lib/libapr-0.la -lrt -lm -lcrypt -lnsl  -ldl
> > /work/src/svn/subversion/libsvn_ra_dav/.libs/libsvn_ra_dav-1.so:
> > undefined reference to `ne_get_session_private'
> 
> That's a neon symbol.  Why is there no -lneon in your link line?
> libsvn_ra_dav depends on it.

I have no idea why the neon library is missing (I have to admit that I
am not really understanding what autoconf and automake do generate). The
generated Makefile looks like this regarding to neon:

NEON_LIBS = -L/work/neon-head/lib -lneon -lssl -lcrypto -lz -lxml2 -lz -lm

How does this get used at all? I find no further reference to NEON_LIBS
in the Makefile.

-- 
Jens-Uwe Mager	<pgp-mailto:F476EBC2>

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

Re: undefined externals while compiling svnversion?

Posted by Ben Collins-Sussman <su...@collab.net>.
Jens-Uwe Mager <ju...@anubis.han.de> writes:

> cd subversion/svnversion && /bin/sh /work/src/svn/libtool --silent
> --mode=link gcc  -g -O2 -pthread  -DNEON_ZLIB -DNEON_SSL
> -L/work/db-4.0.14/lib  -rpath /work/svn-head/lib -o svnversion main.o
> ./../subversion/libsvn_client/libsvn_client-1.la
> /work/apache-head/lib/libaprutil-0.la -lgdbm
> /work/db-4.0.14/lib/libdb-4.0.la  -lexpat
> /work/apache-head/lib/libapr-0.la -lrt -lm -lcrypt -lnsl  -ldl
> /work/src/svn/subversion/libsvn_ra_dav/.libs/libsvn_ra_dav-1.so:
> undefined reference to `ne_get_session_private'

That's a neon symbol.  Why is there no -lneon in your link line?
libsvn_ra_dav depends on it.

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