From owner-freebsd-questions Thu Dec 26 04:08:25 1996 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id EAA18425 for questions-outgoing; Thu, 26 Dec 1996 04:08:25 -0800 (PST) Received: from gaia.coppe.ufrj.br (root@cisigw.coppe.ufrj.br [146.164.2.31]) by freefall.freebsd.org (8.8.4/8.8.4) with ESMTP id EAA18420 for ; Thu, 26 Dec 1996 04:08:21 -0800 (PST) Received: (from jonny@localhost) by gaia.coppe.ufrj.br (8.8.3/8.7.3) id QAA28909; Wed, 25 Dec 1996 16:55:50 -0200 (EDT) From: Joao Carlos Mendes Luis Message-Id: <199612251855.QAA28909@gaia.coppe.ufrj.br> Subject: Re: make obj in 2.1.6 To: davidn@sdev.usn.blaze.net.au (David Nugent) Date: Wed, 25 Dec 1996 16:55:49 -0200 (EDT) Cc: freebsd-questions@freebsd.org In-Reply-To: from David Nugent at "Dec 24, 96 04:26:44 pm" X-Mailer: ELM [version 2.4ME+ PL22 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk #define quoting(David Nugent) // Joao Carlos Mendes Luis writes: // > I'm starting to play with full system sources in 2.1.6.1 going to -stable. // > // > I got all sources into /usr/src-stable and started a "make world". It // > did not work: there was a problem in make obj. // > // > "make obj" created all links to /usr/obj-stable, but did not create // > the directories itself. // // If /usr/obj-stable is ever used, it is incorrect. /usr/obj is the // *only* directory ever used for the object tree. It should be building // all of the sources you have under /usr/src-stable under the // directory /usr/obj/usr/src-stable/. Ok. So how do you explain this ? My src-stable/Makefile, at lines 143-148 is like this: ... here=`pwd`; dest=/usr/obj`echo $$here | sed 's,^/usr/src,,'`; \ if test -d /usr/obj -a ! -d $$dest; then \ mkdir -p $$dest; \ else \ true; \ fi; \ ... Hence, if my current directory is /usr/src-stable, $dest will get the value "/usr/obj-stable". // > If I create a link from obj-stable to /usr/obj, // > then it works. Probably, there's something wrong somewhere in the make // > configuration. Some parts look for "obj*" ( as in "src*" ) and some // > look for "/usr/obj" directly. // // If you can be more specific about the 'some parts' and locate // problems with specific makefiles, then use send-pr. NONE of the // source tree should be looking at /usr/obj-*anything*, and the // macros that enable this are all common (in /usr/share/mk). I don't fully compreend all that makefiles (yet). All that I know for now is that when I do a make obj, the links are created pointing to obj-stable, but the real directories are created in /usr/obj. // Regards, // // David Nugent - Unique Computing Pty Ltd - Melbourne, Australia // Voice +61-3-9791-9547 Data/BBS +61-3-9792-3507 3:632/348@fidonet // davidn@freefall.org davidn@blaze.net.au http://www.blaze.net.au/~davidn/ Jonny -- Joao Carlos Mendes Luis jonny@gta.ufrj.br +55 21 290-4698 ( Job ) jonny@cisi.coppe.ufrj.br Network Manager UFRJ/COPPE/CISI Universidade Federal do Rio de Janeiro