[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: Bolstridge, Andrew <andy.bolstridge_at_intergraph.com>
Date: Wed, 2 Sep 2009 10:11:05 +0100

From the description, I would think that the apr version you're using is
not correct - ie, there is missing code exports.

See if you can find those exported functions that you are having
problems linking in the apr sources, or if you've built them as dlls,
use dependency walker to see the exports that the dll is really exposing
to you.

 

If they are present, then it's possible you've built them as ANSI and
linking them to an app built as Unicode (or vice versa) and the exports
aren't quite matching correctly. The other possibility is that they're
imported as declspec(dllimport), but you havn't built them with
declspec(dllexport) - ie so they're exported as standard C functions
without any MS-specific decoration, but you're importing them as if they
were.

 

Andy

 

 

 

From: Robert Dailey [mailto:rcdailey_at_gmail.com]
Sent: Tuesday, September 01, 2009 10:36 PM
To: users_at_subversion.tigris.org
Subject: Re: Linker issues building subversion on Windows

 

On Thu, Aug 27, 2009 at 8:34 PM, Robert Dailey <rcdailey_at_gmail.com>
wrote:

I build subversion and all of its dependencies from scratch on Windows
using MSVC9. When I link against the appropriate libraries for my
project I get linker warnings and errors. A bunch of them. First, I'll
show you the libraries I'm linking against:

   apr-1.lib
   aprutil-1.lib
   ws2_32.lib
   libsvn_client-1.lib
   libsvn_subr-1.lib
   libsvn_wc-1.lib

And my preprocessor directives (for my debug configuration):

WIN32
_WINDOWS
_DEBUG
_CRT_SECURE_NO_WARNINGS
UNICODE
_UNICODE
BOOST_ALL_NO_LIB
APR_DECLARE_STATIC
API_DECLARE_STATIC
APU_DECLARE_STATIC
NDEBUG
SVN_NEON_0_26=1
SVN_NEON_0_27=1
SVN_NEON_0_28=1
SVN_HAVE_NEON
SVN_LIBSVN_CLIENT_LINKS_RA_NEON
SVN_USE_WIN32_CRASHHANDLER
_CRTDBG_MAP_ALLOC
CMAKE_INTDIR=\"Debug\"

And when I build my project, I get the following linker warnings
(first) and errors (last set). Note that I did not show them all here,
only a few. There are actually hundreds. I can't seem to figure out
the cause of the warnings & errors.

Warning 1 warning LNK4098: defaultlib 'MSVCRT' conflicts with use
of
other libs; use /NODEFAULTLIB:library subversion subversion
Warning 2 warning LNK4217: locally defined symbol _apr_palloc_at_8
imported in function _svn_md5__digests_match libsvn_subr-1.lib
subversion
Warning 3 warning LNK4217: locally defined symbol _apr_palloc_at_8
imported in function _svn_sha1__digests_match libsvn_subr-1.lib
subversion
Warning 4 warning LNK4049: locally defined symbol _apr_palloc_at_8
imported libsvn_subr-1.lib subversion
Warning 5 warning LNK4049: locally defined symbol _apr_palloc_at_8
imported libsvn_subr-1.lib subversion

Error 233 error LNK2019: unresolved external symbol
__imp__apr_strnatcmp_at_8 referenced in function
_svn_auth_get_platform_specific_provider libsvn_subr-1.lib
subversion
Error 234 error LNK2019: unresolved external symbol
__imp__apr_base64_encode_at_12 referenced in function
_windows_password_encrypter libsvn_subr-1.lib subversion
Error 235 error LNK2019: unresolved external symbol
__imp__apr_base64_encode_len_at_4 referenced in function
_windows_password_encrypter libsvn_subr-1.lib subversion
Error 236 error LNK2019: unresolved external symbol
__imp__CryptProtectData_at_28 referenced in function
_windows_password_encrypter libsvn_subr-1.lib subversion
Error 237 error LNK2019: unresolved external symbol
__imp__CryptUnprotectData_at_28 referenced in function
_windows_password_decrypter libsvn_subr-1.lib subversion

Help is VERY much appreciated. Thank you.

 

I'm still seeking feedback on this. I really can't figure out what the
problem is......

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

To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2009-09-02 11:12:21 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.