This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: problems building subversion 1.20


Quoting Max Bowsher <maxb@ukf.net>:

hkatz@iscs-i.com wrote:
Hello,

I am attempting to build svn 1.20 under cygwin (latest)

To get mod_dav_svn.so, 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
idea?
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 .

Point taken. Actually I neglected to specify that I was trying to build against
the latest httpd-2.0.54 which was built and installed in /usr/local, hence
the same path below.


Thanks,
Henry

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 libsvn_subr-1.la
-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/libaprutil-0.la -lgdbm
-ldb-4.3 -lexpat -liconv
/usr/src/rpm/SOURCES/subversion-1.2.0/apr/libapr-0.la -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 apr.

 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/libapr-0.la, 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.

Max.






--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]