bug-gnubg
[Top][All Lists]
Advanced

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

Re: [Bug-gnubg] Win gcc3 / gcc43 / gcc44


From: Massimiliano Maini
Subject: Re: [Bug-gnubg] Win gcc3 / gcc43 / gcc44
Date: Wed, 24 Jun 2009 16:41:48 +0200


I didn't find any socket.h on my pc except these:

D:\Documents\Max\gnubg-build\Tools\mingwgcc44\Lib\Gcc\Mingw32\4.4.0\Include\c++\Java\Net\
Socket.h        3.207 bytes        Wed, 17.06.09 at 11:44
D:\Program Files\Perl\Lib\Core\Sys\
Socket.h        6.212 bytes        Thu, 13.12.07 at 13:40

I guess we can rule out the Perl one, not sure if the c++\Java one is relevant.
Anyway, none of the two contains a definition of socklen_t.

But I have found this:

Pyconfig.h  -  19.298 bytes  -  Thu, 06.04.06 at 17:46  -  D:\Python25\Include\
13.046        /* VC.NET typedefs socklen_t in ws2tcpip.h. */
13.090        #define socklen_t int

Guess this is responsible of the mess. No idea how to fix ...

MaX.


Christian Anthon <address@hidden> wrote on 24/06/2009 15:45:20:

> normally socklen_t is defined in sys/socket.h and commenting the
> offending line should be quite safe.
>
> Christian.
>
> On Wed, Jun 24, 2009 at 3:17 PM, Massimiliano
> Maini<address@hidden> wrote:
> >
> >
> >
> >
> > I've searched for socklen_t in all gnubg sources + mingw dir + gtk dir (all
> > .c and .h files) and I've found only the typedef in ws2tcpip.h
> >
> > Also, problem is not there with gcc3.5 (that uses the same ws2tcpip.h file).
> >
> > I'm lost :)
> >
> > MaX.
> >
> > Christian Anthon <address@hidden> wrote on 24/06/2009 12:27:29:
> >
> >> It is possible that we define socklen_t in the windows config.h. Can't
> >> check myself right now. Anyway it looks like it is being typedef'ed
> >> twice.
> >>
> >> Christian.
> >>
> >> On Wed, Jun 24, 2009 at 11:31 AM, Massimiliano
> >> Maini<address@hidden> wrote:
> >> >
> >> > Hi all,
> >> >
> >> > I've just realized that due to an env varibale mess, I wasn't really
> >> > compiling with gcc43.
> >> >
> >> > Now that it's fixed, I do compile with it, but I get the following error
> >> > (compile time):
> >> >
> >> > In file included from gnubg.c:89:
> >> > d:\documents\max\gnubg-build\tools\mingwgcc43\bin\..
> >> /lib/gcc/mingw32/4.3.0/../../../../include/ws2tcpip.h:272:
> >> > error: two or more data types in declaration specifiers
> >> > mingw32-make: *** [obj/gnubg.o] Error 1
> >> >
> >> >
> >> > In ws2tcpip.h, line 272 is:
> >> >
> >> >         typedef int socklen_t;
> >> >
> >> >
> >> > Also, I've noticed gcc44 is out
> >> > (http://sourceforge.net/project/shownotes.php?release_id=691876)
> >> > but I'm not sure if I can safely install it: it requires
> >> > libiconv-1.13-mingw32-dll-2.tar.gz while in GTK
> >> > I have libiconv-1.9.1.bin.woe32.zip: will the two conflict ?
> >> >
> >> > MaX.
> >> > _______________________________________________
> >> > Bug-gnubg mailing list
> >> > address@hidden
> >> > http://lists.gnu.org/mailman/listinfo/bug-gnubg
> >> >
> >> >
> >

reply via email to

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