[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

[PATCH] Fix undefined references that occur when linking on x86_64 Ubuntu Lucid Lynx (why do I need this?)

From: Brandon Ehle <azverkan_at_gmail.com>
Date: Sat, 23 Jan 2010 16:00:08 -0800

I have a patch below that fixes x86_64 compilation on Ubuntu Lucid
Lynx with the trunk. I am not sure why I seem to be the only one who
seems to be running into this yet.

Is anyone else compiling Subversion on x86_64 Lucid successfully yet?

I read the thread about commit 901778, but that case doesn't apply to
me (I don't have any compiled subversion libraries anywhere on the
machine). I also tried building the latest autoconf and libtool from
source, but the same errors occur.

Here are the two configurations that I have tried. Both result in the
same undefined references during the linking of most of the
applications. This is making sure to distclean between attempts and
deleting any leftover files visible by svn st --no-ignore.

autoconf 2.63 (tarball)
libtool 2.2.6 (tarball)
GCC 4.4.3 (Lucid deb)

autoconf 2.65 (Lucid deb)
libtool 2.2.6b (Lucid deb)
GCC 4.4.3 (Lucid deb)

Index: build.conf
===================================================================
--- build.conf (revision 902448)
+++ build.conf (working copy)
@@ -134,7 +134,8 @@
 path = subversion/svnadmin
 install = bin
 manpages = subversion/svnadmin/svnadmin.1
-libs = libsvn_repos libsvn_fs libsvn_delta libsvn_subr apriconv apr
+libs = libsvn_repos libsvn_fs libsvn_fs_util libsvn_delta libsvn_subr
+ apriconv apr

 # The subversion repository dump filtering tool
 [svndumpfilter]
@@ -143,7 +144,8 @@
 path = subversion/svndumpfilter
 install = bin
 manpages = subversion/svndumpfilter/svndumpfilter.1
-libs = libsvn_repos libsvn_fs libsvn_delta libsvn_subr apriconv apr
+libs = libsvn_repos libsvn_fs libsvn_fs_util libsvn_delta libsvn_subr
+ apriconv apr

 # The subversion repository inspection tool
 [svnlook]
@@ -152,7 +154,8 @@
 path = subversion/svnlook
 install = bin
 manpages = subversion/svnlook/svnlook.1
-libs = libsvn_repos libsvn_fs libsvn_delta libsvn_diff libsvn_subr apriconv apr
+libs = libsvn_repos libsvn_fs libsvn_fs_util libsvn_delta libsvn_diff
+ libsvn_subr apriconv apr

 [svnserve]
 description = Subversion Server
@@ -160,8 +163,8 @@
 path = subversion/svnserve
 install = bin
 manpages = subversion/svnserve/svnserve.8 subversion/svnserve/svnserve.conf.5
-libs = libsvn_repos libsvn_fs libsvn_delta libsvn_subr libsvn_ra_svn
- apriconv apr sasl
+libs = libsvn_repos libsvn_fs libsvn_fs_util libsvn_delta libsvn_subr
+ libsvn_ra_svn apriconv apr sasl
 msvc-libs = advapi32.lib ws2_32.lib

 [svnsync]
@@ -599,7 +602,8 @@
 path = subversion/tests/libsvn_fs_base
 sources = key-test.c
 install = bdb-test
-libs = libsvn_test libsvn_fs_base libsvn_subr apriconv apr
+libs = libsvn_test libsvn_fs libsvn_fs_base libsvn_fs_util libsvn_subr
+ apriconv apr

 [strings-reps-test]
 description = Test strings/reps in libsvn_fs_base
@@ -608,7 +612,7 @@
 sources = strings-reps-test.c
 install = bdb-test
 libs = libsvn_test libsvn_fs libsvn_fs_base libsvn_delta
- libsvn_subr apriconv apr
+ libsvn_fs_util libsvn_subr apriconv apr

 [changes-test]
 description = Test changes in libsvn_fs_base
@@ -617,7 +621,7 @@
 sources = changes-test.c
 install = bdb-test
 libs = libsvn_test libsvn_fs libsvn_fs_base libsvn_delta
- libsvn_subr apriconv apr
+ libsvn_fs_util libsvn_subr apriconv apr

 # ----------------------------------------------------------------------------
 # Tests for libsvn_fs_fs
@@ -627,7 +631,7 @@
 path = subversion/tests/libsvn_fs_fs
 sources = fs-pack-test.c
 install = test
-libs = libsvn_test libsvn_fs libsvn_fs_fs libsvn_delta
+libs = libsvn_test libsvn_fs libsvn_fs_util libsvn_fs_fs libsvn_delta
        libsvn_subr apriconv apr

 # ----------------------------------------------------------------------------
@@ -639,7 +643,8 @@
 path = subversion/tests/libsvn_fs
 sources = locks-test.c
 install = test
-libs = libsvn_test libsvn_fs libsvn_delta libsvn_subr apriconv apr
+libs = libsvn_test libsvn_fs libsvn_fs_util libsvn_delta libsvn_subr
+ apriconv apr

 [fs-test]
 description = Test locks in libsvn_fs
@@ -647,7 +652,7 @@
 path = subversion/tests/libsvn_fs
 sources = fs-test.c
 install = test
-libs = libsvn_test libsvn_fs libsvn_delta
+libs = libsvn_test libsvn_fs libsvn_fs_util libsvn_delta
        libsvn_subr aprutil apriconv apr

 # ----------------------------------------------------------------------------
@@ -659,7 +664,8 @@
 path = subversion/tests/libsvn_repos
 sources = repos-test.c dir-delta-editor.c
 install = test
-libs = libsvn_test libsvn_repos libsvn_fs libsvn_delta libsvn_subr apriconv apr
+libs = libsvn_test libsvn_repos libsvn_fs libsvn_fs_util libsvn_delta
+ libsvn_subr apriconv apr

 # ----------------------------------------------------------------------------
 # Tests for libsvn_subr
@@ -852,7 +858,8 @@
 path = subversion/tests/libsvn_client
 sources = client-test.c
 install = test
-libs = libsvn_test libsvn_delta libsvn_subr libsvn_ra libsvn_client
apriconv apr neon
+libs = libsvn_test libsvn_delta libsvn_subr libsvn_ra libsvn_client libsvn_wc
+ libsvn_diff apriconv apr neon

 # ----------------------------------------------------------------------------
 # Tests for libsvn_diff
@@ -882,8 +889,8 @@
 path = subversion/tests/libsvn_ra_local
 sources = ra-local-test.c
 install = test
-libs = libsvn_test libsvn_ra_local libsvn_ra libsvn_fs libsvn_delta libsvn_subr
- apriconv apr neon
+libs = libsvn_test libsvn_ra_local libsvn_ra libsvn_repos libsvn_fs
+ libsvn_fs_util libsvn_delta libsvn_subr apriconv apr neon

 # ----------------------------------------------------------------------------
 # Tests for libsvn_wc
Received on 2010-01-24 01:00:44 CET

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.