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

Re: Trunk build: redefinition errors on CrashHandler SendRpt

From: Stefan Hett <stefan_at_egosoft.com>
Date: Mon, 4 Sep 2017 18:05:16 +0200

On 9/4/2017 1:54 PM, Julian Foad wrote:
> Hello. I'm trying to compile TSVN for the first time ever, being
> unfamiliar with compiling on Windows (last did it about 15 years ago),
> and running into some trivial problem to which I don't know the
> answer.
>
> Compiling fails for me on the CrashHandler, with many errors all of
> the following form:
>
> [exec] C:\Program Files (x86)\Windows
> Kits\8.1\Include\shared\ws2def.h(221): error C2011: 'sockaddr':
> 'struct' type redefinition
> [C:\jenkins\workspace\TSVN_trunk\TortoiseSVN\ext\crashserver\CrashHandler\SendRpt\SendRpt.vcxproj]
> [exec] C:\Program Files (x86)\Windows
> Kits\8.1\Include\um\winsock.h(1002): note: see declaration of
> 'sockaddr'
>
> (This machine has both VS2015 and VS2017 installed, as I was also
> trying to build TSVN 1.9.)
>
> Any ideas what's wrong, or what information I can provide to help
> debug this, please?
>
> And is there an instant messaging channel we can use for quicker
> communication on this?
>
> Thanks,
> - Julian
>
> ------------------------------------------------------
> http://tortoisesvn.tigris.org/ds/viewMessage.do?dsForumId=757&dsMessageId=3297661
>
> To unsubscribe from this discussion, e-mail: [dev-unsubscribe_at_tortoisesvn.tigris.org].
>
Just tried it with a fresh VS2017 installation. Same issue here. My
workaround for the problem is to simply add the following include to
\ext\CrashServer\CrashHandler\SendRpt\stdafx.h:

#include <WinSock2.h>

(right above the asser.h-include).

I didn't dig into the details what's exactly wrong there, but this does
the trick to me.

-- 
Regards,
Stefan Hett
------------------------------------------------------
http://tortoisesvn.tigris.org/ds/viewMessage.do?dsForumId=757&dsMessageId=3297816
To unsubscribe from this discussion, e-mail: [dev-unsubscribe_at_tortoisesvn.tigris.org].
Received on 2017-09-04 18:05:26 CEST

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