You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by Robert Dailey <rc...@gmail.com> on 2009/08/22 23:48:27 UTC

Linker warnings & errors

First of all I just want to say that I posted this on the user's list
but I'm getting no responses, so I'm going to propagate my inquiry
here.

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@8
imported in function _svn_md5__digests_match	libsvn_subr-1.lib
subversion
Warning	3	warning LNK4217: locally defined symbol _apr_palloc@8
imported in function _svn_sha1__digests_match	libsvn_subr-1.lib
subversion
Warning	4	warning LNK4049: locally defined symbol _apr_palloc@8
imported	libsvn_subr-1.lib	subversion
Warning	5	warning LNK4049: locally defined symbol _apr_palloc@8
imported	libsvn_subr-1.lib	subversion

Error	233	error LNK2019: unresolved external symbol
__imp__apr_strnatcmp@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@12 referenced in function
_windows_password_encrypter	libsvn_subr-1.lib	subversion
Error	235	error LNK2019: unresolved external symbol
__imp__apr_base64_encode_len@4 referenced in function
_windows_password_encrypter	libsvn_subr-1.lib	subversion
Error	236	error LNK2019: unresolved external symbol
__imp__CryptProtectData@28 referenced in function
_windows_password_encrypter	libsvn_subr-1.lib	subversion
Error	237	error LNK2019: unresolved external symbol
__imp__CryptUnprotectData@28 referenced in function
_windows_password_decrypter	libsvn_subr-1.lib	subversion

Help is VERY much appreciated. Thank you.

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

Re: Linker warnings & errors

Posted by Robert Dailey <rc...@gmail.com>.
Okay then go to the users list and answer my question please :)

On Aug 27, 6:52 pm, Julian Foad <ju...@btopenworld.com> wrote:
> Robert Dailey wrote:
> > I would love some help with this!
>
> I'm sorry that you're having trouble, but the users list is the right
> list for getting help, even with building Subversion. Please don't
> propagate to the development list unless to report a bug or discuss the
> development of Subversion, as explained in
> <http://subversion.tigris.org/mailing-lists.html#where>.
>
> Thanks for your understanding.
> - Julian
>
> > On Aug 22, 6:48 pm, Robert Dailey <rc...@gmail.com> wrote:
> > > First of all I just want to say that I posted this on the user's list
> > > but I'm getting no responses, so I'm going to propagate my inquiry
> > > here.
>
> > > 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:
>
> [...]
>
> ------------------------------------------------------http://subversion.tigris.org/ds/viewMessage.do?dsForumId=462&dsMessag...

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


Re: Linker warnings & errors

Posted by Julian Foad <ju...@btopenworld.com>.
Robert Dailey wrote:
> I would love some help with this!

I'm sorry that you're having trouble, but the users list is the right
list for getting help, even with building Subversion. Please don't
propagate to the development list unless to report a bug or discuss the
development of Subversion, as explained in
<http://subversion.tigris.org/mailing-lists.html#where>.

Thanks for your understanding.
- Julian


> On Aug 22, 6:48 pm, Robert Dailey <rc...@gmail.com> wrote:
> > First of all I just want to say that I posted this on the user's list
> > but I'm getting no responses, so I'm going to propagate my inquiry
> > here.
> >
> > 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:
[...]

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

Re: Linker warnings & errors

Posted by Robert Dailey <rc...@gmail.com>.
I would love some help with this!

On Aug 22, 6:48 pm, Robert Dailey <rc...@gmail.com> wrote:
> First of all I just want to say that I posted this on the user's list
> but I'm getting no responses, so I'm going to propagate my inquiry
> here.
>
> 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@8
> imported in function _svn_md5__digests_match    libsvn_subr-1.lib
> subversion
> Warning 3       warning LNK4217: locally defined symbol _apr_palloc@8
> imported in function _svn_sha1__digests_match   libsvn_subr-1.lib
> subversion
> Warning 4       warning LNK4049: locally defined symbol _apr_palloc@8
> imported        libsvn_subr-1.lib       subversion
> Warning 5       warning LNK4049: locally defined symbol _apr_palloc@8
> imported        libsvn_subr-1.lib       subversion
>
> Error   233     error LNK2019: unresolved external symbol
> __imp__apr_strnatcmp@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@12 referenced in function
> _windows_password_encrypter     libsvn_subr-1.lib       subversion
> Error   235     error LNK2019: unresolved external symbol
> __imp__apr_base64_encode_len@4 referenced in function
> _windows_password_encrypter     libsvn_subr-1.lib       subversion
> Error   236     error LNK2019: unresolved external symbol
> __imp__CryptProtectData@28 referenced in function
> _windows_password_encrypter     libsvn_subr-1.lib       subversion
> Error   237     error LNK2019: unresolved external symbol
> __imp__CryptUnprotectData@28 referenced in function
> _windows_password_decrypter     libsvn_subr-1.lib       subversion
>
> Help is VERY much appreciated. Thank you.
>
> ------------------------------------------------------http://subversion.tigris.org/ds/viewMessage.do?dsForumId=462&dsMessag...

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