problems building subversion 1.20

Max Bowsher
Wed Jun 29 21:25:00 GMT 2005 wrote:
> Hello,
>  I am attempting to build svn 1.20 under cygwin (latest)

To get, I assume?

Some of the output below leads me to believe that you are not using the 
Cygwin source package as a starting point - perhaps this would be a good 
If you don't want to do this, then I would point out that the Cygwin package 
is configured using --with-apr=/usr --with-apr-util=/usr --with-neon=/usr .

> and am encountering this:
> .libs/xml.o: In function `svn_xml_make_open_tag_v':
> /usr/src/rpm/SOURCES/subversion-1.2.0/subversion/libsvn_subr/xml.c:602:
> undefined reference to `_apr_pool_destroy'
>  I've narrowed it down to this in particular:
>  [1]+  Exit 1                  cd subversion/libsvn_subr &&
> /bin/bash /usr/bin/libtool --debug --tag=CC --silent --mode=link gcc
> -g -O2 -g -O2 -DNEON_ZLIB -rpath /usr/local/lib -o
> -no-undefined auth.lo cmdline.lo config.lo config_auth.lo
> config_file.lo config_win.lo ctype.lo date.lo error.lo hash.lo io.lo
> lock.lo md5.lo opt.lo path.lo pool.lo quoprint.lo sorts.lo stream.lo
> subst.lo svn_base64.lo svn_string.lo target.lo time.lo utf.lo
> utf_validate.lo validate.lo version.lo xml.lo
> /usr/src/rpm/SOURCES/subversion-1.2.0/apr-util/ -lgdbm
> -ldb-4.3 -lexpat -liconv
> /usr/src/rpm/SOURCES/subversion-1.2.0/apr/ -lresolv
> -lcrypt -lintl >/tmp/libtool-local 2>&1

This indicates it is trying to link against an included copy of apr. I don't 
know why its not working. I haven't built subversion against an included 
copy of apr for months. Possibly years. Since apr has a fairly sedate pace 
of development, I save myself time by building and installing it seperately, 
and then over time, I will build subversion many times without rebuilding 

>  An nm on the static archive libraries in /usr/local/lib shows that
> the undefined symbols are indeed there:
>  nm /usr/local/lib/libapr-0.a| grep ' T ' | sort +2 | grep pool_des
> 000014a0 T _apr_pool_destroy
> 00001790 T _apr_pool_destroy_debug

Does this actually provide any useful data? You can see from the command 
that it is trying to link to 
/usr/src/rpm/SOURCES/subversion-1.2.0/apr/, not 
/usr/local/lib/<anything>. Besides, linking something in an RPM with 
something in /usr/local !!?!? I'm pretty sure you don't want to do that.


Unsubscribe info:
Problem reports:

More information about the Cygwin mailing list