From owner-freebsd-hackers@FreeBSD.ORG Tue Mar 4 15:45:42 2008 Return-Path: Delivered-To: hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 50BD51065673 for ; Tue, 4 Mar 2008 15:45:42 +0000 (UTC) (envelope-from rwatson@FreeBSD.org) Received: from cyrus.watson.org (cyrus.watson.org [209.31.154.42]) by mx1.freebsd.org (Postfix) with ESMTP id 287018FC35 for ; Tue, 4 Mar 2008 15:45:42 +0000 (UTC) (envelope-from rwatson@FreeBSD.org) Received: from fledge.watson.org (fledge.watson.org [209.31.154.41]) by cyrus.watson.org (Postfix) with ESMTP id DA42C46C1F; Tue, 4 Mar 2008 10:45:41 -0500 (EST) Date: Tue, 4 Mar 2008 15:45:41 +0000 (GMT) From: Robert Watson X-X-Sender: robert@fledge.watson.org To: Giorgos Keramidas In-Reply-To: <20080304153730.GA61036@kobe.laptop> Message-ID: <20080304154339.L41184@fledge.watson.org> References: <20080303.224256.635730757.imp@bsdimp.com> <20080304151326.J41184@fledge.watson.org> <20080304153730.GA61036@kobe.laptop> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: hackers@freebsd.org Subject: Re: Comments on pmake diffs for building on Linux X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 04 Mar 2008 15:45:42 -0000 On Tue, 4 Mar 2008, Giorgos Keramidas wrote: >> In most ports of FreeBSD parts to Linux that I've seen, the preferred >> solution has to been to bring the entire FreeBSD queue.h with you rather >> than relying on the native Linux queue.h. This is what we do for OpenBSM, >> for example; this also helps out when you get to Mac OS X, Solaris, etc, >> where all the queue.h's continue to vary in subtle ways. This depends a >> fair amount on a lack of header pollution in the OS's own include files, of >> course... > > Fortunately, in Solaris where I am testing the import of sys/cdefs.h and > sys/queue.h today, things seem to be `ok'. Just importing the two headers > at http://hg.hellug.gr/bmake/gker/rev/68bfc25ed443 seems to have moved > things one step closer towards building everything on Solaris: > > Now off to the next little annoyance. Building with Sun Studio on Solaris > 10, in my test machine at home, stops at: > > > The next part, about the missing errx() functions on Solaris is going to be > tonight's fun. If there are too many missing functions, it may be worth > adding a static `libcompat' with copies of just the functions we need to run > BSD make on non-BSD hosts. It's beginning to sound like it would be really nice to have an autoconf'd/automake'd version of our make to drop onto Linux, Solaris, etc, etc, systems in order to bootstrap our compile. I share Warner's reluctance to add autoconf parts to our native build, but having 'bsdmake' as a starting point is useful, and would put those other platforms more at parity with Mac OS X as a starting point (probably ahead due to more accessible native build tools). I'm a bit surprised there isn't already a Linux 'bsdmake' package floating around... (When I say 'nice' above, I mean it in the normal autoconf sense of the word 'nice', so don't take that the wrong way!) Robert N M Watson Computer Laboratory University of Cambridge