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

Re: 1.8.0rc3 Build Failure on Windows

From: Tobias Bading <tbading_at_web.de>
Date: Fri, 07 Jun 2013 13:25:06 +0200

On 07.06.2013 11:36, Ben Brown wrote:
> Hi,
>
> I'm trying to build 1.8.0 rc3 on Windows with Visual Studio 2008, but
> I'm getting the following error:
>
> svn_ra-1.lib(ra_loader.obj) : error LNK2005: _svn_ra_serf_init already
> defined
> in libsvn_ra_serf-1.lib(serf.obj)
> ..\..\..\Release\subversion\libsvn_ra\libsvn_ra-1.dll : fatal error
> LNK1169: on
> e or more multiply defined symbols found
>

On GNU/Linux, subversion/libsvn_ra_serf/.libs/serf.o contains
svn_ra_serf_init just like your serf.obj does,
but your ra_loader.obj contains another definition of that symbol, my
subversion/libsvn_ra/ra_loader.o does not.

subversion/libsvn_ra/ra_loader.c contains

#ifndef SVN_LIBSVN_CLIENT_LINKS_RA_SERF
svn_error_t *
svn_ra_serf_init(int abi_version,
                  apr_pool_t *pool,
                  apr_hash_t *hash)
{
   return svn_error_create(SVN_ERR_RA_NOT_IMPLEMENTED, NULL, NULL);
}
#endif /* ! SVN_LIBSVN_CLIENT_LINKS_RA_SERF */

and I have

/* Defined if libsvn_client should link against libsvn_ra_serf */
#define SVN_LIBSVN_CLIENT_LINKS_RA_SERF 1

in subversion/svn_private_config.h. So I'd say you probably don't have
SVN_LIBSVN_CLIENT_LINKS_RA_SERF defined. This define is used only in
ra_loader.c, so you may try to define it in svn_private_config.h.

Hope that helps a little,
Tobias
Received on 2013-06-07 13:25:47 CEST

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