You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by Johan Corveleyn <jc...@gmail.com> on 2012/04/10 03:19:24 UTC
build probs on Windows with release build and conditionally defined
symbols (SVN_WITH_SYMMETRIC_MERGE)
Hi,
I haven't built trunk for a while, and now that I'm catching up I get
the following build errors (with my release build):
libsvn_client.def : error LNK2001: unresolved external symbol
svn_client__do_symmetric_merge
libsvn_client.def : error LNK2001: unresolved external symbol
svn_client__find_symmetric_merge
..\..\..\Release\subversion\libsvn_client\libsvn_client-1.lib : fatal
error LNK1120: 2 unresolved externals
Apparently, this is because these symbols are expected to be there,
but during the build they aren't because they're conditional on
SVN_WITH_SYMMETRIC_MERGE (which is defined in svn_client_private.h in
an #ifdef SVN_DEBUG block, so this is only defined with a debug build,
not with a release build).
(This reminds me of a similar problem I had a couple of months ago
with some debug helpers which were also only defined conditional on
SVN_DEBUG. I fixed it by moving the #ifdef SVN_DEBUG markers a bit
deeper so the functions were always declared / defined).
Anyway, I'm just noting it here, before I go disconnected for a couple
of days. I don't know how to fix it right now (except by always
enabling SVN_WITH_SYMMETRIC_MERGE, regardless of debug). And maybe
this is just a temporary situation anyway, so no biggie. But if anyone
can address this, all the better :-).
--
Johan
Re: build probs on Windows with release build and conditionally
defined symbols (SVN_WITH_SYMMETRIC_MERGE)
Posted by Daniel Shahaf <da...@elego.de>.
Johan Corveleyn wrote on Tue, Apr 10, 2012 at 03:19:24 +0200:
> (This reminds me of a similar problem I had a couple of months ago
> with some debug helpers which were also only defined conditional on
> SVN_DEBUG. I fixed it by moving the #ifdef SVN_DEBUG markers a bit
> deeper so the functions were always declared / defined).
>
> Anyway, I'm just noting it here, before I go disconnected for a couple
> of days. I don't know how to fix it right now (except by always
> enabling SVN_WITH_SYMMETRIC_MERGE, regardless of debug).
One fix as you say is to make the two symbols[1] always
declared/defined. The other is to add them to the list of exceptions in
build/generator/extractor.py for release builds.
[1] svn_client__do_symmetric_merge and svn_client__find_symmetric_merge