You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by Timothee Besset <ti...@qeradiant.com> on 2001/09/28 16:55:12 UTC

unresolved reference when building subversion-r117 milestone

I have downloaded the subversion-M3-r117.tar.gz milestone and tried to build it. It goes some way through the configure and the building process until I get unresolved reference errors:

/usr/local/lib/libsvn_subr.so.0: undefined reference to `XML_SetElementHandler'
etc. on XML stuff ..

I have libxml1 and libxml2 installed though, I'm using them for other projects:
timo@antares:~/Alliance/subversion-r117$ xml-config --version
1.8.15
timo@antares:~/Alliance/subversion-r117$ xml-config --prefix 
/usr

timo@antares:~/Alliance/subversion-r117$ xml2-config --version
2.3.8
timo@antares:~/Alliance/subversion-r117$ xml2-config --prefix 
/usr/local

I didn't see anything about XML in the configure script, and it also looked like svn has it's own XML code. Searched in the mailing list, didn't find anything related..

let me know if you need more info to track the problem, I'm gonna have a quick look see what's happening.. my box is a debian woody, I downloaded Berkeley DB to put it in subversion tree (in db/)

regards

TTimo

cd subversion/tests/libsvn_ra_local && /bin/sh /home/timo/Alliance/subversion-r117/libtool --silent --mode=link  gcc -DLINUX=2 -D_REENTRANT -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -D_SVID_SOURCE -g -Wall -Wmissing-prototypes -Wstrict-prototypes -Wmissing-declarations -pthread -I/usr/local/include/neon -Wpointer-arith -Wwrite-strings -Wshadow -DSVN_DEBUG -DAP_DEBUG  -I./subversion/include -I. -I./apr/include -I./neon/src -I./expat-lite -I/home/timo/Alliance/subversion-r117/db/dist  -rpath /usr/local/lib -o ra-local-test  ra-local-test.o ../../../subversion/tests/libsvn_test.la ../../../subversion/libsvn_ra/libsvn_ra.la ../../../subversion/libsvn_fs/libsvn_fs.la ../../../subversion/libsvn_delta/libsvn_delta.la ../../../subversion/libsvn_subr/libsvn_subr.la /home/timo/Alliance/subversion-r117/apr/libapr.la  ../../../expat-lite/libexpat.la -lm -lcrypt -lnsl  -ldl
/usr/local/lib/libsvn_subr.so.0: undefined reference to `XML_SetElementHandler'
/usr/local/lib/libsvn_subr.so.0: undefined reference to `XML_Parse'
/usr/local/lib/libsvn_subr.so.0: undefined reference to `XML_ParserFree'
/usr/local/lib/libsvn_subr.so.0: undefined reference to `XML_SetCharacterDataHandler'
/usr/local/lib/libsvn_subr.so.0: undefined reference to `XML_ErrorString'
/usr/local/lib/libsvn_subr.so.0: undefined reference to `XML_ParserCreate'
/usr/local/lib/libsvn_subr.so.0: undefined reference to `XML_SetUserData'
/usr/local/lib/libsvn_subr.so.0: undefined reference to `XML_GetErrorCode'
/usr/local/lib/libsvn_subr.so.0: undefined reference to `XML_GetCurrentLineNumber'
collect2: ld returned 1 exit status
make: *** [subversion/tests/libsvn_ra_local/ra-local-test] Error 1

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

Re: unresolved reference when building subversion-r117 milestone

Posted by Kevin Pilch-Bisson <ke...@pilch-bisson.net>.
On Fri, Sep 28, 2001 at 06:55:12PM +0200, Timothee Besset wrote:
> I have downloaded the subversion-M3-r117.tar.gz milestone and tried to build it. It goes some way through the configure and the building process until I get unresolved reference errors:
> 
> /usr/local/lib/libsvn_subr.so.0: undefined reference to `XML_SetElementHandler'
> etc. on XML stuff ..
> 
> I have libxml1 and libxml2 installed though, I'm using them for other projects:

Well subversion uses a version of expat-lite, which is included in our source
tree.  Not sure how your problem is happening exactly, especially since the
link line specifies ../../../expat-lite/libexpat.la.

> I didn't see anything about XML in the configure script, and it also looked like svn has it's own XML code. Searched in the mailing list, didn't find anything related..
> 
> let me know if you need more info to track the problem, I'm gonna have a quick look see what's happening.. my box is a debian woody, I downloaded Berkeley DB to put it in subversion tree (in db/)
I'm in the same situation, Debian/woody, with Bdb in db/
> 
> regards
> 
> TTimo
> 
> cd subversion/tests/libsvn_ra_local && /bin/sh /home/timo/Alliance/subversion-r117/libtool --silent --mode=link  gcc -DLINUX=2 -D_REENTRANT -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -D_SVID_SOURCE -g -Wall -Wmissing-prototypes -Wstrict-prototypes -Wmissing-declarations -pthread -I/usr/local/include/neon -Wpointer-arith -Wwrite-strings -Wshadow -DSVN_DEBUG -DAP_DEBUG  -I./subversion/include -I. -I./apr/include -I./neon/src -I./expat-lite -I/home/timo/Alliance/subversion-r117/db/dist  -rpath /usr/local/lib -o ra-local-test  ra-local-test.o ../../../subversion/tests/libsvn_test.la ../../../subversion/libsvn_ra/libsvn_ra.la ../../../subversion/libsvn_fs/libsvn_fs.la ../../../subversion/libsvn_delta/libsvn_delta.la ../../../subversion/libsvn_subr/libsvn_subr.la /home/timo/Alliance/subversion-r117/apr/libapr.la  ../../../expat-lite/libexpat.la -lm -lcrypt -lnsl  -ldl
> /usr/local/lib/libsvn_subr.so.0: undefined reference to `XML_SetElementHandler'
> /usr/local/lib/libsvn_subr.so.0: undefined reference to `XML_Parse'
> /usr/local/lib/libsvn_subr.so.0: undefined reference to `XML_ParserFree'
> /usr/local/lib/libsvn_subr.so.0: undefined reference to `XML_SetCharacterDataHandler'
> /usr/local/lib/libsvn_subr.so.0: undefined reference to `XML_ErrorString'
> /usr/local/lib/libsvn_subr.so.0: undefined reference to `XML_ParserCreate'
> /usr/local/lib/libsvn_subr.so.0: undefined reference to `XML_SetUserData'
> /usr/local/lib/libsvn_subr.so.0: undefined reference to `XML_GetErrorCode'
> /usr/local/lib/libsvn_subr.so.0: undefined reference to `XML_GetCurrentLineNumber'
> collect2: ld returned 1 exit status
> make: *** [subversion/tests/libsvn_ra_local/ra-local-test] Error 1

-- 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Kevin Pilch-Bisson                    http://www.pilch-bisson.net
     "Historically speaking, the presences of wheels in Unix
     has never precluded their reinvention." - Larry Wall
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Re: unresolved reference when building subversion-r117 milestone

Posted by Kevin Pilch-Bisson <ke...@pilch-bisson.net>.
On Fri, Sep 28, 2001 at 07:35:46PM +0200, Timothee Besset wrote:
> I found the solution. I completely commented out the part about ra-local-test in build.conf and ran autogen.sh again. This should be fixed in the milestone distribution I think.
>
I don't think so.  See below.
> 
> TTimo
> 
> On Fri, 28 Sep 2001 19:25:38 +0200
> Timothee Besset <ti...@qeradiant.com> wrote:
> 
> > I have found the following section in build.conf:
> > 
> > ## test public routines in libsvn_ra_local
> > [ra-local-test]
> > type = exe
> > path = subversion/tests/libsvn_ra_local
> > sources = ra-local-test.c
> > install = fs-test
> > libs = libsvn_test libsvn_ra libsvn_fs libsvn_delta libsvn_subr
> >         $(SVN_APR_LIBS) libexpat
> > # disabled for now, BROKEN.
> > testing = skip
> > 
> > So I guess the error I'm getting is somewhat expected, and the build
> > system should not be attempting to build it. And yet it does. I am not an
> > auto* specialist, so I don't know what's wrong with it. I tried running
> > autogen.sh before the ./configure --enable-maintainer-mode
> > --disable-shared and make sequence, but it didn't solve my problem.
> >
testing = skip just means that we don't want to run the test when make check
is run.  It doesn't mean we don't want to build it at all, or that it won't 
build.  It builds just fine on everyone else's machnine.
> > 
> > how do I actually disable ra-local-test?

I would rather figure out why the build fails on your machine, than simply not
build the offending part of the code.
> > 
> > TTimo

-- 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Kevin Pilch-Bisson                    http://www.pilch-bisson.net
     "Historically speaking, the presences of wheels in Unix
     has never precluded their reinvention." - Larry Wall
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Re: unresolved reference when building subversion-r117 milestone

Posted by Timothee Besset <ti...@qeradiant.com>.
I found the solution. I completely commented out the part about ra-local-test in build.conf and ran autogen.sh again. This should be fixed in the milestone distribution I think.

TTimo

On Fri, 28 Sep 2001 19:25:38 +0200
Timothee Besset <ti...@qeradiant.com> wrote:

> I have found the following section in build.conf:
> 
> ## test public routines in libsvn_ra_local
> [ra-local-test]
> type = exe
> path = subversion/tests/libsvn_ra_local
> sources = ra-local-test.c
> install = fs-test
> libs = libsvn_test libsvn_ra libsvn_fs libsvn_delta libsvn_subr
>         $(SVN_APR_LIBS) libexpat
> # disabled for now, BROKEN.
> testing = skip
> 
> So I guess the error I'm getting is somewhat expected, and the build
> system should not be attempting to build it. And yet it does. I am not an
> auto* specialist, so I don't know what's wrong with it. I tried running
> autogen.sh before the ./configure --enable-maintainer-mode
> --disable-shared and make sequence, but it didn't solve my problem.
> 
> how do I actually disable ra-local-test?
> 
> TTimo
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
> For additional commands, e-mail: dev-help@subversion.tigris.org

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

Re: unresolved reference when building subversion-r117 milestone

Posted by Timothee Besset <ti...@qeradiant.com>.
I have found the following section in build.conf:

## test public routines in libsvn_ra_local
[ra-local-test]
type = exe
path = subversion/tests/libsvn_ra_local
sources = ra-local-test.c
install = fs-test
libs = libsvn_test libsvn_ra libsvn_fs libsvn_delta libsvn_subr
        $(SVN_APR_LIBS) libexpat
# disabled for now, BROKEN.
testing = skip

So I guess the error I'm getting is somewhat expected, and the build
system should not be attempting to build it. And yet it does. I am not an
auto* specialist, so I don't know what's wrong with it. I tried running
autogen.sh before the ./configure --enable-maintainer-mode
--disable-shared and make sequence, but it didn't solve my problem.

how do I actually disable ra-local-test?

TTimo

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

Re: unresolved reference when building subversion-r117 milestone

Posted by Timothee Besset <ti...@qeradiant.com>.
Yes, cleaning up /usr/local/lib as indicated in the INSTALL file did the
trick. I had forgotten that I tried to install SVN some time ago already.

TTimo

On Sat, 29 Sep 2001 09:32:02 +0100
Joe Orton <jo...@manyfish.co.uk> wrote:

> On Fri, Sep 28, 2001 at 06:55:12PM +0200, Timothee Besset wrote:
> > I have downloaded the subversion-M3-r117.tar.gz milestone and tried to build it. It goes some way through the configure and the building process until I get unresolved reference errors:
> > 
> > /usr/local/lib/libsvn_subr.so.0: undefined reference to `XML_SetElementHandler'
> > etc. on XML stuff ..
> 
> This looks like the same problem as Owen's; can you try removing all the
> installed SVN/apr/neon libs out of /usr/local/lib and recompile? 
> (Configuring with a different --prefix might work too if nothing else 
> picks up -L/usr/local/lib in LDFLAGS)
> 
> Regards,
> 
> joe

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

Re: unresolved reference when building subversion-r117 milestone

Posted by Joe Orton <jo...@manyfish.co.uk>.
On Fri, Sep 28, 2001 at 06:55:12PM +0200, Timothee Besset wrote:
> I have downloaded the subversion-M3-r117.tar.gz milestone and tried to build it. It goes some way through the configure and the building process until I get unresolved reference errors:
> 
> /usr/local/lib/libsvn_subr.so.0: undefined reference to `XML_SetElementHandler'
> etc. on XML stuff ..

This looks like the same problem as Owen's; can you try removing all the
installed SVN/apr/neon libs out of /usr/local/lib and recompile? 
(Configuring with a different --prefix might work too if nothing else 
picks up -L/usr/local/lib in LDFLAGS)

Regards,

joe

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