StdAfx.cpp fails to compile with SDK Februar 2001

RESOLVED INVALID

Status

()

Core
Embedding: APIs
--
critical
RESOLVED INVALID
17 years ago
17 years ago

People

(Reporter: Markus Doehr, Assigned: Adam Lock)

Tracking

Trunk
x86
Windows 2000
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

17 years ago
I have installed VC6 SP5 + Platform SDK February 2001. Environment is set to 
RETAIL. However, I'm getting the following error while compiling:

+++ make: install in d:\mozillasrc\mozilla\embedding\browser\activex\src\control
StdAfx.cpp
C:\Program Files\Microsoft Platform SDK\Include\winsock2.h(102) : error 
C2011: 'fd_set' : 'struct' t
ype redefinition
C:\Program Files\Microsoft Platform SDK\Include\winsock2.h(137) : warning 
C4005: 'FD_SET' : macro re
definition
        C:\Program Files\Microsoft Platform SDK\Include\winsock.h(88) : see 
previous definition of '
FD_SET'
C:\Program Files\Microsoft Platform SDK\Include\winsock2.h(146) : error 
C2011: 'timeval' : 'struct'
type redefinition
C:\Program Files\Microsoft Platform SDK\Include\winsock2.h(202) : error 
C2011: 'hostent' : 'struct'
type redefinition
C:\Program Files\Microsoft Platform SDK\Include\winsock2.h(215) : error 
C2011: 'netent' : 'struct' t
ype redefinition
C:\Program Files\Microsoft Platform SDK\Include\winsock2.h(222) : error 
C2011: 'servent' : 'struct'
type redefinition
C:\Program Files\Microsoft Platform SDK\Include\winsock2.h(234) : error 
C2011: 'protoent' : 'struct'
 type redefinition
C:\Program Files\Microsoft Platform SDK\Include\winsock2.h(318) : error 
C2011: 'in_addr' : 'struct'
type redefinition
C:\Program Files\Microsoft Platform SDK\Include\winsock2.h(376) : error 
C2011: 'sockaddr_in' : 'stru
ct' type redefinition
C:\Program Files\Microsoft Platform SDK\Include\winsock2.h(386) : error 
C2011: 'WSAData' : 'struct'
type redefinition
C:\Program Files\Microsoft Platform SDK\Include\winsock2.h(446) : warning 
C4005: 'SO_DONTLINGER' : m
acro redefinition
        C:\Program Files\Microsoft Platform SDK\Include\winsock.h(409) : see 
previous definition of
'SO_DONTLINGER'
C:\Program Files\Microsoft Platform SDK\Include\winsock2.h(503) : warning 
C4005: 'AF_IPX' : macro re
definition
        C:\Program Files\Microsoft Platform SDK\Include\winsock.h(467) : see 
previous definition of
'AF_IPX'
C:\Program Files\Microsoft Platform SDK\Include\winsock2.h(529) : warning 
C4005: 'AF_MAX' : macro re
definition
        C:\Program Files\Microsoft Platform SDK\Include\winsock.h(486) : see 
previous definition of
'AF_MAX'
C:\Program Files\Microsoft Platform SDK\Include\winsock2.h(535) : error 
C2011: 'sockaddr' : 'struct'
 type redefinition
C:\Program Files\Microsoft Platform SDK\Include\winsock2.h(544) : error 
C2011: 'sockproto' : 'struct
' type redefinition
C:\Program Files\Microsoft Platform SDK\Include\winsock2.h(583) : error 
C2011: 'linger' : 'struct' t
ype redefinition
C:\Program Files\Microsoft Platform SDK\Include\winsock2.h(596) : warning 
C4005: 'SOMAXCONN' : macro
 redefinition
        C:\Program Files\Microsoft Platform SDK\Include\winsock.h(551) : see 
previous definition of
'SOMAXCONN'
C:\Program Files\Microsoft Platform SDK\Include\winsock2.h(621) : warning 
C4005: 'FD_READ' : macro r
edefinition
        C:\Program Files\Microsoft Platform SDK\Include\winsock.h(569) : see 
previous definition of
'FD_READ'
C:\Program Files\Microsoft Platform SDK\Include\winsock2.h(624) : warning 
C4005: 'FD_WRITE' : macro
redefinition
        C:\Program Files\Microsoft Platform SDK\Include\winsock.h(570) : see 
previous definition of
'FD_WRITE'
C:\Program Files\Microsoft Platform SDK\Include\winsock2.h(627) : warning 
C4005: 'FD_OOB' : macro re
definition
        C:\Program Files\Microsoft Platform SDK\Include\winsock.h(571) : see 
previous definition of
'FD_OOB'
C:\Program Files\Microsoft Platform SDK\Include\winsock2.h(630) : warning 
C4005: 'FD_ACCEPT' : macro
 redefinition
        C:\Program Files\Microsoft Platform SDK\Include\winsock.h(572) : see 
previous definition of
'FD_ACCEPT'
C:\Program Files\Microsoft Platform SDK\Include\winsock2.h(633) : warning 
C4005: 'FD_CONNECT' : macr
o redefinition
        C:\Program Files\Microsoft Platform SDK\Include\winsock.h(573) : see 
previous definition of
'FD_CONNECT'
C:\Program Files\Microsoft Platform SDK\Include\winsock2.h(636) : warning 
C4005: 'FD_CLOSE' : macro
redefinition
        C:\Program Files\Microsoft Platform SDK\Include\winsock.h(574) : see 
previous definition of
'FD_CLOSE'
C:\Program Files\Microsoft Platform SDK\Include\winsock2.h(1495) : error 
C2375: 'accept' : redefinit
ion; different linkage
        C:\Program Files\Microsoft Platform SDK\Include\winsock.h(742) : see 
declaration of 'accept'

C:\Program Files\Microsoft Platform SDK\Include\winsock2.h(1516) : error 
C2375: 'bind' : redefinitio
n; different linkage
        C:\Program Files\Microsoft Platform SDK\Include\winsock.h(747) : see 
declaration of 'bind'
C:\Program Files\Microsoft Platform SDK\Include\winsock2.h(1535) : error 
C2375: 'closesocket' : rede
finition; different linkage
        C:\Program Files\Microsoft Platform SDK\Include\winsock.h(752) : see 
declaration of 'closeso
cket'
C:\Program Files\Microsoft Platform SDK\Include\winsock2.h(1554) : error 
C2375: 'connect' : redefini
tion; different linkage
        C:\Program Files\Microsoft Platform SDK\Include\winsock.h(754) : see 
declaration of 'connect
'
C:\Program Files\Microsoft Platform SDK\Include\winsock2.h(1575) : error 
C2375: 'ioctlsocket' : rede
finition; different linkage
        C:\Program Files\Microsoft Platform SDK\Include\winsock.h(759) : see 
declaration of 'ioctlso
cket'
C:\Program Files\Microsoft Platform SDK\Include\winsock2.h(1596) : error 
C2375: 'getpeername' : rede
finition; different linkage
        C:\Program Files\Microsoft Platform SDK\Include\winsock.h(764) : see 
declaration of 'getpeer
name'
C:\Program Files\Microsoft Platform SDK\Include\winsock2.h(1617) : error 
C2375: 'getsockname' : rede
finition; different linkage
        C:\Program Files\Microsoft Platform SDK\Include\winsock.h(769) : see 
declaration of 'getsock
name'
C:\Program Files\Microsoft Platform SDK\Include\winsock2.h(1640) : error 
C2375: 'getsockopt' : redef
inition; different linkage
        C:\Program Files\Microsoft Platform SDK\Include\winsock.h(774) : see 
declaration of 'getsock
opt'
C:\Program Files\Microsoft Platform SDK\Include\winsock2.h(1661) : error 
C2375: 'htonl' : redefiniti
on; different linkage
        C:\Program Files\Microsoft Platform SDK\Include\winsock.h(781) : see 
declaration of 'htonl'
C:\Program Files\Microsoft Platform SDK\Include\winsock2.h(1678) : error 
C2375: 'htons' : redefiniti
on; different linkage
        C:\Program Files\Microsoft Platform SDK\Include\winsock.h(783) : see 
declaration of 'htons'
C:\Program Files\Microsoft Platform SDK\Include\winsock2.h(1695) : error 
C2375: 'inet_addr' : redefi
nition; different linkage
        C:\Program Files\Microsoft Platform SDK\Include\winsock.h(785) : see 
declaration of 'inet_ad
dr'
C:\Program Files\Microsoft Platform SDK\Include\winsock2.h(1712) : error 
C2375: 'inet_ntoa' : redefi
nition; different linkage
        C:\Program Files\Microsoft Platform SDK\Include\winsock.h(787) : see 
declaration of 'inet_nt
oa'
C:\Program Files\Microsoft Platform SDK\Include\winsock2.h(1730) : error 
C2375: 'listen' : redefinit
ion; different linkage
        C:\Program Files\Microsoft Platform SDK\Include\winsock.h(789) : see 
declaration of 'listen'

C:\Program Files\Microsoft Platform SDK\Include\winsock2.h(1748) : error 
C2375: 'ntohl' : redefiniti
on; different linkage
        C:\Program Files\Microsoft Platform SDK\Include\winsock.h(793) : see 
declaration of 'ntohl'
C:\Program Files\Microsoft Platform SDK\Include\winsock2.h(1765) : error 
C2375: 'ntohs' : redefiniti
on; different linkage
        C:\Program Files\Microsoft Platform SDK\Include\winsock.h(795) : see 
declaration of 'ntohs'
C:\Program Files\Microsoft Platform SDK\Include\winsock2.h(1785) : error 
C2375: 'recv' : redefinitio
n; different linkage
        C:\Program Files\Microsoft Platform SDK\Include\winsock.h(797) : see 
declaration of 'recv'
C:\Program Files\Microsoft Platform SDK\Include\winsock2.h(1810) : error 
C2375: 'recvfrom' : redefin
ition; different linkage
        C:\Program Files\Microsoft Platform SDK\Include\winsock.h(803) : see 
declaration of 'recvfro
m'
C:\Program Files\Microsoft Platform SDK\Include\winsock2.h(1836) : error 
C2375: 'select' : redefinit
ion; different linkage
        C:\Program Files\Microsoft Platform SDK\Include\winsock.h(811) : see 
declaration of 'select'

C:\Program Files\Microsoft Platform SDK\Include\winsock2.h(1860) : error 
C2375: 'send' : redefinitio
n; different linkage
        C:\Program Files\Microsoft Platform SDK\Include\winsock.h(818) : see 
declaration of 'send'
C:\Program Files\Microsoft Platform SDK\Include\winsock2.h(1885) : error 
C2375: 'sendto' : redefinit
ion; different linkage
        C:\Program Files\Microsoft Platform SDK\Include\winsock.h(824) : see 
declaration of 'sendto'

C:\Program Files\Microsoft Platform SDK\Include\winsock2.h(1911) : error 
C2375: 'setsockopt' : redef
inition; different linkage
        C:\Program Files\Microsoft Platform SDK\Include\winsock.h(832) : see 
declaration of 'setsock
opt'
C:\Program Files\Microsoft Platform SDK\Include\winsock2.h(1933) : error 
C2375: 'shutdown' : redefin
ition; different linkage
        C:\Program Files\Microsoft Platform SDK\Include\winsock.h(839) : see 
declaration of 'shutdow
n'
C:\Program Files\Microsoft Platform SDK\Include\winsock2.h(1953) : error 
C2375: 'socket' : redefinit
ion; different linkage
        C:\Program Files\Microsoft Platform SDK\Include\winsock.h(843) : see 
declaration of 'socket'

C:\Program Files\Microsoft Platform SDK\Include\winsock2.h(1976) : error 
C2375: 'gethostbyaddr' : re
definition; different linkage
        C:\Program Files\Microsoft Platform SDK\Include\winsock.h(850) : see 
declaration of 'gethost
byaddr'
C:\Program Files\Microsoft Platform SDK\Include\winsock2.h(1995) : error 
C2375: 'gethostbyname' : re
definition; different linkage
        C:\Program Files\Microsoft Platform SDK\Include\winsock.h(855) : see 
declaration of 'gethost
byname'
C:\Program Files\Microsoft Platform SDK\Include\winsock2.h(2013) : error 
C2375: 'gethostname' : rede
finition; different linkage
        C:\Program Files\Microsoft Platform SDK\Include\winsock.h(857) : see 
declaration of 'gethost
name'
C:\Program Files\Microsoft Platform SDK\Include\winsock2.h(2032) : error 
C2375: 'getservbyport' : re
definition; different linkage
        C:\Program Files\Microsoft Platform SDK\Include\winsock.h(861) : see 
declaration of 'getserv
byport'
C:\Program Files\Microsoft Platform SDK\Include\winsock2.h(2051) : error 
C2375: 'getservbyname' : re
definition; different linkage
        C:\Program Files\Microsoft Platform SDK\Include\winsock.h(865) : see 
declaration of 'getserv
byname'
C:\Program Files\Microsoft Platform SDK\Include\winsock2.h(2069) : error 
C2375: 'getprotobynumber' :
 redefinition; different linkage
        C:\Program Files\Microsoft Platform SDK\Include\winsock.h(869) : see 
declaration of 'getprot
obynumber'
C:\Program Files\Microsoft Platform SDK\Include\winsock2.h(2086) : error 
C2375: 'getprotobyname' : r
edefinition; different linkage
        C:\Program Files\Microsoft Platform SDK\Include\winsock.h(871) : see 
declaration of 'getprot
obyname'
C:\Program Files\Microsoft Platform SDK\Include\winsock2.h(2106) : error 
C2375: 'WSAStartup' : redef
inition; different linkage
        C:\Program Files\Microsoft Platform SDK\Include\winsock.h(875) : see 
declaration of 'WSAStar
tup'
C:\Program Files\Microsoft Platform SDK\Include\winsock2.h(2124) : error 
C2375: 'WSACleanup' : redef
inition; different linkage
        C:\Program Files\Microsoft Platform SDK\Include\winsock.h(879) : see 
declaration of 'WSAClea
nup'
C:\Program Files\Microsoft Platform SDK\Include\winsock2.h(2141) : error 
C2375: 'WSASetLastError' :
redefinition; different linkage
        C:\Program Files\Microsoft Platform SDK\Include\winsock.h(881) : see 
declaration of 'WSASetL
astError'
C:\Program Files\Microsoft Platform SDK\Include\winsock2.h(2158) : error 
C2375: 'WSAGetLastError' :
redefinition; different linkage
        C:\Program Files\Microsoft Platform SDK\Include\winsock.h(883) : see 
declaration of 'WSAGetL
astError'
C:\Program Files\Microsoft Platform SDK\Include\winsock2.h(2175) : error 
C2375: 'WSAIsBlocking' : re
definition; different linkage
        C:\Program Files\Microsoft Platform SDK\Include\winsock.h(885) : see 
declaration of 'WSAIsBl
ocking'
C:\Program Files\Microsoft Platform SDK\Include\winsock2.h(2192) : error 
C2375: 'WSAUnhookBlockingHo
ok' : redefinition; different linkage
        C:\Program Files\Microsoft Platform SDK\Include\winsock.h(887) : see 
declaration of 'WSAUnho
okBlockingHook'
C:\Program Files\Microsoft Platform SDK\Include\winsock2.h(2209) : error 
C2375: 'WSASetBlockingHook'
 : redefinition; different linkage
        C:\Program Files\Microsoft Platform SDK\Include\winsock.h(889) : see 
declaration of 'WSASetB
lockingHook'
C:\Program Files\Microsoft Platform SDK\Include\winsock2.h(2226) : error 
C2375: 'WSACancelBlockingCa
ll' : redefinition; different linkage
        C:\Program Files\Microsoft Platform SDK\Include\winsock.h(891) : see 
declaration of 'WSACanc
elBlockingCall'
C:\Program Files\Microsoft Platform SDK\Include\winsock2.h(2248) : error 
C2375: 'WSAAsyncGetServByNa
me' : redefinition; different linkage
        C:\Program Files\Microsoft Platform SDK\Include\winsock.h(893) : see 
declaration of 'WSAAsyn
cGetServByName'
C:\Program Files\Microsoft Platform SDK\Include\winsock2.h(2275) : error 
C2375: 'WSAAsyncGetServByPo
rt' : redefinition; different linkage
        C:\Program Files\Microsoft Platform SDK\Include\winsock.h(901) : see 
declaration of 'WSAAsyn
cGetServByPort'
C:\Program Files\Microsoft Platform SDK\Include\winsock2.h(2301) : error 
C2375: 'WSAAsyncGetProtoByN
ame' : redefinition; different linkage
        C:\Program Files\Microsoft Platform SDK\Include\winsock.h(909) : see 
declaration of 'WSAAsyn
cGetProtoByName'
C:\Program Files\Microsoft Platform SDK\Include\winsock2.h(2326) : error 
C2375: 'WSAAsyncGetProtoByN
umber' : redefinition; different linkage
        C:\Program Files\Microsoft Platform SDK\Include\winsock.h(916) : see 
declaration of 'WSAAsyn
cGetProtoByNumber'
C:\Program Files\Microsoft Platform SDK\Include\winsock2.h(2351) : error 
C2375: 'WSAAsyncGetHostByNa
me' : redefinition; different linkage
        C:\Program Files\Microsoft Platform SDK\Include\winsock.h(923) : see 
declaration of 'WSAAsyn
cGetHostByName'
C:\Program Files\Microsoft Platform SDK\Include\winsock2.h(2378) : error 
C2375: 'WSAAsyncGetHostByAd
dr' : redefinition; different linkage
        C:\Program Files\Microsoft Platform SDK\Include\winsock.h(930) : see 
declaration of 'WSAAsyn
cGetHostByAddr'
C:\Program Files\Microsoft Platform SDK\Include\winsock2.h(2401) : error 
C2375: 'WSACancelAsyncReque
st' : redefinition; different linkage
        C:\Program Files\Microsoft Platform SDK\Include\winsock.h(939) : see 
declaration of 'WSACanc
elAsyncRequest'
C:\Program Files\Microsoft Platform SDK\Include\winsock2.h(2421) : error 
C2375: 'WSAAsyncSelect' : r
edefinition; different linkage
        C:\Program Files\Microsoft Platform SDK\Include\winsock.h(941) : see 
declaration of 'WSAAsyn
cSelect'
NMAKE : fatal error U1077: 'cl' : return code '0x2'
Stop.
NMAKE : fatal error U1077: 'C:\PROGRA~1\MICROS~3\VC98\BIN\NMAKE.EXE' : return 
code '0x2'
Stop.
NMAKE : fatal error U1077: 'C:\PROGRA~1\MICROS~3\VC98\BIN\NMAKE.EXE' : return 
code '0x2'
Stop.
NMAKE : fatal error U1077: 'C:\PROGRA~1\MICROS~3\VC98\BIN\NMAKE.EXE' : return 
code '0x2'
Stop.
NMAKE : fatal error U1077: 'C:\PROGRA~1\MICROS~3\VC98\BIN\NMAKE.EXE' : return 
code '0x2'
Stop.
NMAKE : fatal error U1077: 'C:\PROGRA~1\MICROS~3\VC98\BIN\NMAKE.EXE' : return 
code '0x2'
Stop.
NMAKE : fatal error U1077: 'C:\PROGRA~1\MICROS~3\VC98\BIN\NMAKE.EXE' : return 
code '0x2'
Stop.
NMAKE : fatal error U1077: 'C:\PROGRA~1\MICROS~3\VC98\BIN\NMAKE.EXE' : return 
code '0x2'
Stop.

Is building with SDK not supported?
(Assignee)

Comment 1

17 years ago
No its not supported unless you want to submit a patch. Unfortunately every MS 
SDK seems to introduce subtle breakages that require fixing. 

The workaround is to remove the SDK from your LIB, INCLUDE and PATH settings 
before Mozilla.

Comment 2

17 years ago
Shall i mark this invalid then or WONTFIX?
Severity: blocker → critical

Comment 3

17 years ago
Marking as INVALID since this isn't a Moz Bug.
Status: UNCONFIRMED → RESOLVED
Last Resolved: 17 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.