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

Re: Linker issues building subversion on Windows

From: Robert Dailey <rcdailey_at_gmail.com>
Date: Thu, 3 Sep 2009 13:20:42 -0500

On Thu, Sep 3, 2009 at 11:54 AM, D.J. Heap <djheap_at_gmail.com> wrote:

> On Thu, Sep 3, 2009 at 9:08 AM, Robert Dailey<rcdailey_at_gmail.com> wrote:
> [snip]
> >
> > I don't recall there being more than one kind of lib per SVN module. For
> > example, you state there should be both an svn_client-1.lib and
> > libsvn_client-1.lib. When I built subversion I do not recall seeing both.
> > What do you mean exactly?
>
>
> The libsvn_*.lib files are import libraries for dynamic linking --
> linking to them will require that you have the .dll's present at
> runtime because they do not actually pull the object code into your
> program, they only have pointers to the .dll modules.
>
> The svn_*.lib files are static libraries for static linking and will
> not require the .dll's at runtime because they actually pull the
> object code into your module.
>
> It looks like you are mixing static APR libraries with dynamic
> Subversion libraries and that is probably causing your issues.
>
> I think both library types are automatically built by the default
> build target -- do you not see them in your output folders?

I'm using gen-make.py in the subversion root source directory to generate
msvc9 project files, and then I use that to build subversion. I pass paths
to all of the apr, sqlite, openssl, and other needed libraries to the
gen-make.py script as command line arguments. I have opened the apr-util
library in a hex editor and searched for the symbol names and I was able to
find them in there. I also am aware that the aprutil.mak file (which I used
to build aprutil) indeed does specify APU_DECLARE_STATIC, so I know for a
fact that APR and APRUTIL are being built as static libraries. However, I'm
building using the default 'release' configuration for Subversion in the
generated visual studio 2008 project files provided by gen-make.py. I simply
assumed these were the static SVN libraries as well, since I don't recall
finding any DLL files, just LIB files in the output directories after the
build.

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2390796

To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2009-09-03 20:22:07 CEST

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

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