[SERVER-14804] Master fails to build with Visual Studio 2013 Created: 06/Aug/14  Updated: 11/Jul/16  Resolved: 06/Aug/14

Status: Closed
Project: Core Server
Component/s: Build
Affects Version/s: None
Fix Version/s: 2.7.5

Type: Bug Priority: Major - P3
Reporter: Jonathan Reams Assignee: Jonathan Reams
Resolution: Done Votes: 0
Labels: community-team, pull-request
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
is depended on by SERVER-8994 Upgrade boost to 1.5x Closed
Operating System: ALL
Participants:

 Description   

Compiling master fails on Windows with visual studio 2013 while compiling curop_test.exe

C:\data\mongo\src\mongo/util/net/sock.h(136) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
C:\data\mongo\src\mongo/util/net/sock.h(136) : error C2143: syntax error : missing ';' before '*'
C:\data\mongo\src\mongo/util/net/sock.h(136) : warning C4183: 'raw': missing return type; assumed to be a member function returning 'int'
C:\data\mongo\src\mongo/util/net/sock.h(137) : error C2143: syntax error : missing ';' before '*'
C:\data\mongo\src\mongo/util/net/sock.h(137) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
C:\data\mongo\src\mongo/util/net/sock.h(137) : warning C4183: 'raw': missing return type; assumed to be a member function returning 'int'
C:\data\mongo\src\mongo/util/net/sock.h(141) : error C2079: 'mongo::SockAddr::sa' uses undefined struct 'mongo::sockaddr_storage'
C:\data\mongo\src\mongo/util/net/sock.h(106) : error C2758: 'mongo::SockAddr::sockaddr' : a member of reference type must be initialized
        C:\data\mongo\src\mongo/util/net/sock.h(136) : see declaration of 'mongo::SockAddr::sockaddr'
C:\data\mongo\src\mongo/util/net/sock.h(109) : error C2228: left of '.ss_family' must have class/struct/union
        type is 'int'
C:\data\mongo\src\mongo/util/net/sock.h(109) : error C2065: 'AF_UNSPEC' : undeclared identifier
   Creating library build\win32\64\release\mongo\util\version_test.lib and object build\win32\64\release\mongo\util\version_test.exp
C:\data\mongo\src\mongo/util/net/sock.h(136) : error C2059: syntax error : ')'
C:\data\mongo\src\mongo/util/net/sock.h(137) : error C2059: syntax error : ')'



 Comments   
Comment by Eric Milkie [ 06/Aug/14 ]

Thanks!

Comment by Githook User [ 06/Aug/14 ]

Author:

{u'username': u'jbreams', u'name': u'Jonathan Reams', u'email': u'jbreams@mongodb.com'}

Message: SERVER-14804 Adding header to curop_test.cpp to fix compiling on VS2013

Closes #732

Signed-off-by: Benety Goh <benety@mongodb.com>
Branch: master
https://github.com/mongodb/mongo/commit/c55d103b02fabe2e7b00d950bef5f8c4b8012fab

Generated at Thu Feb 08 03:36:02 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.