Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 28 Feb 2002 10:42:17 -0800 (PST)
From:      "Dorr H. Clark" <dclark@applmath.scu.edu>
To:        freebsd-questions@FreeBSD.ORG
Subject:   resolution! (was Re: problems building gdb on FreeBSD 4.4)
Message-ID:  <Pine.GHP.4.21.0202281029170.26631-100000@hpux36.dc.engr.scu.edu>
In-Reply-To: <20020225073141.A9439@grimoire.chen.org.nz>

next in thread | previous in thread | raw e-mail | index | archive | help

On Mon, 25 Feb 2002, Jonathan Chen wrote:

> On Fri, Feb 22, Dorr H. Clark wrote:
> > On Thu, 21 Feb, Jonathan Chen wrote:
> > > On Wed, Feb 20, Dorr H. Clark wrote:
> > > > cd /usr/src/contrib/gdb/
> > > Just type "make". 
> > make: no target to make
> Try running "make" in /usr/src/gnu/usr.bin/binutils/gdb instead.

Thank you for this clarifying clue.

Short answer:

Don't believe the first thing you "find".

Long answer:

GDB 4.18 downloaded from GNU doesn't build on FreeBSD 4.4
because it's not supposed to build.  

FreeBSD maintains it's own port of GDB with a handful 
of sources in the gnu/usr.bin/binutils path.  
The contrib/gdb path is meant to be a reference source 
repository for those GNU sources which are used as is.
The Makefile and port support files in contrib/gdb 
are pre-configured for FreeBSD.

In addition, experimentation with more advanced versions
of GDB, such as the 5.1.0.1 tarball at the GNU ftp site,
shouldn't even really be done with the tarball as is,
even though it builds fine and appears to function
on FreeBSD 4.4 through the normal GNU configure/make sequence.
Instead, early adopters of GDB5 should obtain the sources
in gnu/usr.bin/binutils/gdb5 

...for example: 
http://www.freebsd.org/cgi/cvsweb.cgi/src/gnu/usr.bin/binutils/gdb5/

since it is these files which will ultimately wind up 
in the FreeBSD distribution & therefore need to be shaken out.

-dhc

ps- The "make" in /usr/src/gnu/usr.bin/binutils/gdb 
presumes some previous "make"s, which can be obtained
by make one level up instead.



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.GHP.4.21.0202281029170.26631-100000>