From owner-freebsd-questions Sun Sep 7 17:30:41 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id RAA20880 for questions-outgoing; Sun, 7 Sep 1997 17:30:41 -0700 (PDT) Received: from nico.telstra.net (nico.telstra.net [139.130.204.16]) by hub.freebsd.org (8.8.7/8.8.7) with SMTP id RAA20872 for ; Sun, 7 Sep 1997 17:30:38 -0700 (PDT) Received: from freebie.lemis.com (gregl1.lnk.telstra.net [139.130.136.133]) by nico.telstra.net (8.6.10/8.6.10) with ESMTP id KAA05322; Mon, 8 Sep 1997 10:28:14 +1000 Received: (grog@localhost) by freebie.lemis.com (8.8.7/8.6.12) id JAA16508; Mon, 8 Sep 1997 09:58:11 +0930 (CST) Message-ID: <19970908095811.31781@lemis.com> Date: Mon, 8 Sep 1997 09:58:11 +0930 From: Greg Lehey To: "Fernando P. Schapachnik" Cc: obrien@nuxi.com, questions@freebsd.org Subject: Re: Problems compiling DDD 2.1.1 from the ports. References: <19970905085908.54129@lemis.com> <19970906103503.22086@lemis.com> <3.0.2.16.19970907153446.12f7c068@milagro.dc.uba.ar> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.81e In-Reply-To: <3.0.2.16.19970907153446.12f7c068@milagro.dc.uba.ar>; from Fernando P. Schapachnik on Sun, Sep 07, 1997 at 03:34:46PM -0300 Organisation: LEMIS, PO Box 460, Echunga SA 5153, Australia Phone: +61-8-8388-8250 Fax: +61-8-8388-8250 Mobile: +61-41-739-7062 WWW-Home-Page: http://www.lemis.com/~grog Fight-Spam-Now: http://www.cauce.org Sender: owner-freebsd-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk On Sun, Sep 07, 1997 at 03:34:46PM -0300, Fernando P. Schapachnik wrote: > At 10:35 6/09/97 +0930, you wrote: >> On Fri, Sep 05, 1997 at 11:54:16AM +0300, Fernando Pablo Schapachnik wrote: >>>> >>>>> And why is it searching for *that* version instead of using the one >>>>> installed in my system?. >>>> >>>> Good question. What's in the Makefile? Where did you install ld >>>> from? >>> >>> From scratch, it came whith FBSD 2.1.7.1. >> >> I seem to recall you saying something about rebuilding gcc. I wonder >> if you got the ld from there, but it's rather unlikely. >> >>> What files can I search for? >> >> Look in the Makefiles below /usr/src/ports/devel/ddd. > > I don't have /usr/src/ports. I only have /usr/ports/distfiles. I'd be curious as to how you built the port, then. This might be your problem. You *should* have a directory /usr/src/ports/devel/ddd with some files in it. If you have the CD-ROM, you can extract it from ports/ports.tgz and then build it like this: # mkdir /usr/src # cd /usr/src # tar xzvf /cdrom/ports/ports.tgz devel/ddd # cd devel/ddd # make all install > By downloading the libc.so.3.0 you offered me I was able to compile, but > ddd hanged at startup. > Then I 'ln' libc.so.3.0 to libc.so.2.2, and it worked! This is dangerous. You may stop other critical parts of your system from working. If that happens, you may have to reboot in single user mode and perform some deep magic in order to recover it. You should replace your libc.so.2.2 as quickly as possible. > The only problem is that ddd hangs when I want to display > derreferenced pointers. Do you guys have the same problem or it's > just my strange mixture :) ? Well, I don't use ddd. I tried it and found it too cumbersome. But I can recall gdb (which runs in the background) running into some serious CPU usage at times like these. Is ddd really hanging, or is it waiting on a looping gdb? > I think 'make' should look some file to know which libraries (especially > libc.so.*) to use in order to compile the port. This have to do with each > port, or it's a system setting? Well, make does what its Makefile tells it. I suspect that your problem is that you haven't been using the FreeBSD port. Greg