logo       

Compilation of gdb 5.2 and 5.2.1 failed on linux libc5: msg#00281

Subject: Compilation of gdb 5.2 and 5.2.1 failed on linux libc5
Linux x86 libc5 2.0.39 gcc 2.95.3 the latter compiled from source with gcc
2.7.2.3 and that build just fine.

host systems: i586-pc-linux-gnulibc1

mkdir gdb-obj
cd gbd-obj
../gbd-5.2/configure --prefix=/opt
make -j2

In file included from ../../gdb-5.2/gdb/thread-db.c:26:
../../gdb-5.2/gdb/gdb_thread_db.h:211: parse error before `uintptr_t'
../../gdb-5.2/gdb/gdb_thread_db.h:211: warning: no semicolon at end of struct 
or union
../../gdb-5.2/gdb/gdb_thread_db.h:211: warning: no semicolon at end of struct 
or union
../../gdb-5.2/gdb/gdb_thread_db.h:212: warning: type defaults to `int' in 
declaration of `msg'
../../gdb-5.2/gdb/gdb_thread_db.h:212: warning: data definition has no type or 
storage class
../../gdb-5.2/gdb/gdb_thread_db.h:213: parse error before `}'
../../gdb-5.2/gdb/gdb_thread_db.h:213: warning: type defaults to `int' in 
declaration of `td_event_msg_t'
../../gdb-5.2/gdb/gdb_thread_db.h:213: warning: data definition has no type or 
storage class
../../gdb-5.2/gdb/gdb_thread_db.h:280: parse error before `intptr_t'
../../gdb-5.2/gdb/gdb_thread_db.h:280: warning: no semicolon at end of struct 
or union
../../gdb-5.2/gdb/gdb_thread_db.h:281: warning: type defaults to `int' in 
declaration of `ti_sp'
../../gdb-5.2/gdb/gdb_thread_db.h:281: warning: data definition has no type or 
storage class
../../gdb-5.2/gdb/gdb_thread_db.h:292: parse error before `}'
../../gdb-5.2/gdb/gdb_thread_db.h:292: warning: type defaults to `int' in 
declaration of `td_thrinfo_t'
../../gdb-5.2/gdb/gdb_thread_db.h:292: warning: data definition has no type or 
storage class
../../gdb-5.2/gdb/gdb_thread_db.h:356: parse error before `td_event_msg_t'
../../gdb-5.2/gdb/gdb_thread_db.h:379: parse error before `td_thrinfo_t'
../../gdb-5.2/gdb/gdb_thread_db.h:421: parse error before `td_event_msg_t'
../../gdb-5.2/gdb/thread-db.c:96: parse error before `td_event_msg_t'
../../gdb-5.2/gdb/thread-db.c:100: parse error before `td_thrinfo_t'
../../gdb-5.2/gdb/thread-db.c: In function `thread_from_lwp':
../../gdb-5.2/gdb/thread-db.c:231: `td_thrinfo_t' undeclared (first use in this 
function)
../../gdb-5.2/gdb/thread-db.c:231: (Each undeclared identifier is reported only 
once
../../gdb-5.2/gdb/thread-db.c:231: for each function it appears in.)
../../gdb-5.2/gdb/thread-db.c:231: parse error before `ti'
../../gdb-5.2/gdb/thread-db.c:245: `ti' undeclared (first use in this function)
../../gdb-5.2/gdb/thread-db.c: In function `lwp_from_thread':
../../gdb-5.2/gdb/thread-db.c:255: `td_thrinfo_t' undeclared (first use in this 
function)
../../gdb-5.2/gdb/thread-db.c:255: parse error before `ti'
../../gdb-5.2/gdb/thread-db.c:267: `ti' undeclared (first use in this function)
../../gdb-5.2/gdb/thread-db.c: At top level:
../../gdb-5.2/gdb/thread-db.c:562: warning: type defaults to `int' in 
declaration of `td_thrinfo_t'
../../gdb-5.2/gdb/thread-db.c:562: parse error before `*'
../../gdb-5.2/gdb/thread-db.c: In function `attach_thread':
../../gdb-5.2/gdb/thread-db.c:569: `verbose' undeclared (first use in this 
function)
../../gdb-5.2/gdb/thread-db.c:570: `ptid' undeclared (first use in this 
function)
../../gdb-5.2/gdb/thread-db.c:575: `ti_p' undeclared (first use in this 
function)
../../gdb-5.2/gdb/thread-db.c:586: `th_p' undeclared (first use in this 
function)
../../gdb-5.2/gdb/thread-db.c: In function `check_event':
../../gdb-5.2/gdb/thread-db.c:654: parse error before `msg'
../../gdb-5.2/gdb/thread-db.c:655: `td_thrinfo_t' undeclared (first use in this 
function)
../../gdb-5.2/gdb/thread-db.c:673: request for member `th_p' in something not a 
structure or union
../../gdb-5.2/gdb/thread-db.c:673: `ti' undeclared (first use in this function)
../../gdb-5.2/gdb/thread-db.c:679: request for member `event' in something not 
a structure or union
../../gdb-5.2/gdb/thread-db.c:695: request for member `th_p' in something not a 
structure or union
../../gdb-5.2/gdb/thread-db.c:694: warning: unreachable code at beginning of 
switch statement
../../gdb-5.2/gdb/thread-db.c: In function `thread_db_thread_alive':
../../gdb-5.2/gdb/thread-db.c:902: `td_thrinfo_t' undeclared (first use in this 
function)
../../gdb-5.2/gdb/thread-db.c:902: parse error before `ti'
../../gdb-5.2/gdb/thread-db.c:915: `ti' undeclared (first use in this function)
../../gdb-5.2/gdb/thread-db.c: In function `find_new_threads_callback':
../../gdb-5.2/gdb/thread-db.c:934: `td_thrinfo_t' undeclared (first use in this 
function)
../../gdb-5.2/gdb/thread-db.c:934: parse error before `ti'
../../gdb-5.2/gdb/thread-db.c:938: `ti' undeclared (first use in this function)
../../gdb-5.2/gdb/thread-db.c: In function `thread_db_pid_to_str':
../../gdb-5.2/gdb/thread-db.c:973: `td_thrinfo_t' undeclared (first use in this 
function)
../../gdb-5.2/gdb/thread-db.c:973: parse error before `ti'
../../gdb-5.2/gdb/thread-db.c:981: `ti' undeclared (first use in this function)
make[1]: *** [thread-db.o] Error 1
make: *** [all-gdb] Error 2

The same thing happens if I use 'make' instead. And I do have pthread and
gthread-2.0 installed in /usr/local tree and ldconfig is properly defined.

gcc 2.95.3 is installed in /opt/bin and libraries in /opt/lib and I did
define LD_LIBRARY_PATH=/opt/lib just for that purpose. This is in addition
to the usual definitons in ld.conf.cache, such as /usr/local/lib /usr/lib
/lib etc...

Any help is appreciated.

Oliver Schurr
Department of Chemistry
Georgetown University
Washington, DC 20057


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
science.linguis...    culture.sf.lite...    video.mplayer.c...    yellowdog.gener...    ietf.rfc822/199...    emacs.help/2002...    redhat.release....    kernel.speakup/...    java.openejb.de...    debian.devel.gt...    xfree86.newbie/...    bug-tracking.ma...    pam/2003-05/msg...    games.devel.ope...    user-groups.lin...    music.pancham/2...    network.mq.deve...    web.html.genera...    arklinux.bugs/2...    linux.ecasound/...    qnx.openqnx.dev...    org.user-groups...    file-systems.sf...    trustix.contrib...   
Home | blog view | USPTO Patent Archive | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe