From owner-freebsd-questions Wed Feb 20 19:29:49 2002 Delivered-To: freebsd-questions@freebsd.org Received: from hpux38.dc.engr.scu.edu (hpux38.dc.engr.scu.edu [129.210.16.38]) by hub.freebsd.org (Postfix) with ESMTP id 0F97E37B405 for ; Wed, 20 Feb 2002 19:29:42 -0800 (PST) Received: from localhost (dclark@localhost) by hpux38.dc.engr.scu.edu (8.10.2/8.10.2) with ESMTP id g1L3Tbh03579 for ; Wed, 20 Feb 2002 19:29:38 -0800 (PST) Date: Wed, 20 Feb 2002 19:29:37 -0800 (PST) From: "Dorr H. Clark" To: freebsd-questions@freebsd.org Subject: problems building gdb on FreeBSD 4.4 Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG I'm confused. I did an installation through the menu from the 4.4 CD, asking for all sources & X but no games. Some time later, I did this: cd /usr/src/contrib/gdb/ ./configure echo4.4-RELEASE: not found Configuring for a i386-unknown-freebsdelf host. ./move-if-change: Can't open ./move-if-change: No such file or directory *** cannot find move-if-change. I also had a gdb 4.18 tarball from the gnu FTP site downloaded last year. I opened that up into the file system in a different area, then did this: cd /home/gdb/gdb_4_18_from_gnu/ ./configure make gcc -c -g -I. -I. -I./config -DHAVE_CONFIG_H -I./../include/opcode -I./../readline/.. -I../bfd -I./../bfd -I./../include -I../intl -I./../intl -I./tui solib.c solib.c:212: warning: `struct rt_symbol' declared inside parameter list solib.c:212: warning: its scope is only this definition or declaration, which is probably not what you want. solib.c: In function `solib_map_sections': solib.c:344: structure has no member named `som_addr' solib.c:345: structure has no member named `som_addr' solib.c: In function `solib_add_common_symbols': solib.c:405: argument `rtc_symp' doesn't match prototype solib.c:212: prototype declaration solib.c:406: storage size of `inferior_rtc_symb' isn't known solib.c: In function `first_link_map_member': solib.c:892: sizeof applied to an incomplete type solib.c:893: invalid use of undefined type `struct _dynamic' solib.c:897: invalid use of undefined type `struct _dynamic' solib.c:898: sizeof applied to an incomplete type solib.c:899: invalid use of undefined type `struct section_dispatch_table' solib.c: In function `alloc_solib': solib.c:996: structure has no member named `som_path' solib.c: In function `find_solib': solib.c:1080: structure has no member named `som_next' solib.c:1159: structure has no member named `som_path' solib.c: In function `symbol_add_stub': solib.c:1203: structure has no member named `som_addr' solib.c: In function `info_sharedlibrary_command': solib.c:1420: structure has no member named `som_addr' solib.c: In function `solib_address': solib.c:1469: structure has no member named `som_addr' solib.c: In function `disable_break': solib.c:1555: sizeof applied to an incomplete type solib.c:1561: invalid use of undefined type `struct so_debug' solib.c:1562: invalid use of undefined type `struct so_debug' solib.c:1563: invalid use of undefined type `struct so_debug' solib.c: In function `enable_break': solib.c:1647: sizeof applied to an incomplete type solib.c:1656: invalid use of undefined type `struct _dynamic' solib.c:1660: invalid use of undefined type `struct so_debug' solib.c: In function `special_symbol_handling': solib.c:1947: sizeof applied to an incomplete type solib.c:1958: invalid use of undefined type `struct _dynamic' solib.c:1965: sizeof applied to an incomplete type solib.c:1971: invalid use of undefined type `struct so_debug' solib.c:1973: invalid use of undefined type `struct so_debug' solib.c: At top level: solib.c:117: storage size of `dynamic_copy' isn't known solib.c:118: storage size of `ld_2_copy' isn't known solib.c:119: storage size of `debug_copy' isn't known *** Error code 1 Stop in /home/gdb/gdb-4.18_local/gdb. Looking in the code for solib.c, the failing code is inside an #ifndef SVR4_SHARED_LIBRARIES, but even if this flag is thrown solib.c fails a different way. Going to the FreeBSD CVS website, it doesn't appear that "solib.c" has been updated for any recent purpose. Going to the gnu website, I find that all versions before 5.0 have been wiped. The archive location is Redhat, which stores the 4.18 tarball as a .gz2 file. Is this a Pax or RPM storage format? My tar can't seem to make sense of it. Apologies in advance for not being Linux literate... Is there some obvious mistake I'm making? -Dorr H. Clark ps- If FreeBSD 4.x doesn't have SVR4_SHARED_LIBRARIES, then what kind of shared libraries does it have? pps- Please cc me on any response since I am unsubscribed. Thx. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message