Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Message-ID: <06f401c57ce9$2da61350$e6ec6f83@chimaera> From: "Max Bowsher" To: , References: <20050629150603 DOT e5wrdeffsjow8sk8 AT www DOT iscs-i DOT com> Subject: Re: problems building subversion 1.20 Date: Wed, 29 Jun 2005 21:28:58 +0100 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=original Content-Transfer-Encoding: 7bit X-IsSubscribed: yes hkatz AT iscs-i DOT 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 . > 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/. 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/