This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug build/13011] New: GDB accesses internals of glibc's dynamicloader, failing to build with alternate libc
- From: "wkor97gy0eef1fr at p dot mintemail.com"<sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: Thu, 21 Jul 2011 16:19:10 +0000
- Subject: [Bug build/13011] New: GDB accesses internals of glibc's dynamicloader, failing to build with alternate libc
- Auto-submitted: auto-generated
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.