public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug build/30882] New: MinGW: undefined reference to `getline' in m32c/opc2c.c
@ 2023-09-24 11:27 orgads at gmail dot com
  2023-09-24 11:33 ` [Bug build/30882] " orgads at gmail dot com
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: orgads at gmail dot com @ 2023-09-24 11:27 UTC (permalink / raw)
  To: gdb-prs

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

            Bug ID: 30882
           Summary: MinGW: undefined reference to `getline' in
                    m32c/opc2c.c
           Product: gdb
           Version: 13.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: build
          Assignee: unassigned at sourceware dot org
          Reporter: orgads at gmail dot com
  Target Milestone: ---

When building with gdb on MinGW64 with simulators enabled, I get the following
warning:

../../gdb-13.2/sim/m32c/opc2c.c: In function 'main':
../../gdb-13.2/sim/m32c/opc2c.c:541:10: warning: implicit declaration of
function 'getline' [-Wimplicit-function-declaration]
  541 |   while (getline (&linebuf, &len, in) >= 0)
      |          ^~~~~~~

And it fails to link:

ld.exe: m32c/opc2c.o:opc2c.c:(.text.startup+0x123): undefined reference to
`getline'
collect2.exe: error: ld returned 1 exit status
make[1]: *** [Makefile:3343: m32c/opc2c.exe] Error 1

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

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

end of thread, other threads:[~2024-03-03 11:25 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-09-24 11:27 [Bug build/30882] New: MinGW: undefined reference to `getline' in m32c/opc2c.c orgads at gmail dot com
2023-09-24 11:33 ` [Bug build/30882] " orgads at gmail dot com
2023-10-15  3:18 ` [Bug sim/30882] sim: m32c/opc2c.c: MinGW: undefined reference to `getline' vapier at gentoo dot org
2023-10-15 17:19 ` vapier at gentoo dot org
2024-03-03 11:25 ` orgads at gmail 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).