public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug build/13011] New: GDB accesses internals of glibc's dynamic loader, failing to build with alternate libc
@ 2011-07-21 16:19 wkor97gy0eef1fr at p dot mintemail.com
  2011-07-31 18:59 ` [Bug build/13011] GDB fails to build against Linux libc's (e.g. musl) without dladdr and libthread_db ppluzhnikov at google dot com
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: wkor97gy0eef1fr at p dot mintemail.com @ 2011-07-21 16:19 UTC (permalink / raw)
  To: gdb-prs

http://sourceware.org/bugzilla/show_bug.cgi?id=13011

           Summary: GDB accesses internals of glibc's dynamic loader,
                    failing to build with alternate libc
           Product: gdb
           Version: 7.2
            Status: NEW
          Severity: normal
          Priority: P2
         Component: build
        AssignedTo: unassigned@sourceware.org
        ReportedBy: wkor97gy0eef1fr@p.mintemail.com


it wrongly assumes that any system out there has the same internals as glibc.
if it uses those internals at all, it should at least check if they are
available and if not choose an alternate implementation that doesn't rely on
those internals (even it if its just a "sorry, this function is not available"
implementation).

tested against musl libc 0.7.2

linux-thread-db.Tpo linux-thread-db.c
linux-thread-db.c: In function `dladdr_to_soname':
linux-thread-db.c:618: error: `Dl_info' undeclared (first use in this function)
linux-thread-db.c:618: error: (Each undeclared identifier is reported only once
linux-thread-db.c:618: error: for each function it appears in.)
linux-thread-db.c:618: error: syntax error before "info"
linux-thread-db.c:620: warning: implicit declaration of function `dladdr'
linux-thread-db.c:620: error: `info' undeclared (first use in this function)
linux-thread-db.c: In function `try_thread_db_load_1':
linux-thread-db.c:717: error: `LIBTHREAD_DB_SO' undeclared (first use in this
function)
linux-thread-db.c: In function `thread_db_load_search':
linux-thread-db.c:803: error: `LIBTHREAD_DB_SO' undeclared (first use in this
function)
linux-thread-db.c: In function `thread_db_load':
linux-thread-db.c:890: error: `LIBTHREAD_DB_SO' undeclared (first use in this
function)
linux-thread-db.c: In function `thread_db_pid_to_str':
linux-thread-db.c:1488: warning: long unsigned int format, thread_t arg (arg 4)
linux-thread-db.c: In function `thread_db_find_thread_from_tid':
linux-thread-db.c:1597: warning: comparison between pointer and integer
linux-thread-db.c: In function `_initialize_thread_db':
linux-thread-db.c:1676: error: `LIBTHREAD_DB_SEARCH_PATH' undeclared (first use
in this function)

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- 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:[~2015-09-26  5:13 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-07-21 16:19 [Bug build/13011] New: GDB accesses internals of glibc's dynamic loader, failing to build with alternate libc wkor97gy0eef1fr at p dot mintemail.com
2011-07-31 18:59 ` [Bug build/13011] GDB fails to build against Linux libc's (e.g. musl) without dladdr and libthread_db ppluzhnikov at google dot com
2011-07-31 19:00 ` ppluzhnikov at google dot com
2012-10-21 14:37 ` bugdal at aerifal dot cx
2015-09-26  5:13 ` xdje42 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).