public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug build/26068] New: MinGW build failed due to ws2_32 dependency
@ 2020-06-02 16:54 mitza at objectcomputing dot com
  2020-06-02 17:20 ` [Bug build/26068] " mitza at objectcomputing dot com
                   ` (12 more replies)
  0 siblings, 13 replies; 14+ messages in thread
From: mitza at objectcomputing dot com @ 2020-06-02 16:54 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=26068

            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_64-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_ntop.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 = $(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 = $(NAT_CDEPS) $(SIM) $(BFD) $(READLINE_DEPS) $(LIBCTF) \
        $(OPCODES) $(INTL_DEPS) $(LIBIBERTY) $(CONFIG_DEPS) $(LIBGNU)

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2022-12-02 18:37 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-06-02 16:54 [Bug build/26068] New: MinGW build failed due to ws2_32 dependency mitza at objectcomputing dot com
2020-06-02 17:20 ` [Bug build/26068] " mitza at objectcomputing dot com
2020-06-02 22:41 ` simark at simark dot ca
2020-06-03 15:42 ` mitza at objectcomputing dot com
2020-06-03 19:20 ` simark at simark dot ca
2020-06-03 19:24 ` cbiesinger at google dot com
2020-06-04 20:45 ` ssbssa at sourceware dot org
2020-06-04 20:46 ` cbiesinger at google dot com
2020-06-04 22:36 ` mitza at objectcomputing dot com
2020-06-04 22:45 ` ssbssa at sourceware dot org
2021-06-11 21:00 ` alfedotov at gmail dot com
2022-12-02 18:32 ` tromey at sourceware dot org
2022-12-02 18:33 ` tromey at sourceware dot org
2022-12-02 18:37 ` mitza at objectcomputing 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).