bug-gnulib
[Top][All Lists]
Advanced

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

conflicting types for 'socklen_t' | MinGW


From: Rahul Das
Subject: conflicting types for 'socklen_t' | MinGW
Date: Sun, 19 Apr 2020 04:47:31 +0000 (UTC)

Howdy...

I was compiling gdb-9.1 with configuration:

../../src/gdb-9.1/configure --target=x86_64-w64-mingw32 --disable-nls 
CXXFLAGS='-fstack-protector-strong' \
--prefix=/c/toolchain/mingw32_x86_64_cross/mingw64

Encountered below error (build log attached):

In file included from ../../../../src/gdb-9.1/gnulib/import/sys_socket.c:3:
./sys/socket.h:533:13: error: conflicting types for 'socklen_t'
  533 | typedef int socklen_t;
      |            ^~~~~~~~~
In file included from ./sys/socket.h:513,
                from ../../../../src/gdb-9.1/gnulib/import/sys_socket.c:3:
c:\mingw\include\ws2tcpip.h:399:22: note: previous declaration of 'socklen_t' 
was here
  399 | typedef unsigned int socklen_t;
      |                      ^~~~~~~~~
make[5]: *** [sys_socket.o] Error 1

Could you please suggest some way out.

Best Regards
Rahul Das

Attachment: gdb_check.txt
Description: Text document


reply via email to

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