public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug build/25854] New: conflicting types for 'socklen_t'
@ 2020-04-19 5:33 bokul_4u at yahoo dot com
2020-04-19 5:36 ` [Bug build/25854] " bokul_4u at yahoo dot com
` (7 more replies)
0 siblings, 8 replies; 9+ messages in thread
From: bokul_4u at yahoo dot com @ 2020-04-19 5:33 UTC (permalink / raw)
To: gdb-prs
https://sourceware.org/bugzilla/show_bug.cgi?id=25854
Bug ID: 25854
Summary: conflicting types for 'socklen_t'
Product: gdb
Version: 9.1
Status: UNCONFIRMED
Severity: critical
Priority: P2
Component: build
Assignee: unassigned at sourceware dot org
Reporter: bokul_4u at yahoo dot com
Target Milestone: ---
Created attachment 12483
--> https://sourceware.org/bugzilla/attachment.cgi?id=12483&action=edit
GDB build log
Howdy...
Encounter error while compiling GDB with configure:
../../src/gdb-9.1/configure --target=x86_64-w64-mingw32 \
--disable-nls CXXFLAGS='-fstack-protector-strong' \
--prefix=/c/toolchain/mingw32_x86_64_cross/mingw64
Error Summary (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;
| ^~~~~~~~~
Best Regards
Rahul Das
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug build/25854] conflicting types for 'socklen_t'
2020-04-19 5:33 [Bug build/25854] New: conflicting types for 'socklen_t' bokul_4u at yahoo dot com
@ 2020-04-19 5:36 ` bokul_4u at yahoo dot com
2020-04-19 5:50 ` bokul_4u at yahoo dot com
` (6 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: bokul_4u at yahoo dot com @ 2020-04-19 5:36 UTC (permalink / raw)
To: gdb-prs
https://sourceware.org/bugzilla/show_bug.cgi?id=25854
bokul_4u at yahoo dot com changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |bokul_4u at yahoo dot com
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug build/25854] conflicting types for 'socklen_t'
2020-04-19 5:33 [Bug build/25854] New: conflicting types for 'socklen_t' bokul_4u at yahoo dot com
2020-04-19 5:36 ` [Bug build/25854] " bokul_4u at yahoo dot com
@ 2020-04-19 5:50 ` bokul_4u at yahoo dot com
2020-04-19 11:58 ` ssbssa at sourceware dot org
` (5 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: bokul_4u at yahoo dot com @ 2020-04-19 5:50 UTC (permalink / raw)
To: gdb-prs
https://sourceware.org/bugzilla/show_bug.cgi?id=25854
bokul_4u at yahoo dot com changed:
What |Removed |Added
----------------------------------------------------------------------------
Target| |x86_64-w64-mingw32
Build| |i686-pc-mingw32
Host| |i686-pc-mingw32
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug build/25854] conflicting types for 'socklen_t'
2020-04-19 5:33 [Bug build/25854] New: conflicting types for 'socklen_t' bokul_4u at yahoo dot com
2020-04-19 5:36 ` [Bug build/25854] " bokul_4u at yahoo dot com
2020-04-19 5:50 ` bokul_4u at yahoo dot com
@ 2020-04-19 11:58 ` ssbssa at sourceware dot org
2020-04-19 19:08 ` bokul_4u at yahoo dot com
` (4 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: ssbssa at sourceware dot org @ 2020-04-19 11:58 UTC (permalink / raw)
To: gdb-prs
https://sourceware.org/bugzilla/show_bug.cgi?id=25854
Hannes Domani <ssbssa at sourceware dot org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |ssbssa at sourceware dot org
--- Comment #1 from Hannes Domani <ssbssa at sourceware dot org> ---
(In reply to bokul_4u from comment #0)
> ../../src/gdb-9.1/configure --target=x86_64-w64-mingw32 \
> --disable-nls CXXFLAGS='-fstack-protector-strong' \
> --prefix=/c/toolchain/mingw32_x86_64_cross/mingw64
I think you need --host=x86_64-w64-mingw32 here instead if you want a 64bit
gdb.
> 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;
> | ^~~~~~~~~
This ws2tcpip.h is wrong, it should not have unsigned for socklen_t.
Where did you get this from?
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug build/25854] conflicting types for 'socklen_t'
2020-04-19 5:33 [Bug build/25854] New: conflicting types for 'socklen_t' bokul_4u at yahoo dot com
` (2 preceding siblings ...)
2020-04-19 11:58 ` ssbssa at sourceware dot org
@ 2020-04-19 19:08 ` bokul_4u at yahoo dot com
2020-04-19 19:18 ` ssbssa at sourceware dot org
` (3 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: bokul_4u at yahoo dot com @ 2020-04-19 19:08 UTC (permalink / raw)
To: gdb-prs
https://sourceware.org/bugzilla/show_bug.cgi?id=25854
--- Comment #2 from bokul_4u at yahoo dot com ---
(In reply to Hannes Domani from comment #1)
> (In reply to bokul_4u from comment #0)
> > ../../src/gdb-9.1/configure --target=x86_64-w64-mingw32 \
> > --disable-nls CXXFLAGS='-fstack-protector-strong' \
> > --prefix=/c/toolchain/mingw32_x86_64_cross/mingw64
>
> I think you need --host=x86_64-w64-mingw32 here instead if you want a 64bit
> gdb.
I am using 32 bit OS (targeting to debug code for 64 bit OS)
>
>
> > 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;
> > | ^~~~~~~~~
>
> This ws2tcpip.h is wrong, it should not have unsigned for socklen_t.
> Where did you get this from?
It’s installed as a part of MinGW (www.mingw.org)
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug build/25854] conflicting types for 'socklen_t'
2020-04-19 5:33 [Bug build/25854] New: conflicting types for 'socklen_t' bokul_4u at yahoo dot com
` (3 preceding siblings ...)
2020-04-19 19:08 ` bokul_4u at yahoo dot com
@ 2020-04-19 19:18 ` ssbssa at sourceware dot org
2020-04-19 19:26 ` bokul_4u at yahoo dot com
` (2 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: ssbssa at sourceware dot org @ 2020-04-19 19:18 UTC (permalink / raw)
To: gdb-prs
https://sourceware.org/bugzilla/show_bug.cgi?id=25854
--- Comment #3 from Hannes Domani <ssbssa at sourceware dot org> ---
> > > 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;
> > > | ^~~~~~~~~
> >
> > This ws2tcpip.h is wrong, it should not have unsigned for socklen_t.
> > Where did you get this from?
>
> It’s installed as a part of MinGW (www.mingw.org)
I just checked, in ws2tcpip.h of mingw.org it's also not unsigned:
typedef int socklen_t;
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug build/25854] conflicting types for 'socklen_t'
2020-04-19 5:33 [Bug build/25854] New: conflicting types for 'socklen_t' bokul_4u at yahoo dot com
` (4 preceding siblings ...)
2020-04-19 19:18 ` ssbssa at sourceware dot org
@ 2020-04-19 19:26 ` bokul_4u at yahoo dot com
2020-04-19 19:38 ` ssbssa at sourceware dot org
2020-04-19 19:48 ` bokul_4u at yahoo dot com
7 siblings, 0 replies; 9+ messages in thread
From: bokul_4u at yahoo dot com @ 2020-04-19 19:26 UTC (permalink / raw)
To: gdb-prs
https://sourceware.org/bugzilla/show_bug.cgi?id=25854
--- Comment #4 from Rahul Das <bokul_4u at yahoo dot com> ---
(In reply to Hannes Domani from comment #3)
> > > > 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;
> > > > | ^~~~~~~~~
> > >
> > > This ws2tcpip.h is wrong, it should not have unsigned for socklen_t.
> > > Where did you get this from?
> >
> > It’s installed as a part of MinGW (www.mingw.org)
>
> I just checked, in ws2tcpip.h of mingw.org it's also not unsigned:
> typedef int socklen_t;
I had installed MinGW / MSYS using the automated GUI Installer. Tomorrow
morning i’ll do a fresh installation.
BTW did u checked MinGW or MinGW-w64 ?
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug build/25854] conflicting types for 'socklen_t'
2020-04-19 5:33 [Bug build/25854] New: conflicting types for 'socklen_t' bokul_4u at yahoo dot com
` (5 preceding siblings ...)
2020-04-19 19:26 ` bokul_4u at yahoo dot com
@ 2020-04-19 19:38 ` ssbssa at sourceware dot org
2020-04-19 19:48 ` bokul_4u at yahoo dot com
7 siblings, 0 replies; 9+ messages in thread
From: ssbssa at sourceware dot org @ 2020-04-19 19:38 UTC (permalink / raw)
To: gdb-prs
https://sourceware.org/bugzilla/show_bug.cgi?id=25854
--- Comment #5 from Hannes Domani <ssbssa at sourceware dot org> ---
(In reply to Rahul Das from comment #4)
> I had installed MinGW / MSYS using the automated GUI Installer. Tomorrow
> morning i’ll do a fresh installation.
>
> BTW did u checked MinGW or MinGW-w64 ?
Both.
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug build/25854] conflicting types for 'socklen_t'
2020-04-19 5:33 [Bug build/25854] New: conflicting types for 'socklen_t' bokul_4u at yahoo dot com
` (6 preceding siblings ...)
2020-04-19 19:38 ` ssbssa at sourceware dot org
@ 2020-04-19 19:48 ` bokul_4u at yahoo dot com
7 siblings, 0 replies; 9+ messages in thread
From: bokul_4u at yahoo dot com @ 2020-04-19 19:48 UTC (permalink / raw)
To: gdb-prs
https://sourceware.org/bugzilla/show_bug.cgi?id=25854
--- Comment #6 from Rahul Das <bokul_4u at yahoo dot com> ---
(In reply to Hannes Domani from comment #5)
> (In reply to Rahul Das from comment #4)
> > I had installed MinGW / MSYS using the automated GUI Installer. Tomorrow
> > morning i’ll do a fresh installation.
> >
> > BTW did u checked MinGW or MinGW-w64 ?
>
> Both.
Just learned that this issue has already been reported here
https://savannah.gnu.org/bugs/?57725
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2020-04-19 19:48 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-04-19 5:33 [Bug build/25854] New: conflicting types for 'socklen_t' bokul_4u at yahoo dot com
2020-04-19 5:36 ` [Bug build/25854] " bokul_4u at yahoo dot com
2020-04-19 5:50 ` bokul_4u at yahoo dot com
2020-04-19 11:58 ` ssbssa at sourceware dot org
2020-04-19 19:08 ` bokul_4u at yahoo dot com
2020-04-19 19:18 ` ssbssa at sourceware dot org
2020-04-19 19:26 ` bokul_4u at yahoo dot com
2020-04-19 19:38 ` ssbssa at sourceware dot org
2020-04-19 19:48 ` bokul_4u at yahoo dot com
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).