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

RE: SVN 1.8.x build fail

From: Chen, Peter <Peter.Chen_at_itg.com>
Date: Wed, 18 Mar 2015 01:27:48 +0000

Hi Philip,

Thanks for replying

Yes, my svn-1.6.11 client uses APR-1.3.x.

The APR-1.3.x files are in /home/bin, /home/lib, etc

The APR-1.4.x files are located in /home/Svn/bin, /home/Svn/lib, etc

Sorry, but I'm not that familiar w/ linking, but how do I ensure that the linker finds the right version?

Thanks!

Peter

-----Original Message-----
From: Philip Martin [mailto:philip.martin_at_wandisco.com]
Sent: Tuesday, March 17, 2015 6:15 PM
To: Chen, Peter
Cc: users_at_subversion.apache.org
Subject: Re: SVN 1.8.x build fail

"Chen, Peter" <Peter.Chen_at_itg.com> writes:

> My configure command was:
>
> configure --prefix=/home/Svn --with-zlib=/home/lib
> --with-apr=/home/Svn --with-apr-util=/home/Svn --with-serf=/home/lib
> --with-ssl --with-sqlite=/home/Svn --disable-mod-activation
>
> Here's the last few lines when I run gmake:
>
> ../../subversion/libsvn_ra/libsvn_ra-1.la
> ../../subversion/libsvn_delta/libsvn_delta-1.la
> ../../subversion/libsvn_diff/libsvn_diff-1.la
> ../../subversion/libsvn_subr/libsvn_subr-1.la
> -L/home/local/sparc-solaris2.10/Svn/lib -laprutil-1
> -L/home/local/sparc-solaris2.10/Svn/lib -lapr-1 -L/usr/local/lib
> -liconv -lintl -L/usr/local/lib -liconv -lintl -lsocket -lz
> /home/src/subversion/sparc-solaris2.10/subversion-1.8.11/subversion/libsvn_subr/.libs/libsvn_subr-1.so:
> undefined reference to `apr_hash_do'
> collect2: ld returned 1 exit status
> gmake: *** [subversion/svn/svn] Error 1
>
> I currently have svn-1.6.x installed in a /home/bin and its libraries
> are located in /home/lib. These paths are in my $PATH and
> $LD_LIBRARY_PATH variables, respectively.
>
> I'm installing svn-1.8.x in a different file path /home/Svn/bin,
> /home/Svn/lib because we'd like users to be able to have access to
> both clients for now. APR-1.x and APR-UTIL-1.x have been installed to
> the same file paths as where I'm attempting to install svn-1.8:
> /home/Svn/bin and /home/Svn/lib
>
> I've searched the bug archives and google and haven't found any
> relevant solutions to errors w/ "undefined reference to apr_hash_do"

apr_hash_do is a symbol in libapr and it's present in 1.4.x but not in the earlier versions. Subversion 1.6 doesn't use apr_hash_do so it can be linked against older versions of libapr that do not provide the symbol. I guess your Subversion 1.6 build uses an older version of libapr. Since you now have multiple versions of libapr on your system you have to be careful to arrange them so that the linker finds the right version.

One way to organise this is to put things that can be shared by Subversion 1.6 and Subversion 1.8, such as zlib, in a common dir such as /home/lib. When you have different versions of a library for Subversion
1.6 and Subversion 1.8, such as libapr, then do not put either version in the common dir but put both versions in directories that are specific to the version of Subversion.

--
Philip Martin | Subversion Committer
WANdisco // *Non-Stop Data*
-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-
This message is for the named person's use only. This communication is for informational purposes only and has been obtained from sources believed to be reliable, but it is not necessarily complete and its accuracy cannot be guaranteed. It is not intended as an offer or solicitation for the purchase or sale of any financial instrument or as an official confirmation of any transaction. Moreover, this material should not be construed to contain any recommendation regarding, or opinion concerning, any security. It may contain confidential, proprietary or legally privileged information. No confidentiality or privilege is waived or lost by any mistransmission. If you receive this message in error, please immediately delete it and all copies of it from your system, destroy any hard copies of it and notify the sender. You must not, directly or indirectly, use, disclose, distribute, print, or copy any part of this message if you are not the intended recipient. Any views expressed in this message are those of the individual sender, except where the message states otherwise and the sender is authorized to state them to be the views of any such entity.
Securities products and services provided to Canadian investors are offered by ITG Canada Corp. (member CIPF and IIROC - Investment Industry Regulatory Organization of Canada), an affiliate of Investment Technology Group, Inc.
Investment research products and services are produced and offered by ITG Investment Research, Inc. and not ITG Inc. (a FINRA member firm and SIPC member).
For CANADIANS Only: In accordance with the Canadian AntiSpam Legislation, ITG Canada has implied consent from you as a member of the investment community with whom we have already established a relationship through business discussions or dealings, or your email address was made available to ITG. However, if you are Canadian and wish to stop receiving ANY emails from ITG, please click on this button Unsubscribe <mailto:can-casl_at_itg.com?subject=Unsubscribe>. Please note that this does not apply if you are an existing client, and IIROC & OSC rules & regulations require us to continue to send you critical email communications
ITG Inc. and/or its affiliates reserves the right to monitor and archive all electronic communications through its network.
ITG Inc. Member FINRA, SIPC
-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-
Received on 2015-03-18 02:28:17 CET

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