This is the mail archive of the gdb-prs@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

gdb/660: GDB 5.2 or 5.2.1 do not build on linux libc5, gcc 2.95.3


>Number:         660
>Category:       gdb
>Synopsis:       GDB 5.2 or 5.2.1 do not build on linux libc5, gcc 2.95.3
>Confidential:   no
>Severity:       critical
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Aug 19 12:38:01 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     schurro@georgetown.edu
>Release:        5.2
>Organization:
>Environment:
Linux x86 libc5 2.0.39 gcc 2.95.3
host systems: i586-pc-linux-gnulibc1
configure --prefix=/opt
>Description:
gcc 2.95.3 is compiled from sources using gcc 2.7.2.3 and
that worked fine.

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
>How-To-Repeat:
mkdir gdb-obj
cd gbd-obj
../gbd-5.2/configure --prefix=/opt
make -j2
>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]