From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id BAF73389042B; Tue, 2 Jun 2020 16:54:43 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org BAF73389042B From: "mitza at objectcomputing dot com" To: gdb-prs@sourceware.org Subject: [Bug build/26068] New: MinGW build failed due to ws2_32 dependency Date: Tue, 02 Jun 2020 16:54:43 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: build X-Bugzilla-Version: 9.2 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: mitza at objectcomputing dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: gdb-prs@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-prs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 02 Jun 2020 16:54:43 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D26068 Bug ID: 26068 Summary: MinGW build failed due to ws2_32 dependency Product: gdb Version: 9.2 Status: UNCONFIRMED Severity: normal Priority: P2 Component: build Assignee: unassigned at sourceware dot org Reporter: mitza at objectcomputing dot com Target Milestone: --- Using x86_64-w64-mingw32 to compile gdb, link step for gdb.exe fails due to libraries being listed in the wrong order. C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/9.2.0/../../../../x86_6= 4-w64-mingw32/bin/ld.exe: ../gnulib/import/libgnu.a(inet_ntop.o): in function `rpl_inet_ntop': C:\3rdparty\binutils-gdb\build\gnulib\import/../../../gnulib/import/inet_nt= op.c:58: undefined reference to `__imp_inet_ntop' collect2.exe: error: ld returned 1 exit status Fixed by: --- a/gdb/Makefile.in +++ b/gdb/Makefile.in @@ -611,7 +611,7 @@ CLIBS =3D $(SIM) $(READLINE) $(OPCODES) $(BFD) $(LIBCTF) $(ZLIB) \ $(XM_CLIBS) $(GDBTKLIBS) \ @LIBS@ @GUILE_LIBS@ @PYTHON_LIBS@ \ $(LIBEXPAT) $(LIBLZMA) $(LIBBABELTRACE) $(LIBIPT) \ - $(LIBIBERTY) $(WIN32LIBS) $(LIBGNU) $(LIBICONV) $(LIBMPFR) \ + $(LIBIBERTY) $(LIBGNU) $(WIN32LIBS) $(LIBICONV) $(LIBMPFR) \ $(SRCHIGH_LIBS) $(LIBXXHASH) $(PTHREAD_LIBS) CDEPS =3D $(NAT_CDEPS) $(SIM) $(BFD) $(READLINE_DEPS) $(LIBCTF) \ $(OPCODES) $(INTL_DEPS) $(LIBIBERTY) $(CONFIG_DEPS) $(LIBGNU) --=20 You are receiving this mail because: You are on the CC list for the bug.=