bug-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Windows Build & Gnulib Problems - Feature Branch


From: Derek Price
Subject: Re: Windows Build & Gnulib Problems - Feature Branch
Date: Tue, 20 Sep 2005 09:16:49 -0400
User-agent: Mozilla Thunderbird 1.0.6 (Windows/20050716)

Conrad T. Pino wrote:

>Hi Derek,
>
>We have problems between Gnulib, MS VC6 and Windows:
>
>1. MS VC6 defines "mbsinit" function only for C++ code
>  
>

I'll get back to this.  I'm investigating and think I need to bring this
up with GNULIB.  If you want to add the following to lib/mbuiter.h for
now, it should allow you to compile for now:

#if !defined mbsinit && !HAVE_MBSINIT
# define mbsinit(ps) 1
#endif

>5. I can get down to the missing "mbinit" with the patch
>at the end of this message.
>  
>

Otherwise, your patch looks fine, except for these warnings:

>============================================================
>--------------------Configuration: libcvs - Win32 Debug--------------------
>Compiling...
>getaddrinfo.c
>h:\conrad\projects\cvs-1.12\lib\getaddrinfo.c(54) : error C2065: 'PF_UNSPEC' : 
>undeclared identifier
>h:\conrad\projects\cvs-1.12\lib\getaddrinfo.c(80) : error C2065: 'SOCK_STREAM' 
>: undeclared identifier
>h:\conrad\projects\cvs-1.12\lib\getaddrinfo.c(80) : error C2065: 'SOCK_DGRAM' 
>: undeclared identifier
>h:\conrad\projects\cvs-1.12\lib\getaddrinfo.c(94) : warning C4013: 
>'getservbyname' undefined; assuming extern returning int
>h:\conrad\projects\cvs-1.12\lib\getaddrinfo.c(94) : warning C4047: '=' : 
>'struct servent *' differs in levels of indirection from
>'int '
>h:\conrad\projects\cvs-1.12\lib\getaddrinfo.c(101) : warning C4013: 
>'gethostbyname' undefined; assuming extern returning int
>h:\conrad\projects\cvs-1.12\lib\getaddrinfo.c(101) : warning C4047: '=' : 
>'struct hostent *' differs in levels of indirection from
>'int '
>h:\conrad\projects\cvs-1.12\lib\getaddrinfo.c(102) : error C2037: left of 
>'h_addr_list' specifies undefined struct/union 'hostent'
>h:\conrad\projects\cvs-1.12\lib\getaddrinfo.c(105) : error C2037: left of 
>'h_addrtype' specifies undefined struct/union 'hostent'
>h:\conrad\projects\cvs-1.12\lib\getaddrinfo.c(127) : error C2037: left of 
>'h_addrtype' specifies undefined struct/union 'hostent'
>h:\conrad\projects\cvs-1.12\lib\getaddrinfo.c(175) : error C2037: left of 
>'h_name' specifies undefined struct/union 'hostent'
>h:\conrad\projects\cvs-1.12\lib\getaddrinfo.c(176) : error C2037: left of 
>'h_name' specifies undefined struct/union 'hostent'
>h:\conrad\projects\cvs-1.12\lib\getaddrinfo.c(190) : error C2037: left of 
>'sa_family' specifies undefined struct/union 'sockaddr'
>h:\conrad\projects\cvs-1.12\lib\getaddrinfo.c(190) : error C2037: left of 
>'h_addrtype' specifies undefined struct/union 'hostent'
>Error executing cl.exe.
>
>cvs.exe - 10 error(s), 4 warning(s)
>  
>

The fact that declarations for gethostbyname & getservbyname are not
found by the time they are encountered implies that either <winsock2.h>
is not being included or something is suppressing the processing of
these declarations in this header.  This should probably be fixed, even
if it does link anyhow.

Thanks,

Derek

-- 
Derek R. Price
CVS Solutions Architect
Ximbiot <http://ximbiot.com>
v: +1 717.579.6168
f: +1 717.234.3125
<mailto:address@hidden>






reply via email to

[Prev in Thread] Current Thread [Next in Thread]