From owner-freebsd-current@FreeBSD.ORG Fri Aug 1 23:08:01 2003 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 02EDC37B401 for ; Fri, 1 Aug 2003 23:08:01 -0700 (PDT) Received: from artificial.ath.cx (12-225-126-254.client.attbi.com [12.225.126.254]) by mx1.FreeBSD.org (Postfix) with ESMTP id 83C8343FBF for ; Fri, 1 Aug 2003 23:08:00 -0700 (PDT) (envelope-from Peorth@artificial.ath.cx) Received: from [127.0.0.1] (localhost [127.0.0.1]) by artificial.ath.cx (Postfix) with ESMTP id A1DFC33C08E for ; Fri, 1 Aug 2003 23:08:34 -0700 (PDT) From: Peorth To: current@freebsd.org In-Reply-To: <20030802055028.GB55688@sunbay.com> References: <1059796086.35389.255.camel@artificial.ath.cx> <20030802055028.GB55688@sunbay.com> Content-Type: text/plain Message-Id: <1059804513.35389.307.camel@artificial.ath.cx> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.3 Date: 01 Aug 2003 23:08:33 -0700 Content-Transfer-Encoding: 7bit Subject: Re: groff and mkdep? X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 02 Aug 2003 06:08:01 -0000 That seems so weird. CFLAGS and CXXFLAGS were set to something in the general environment, for non-port builds, but I thought the FreeBSD make system used for ports and such wouldn't get polluted by simply having that defined as a variable in the env. *headscratch* Maybe just my mistake, but thanks a lot. I never would've realized it was CFLAGS! Perhaps make should warn if setting CFLAGS/CXXFLAGS are going to pollute, at least on certain things like in the /usr/src tree, though up 'till that point, everything built fine, too. *shrug* On Fri, 2003-08-01 at 22:50, Ruslan Ermilov wrote: > On Fri, Aug 01, 2003 at 08:48:07PM -0700, Peorth wrote: > > I've just started to try and sync up to -CURRENT, and my first time > > asking on the lists, and everything seems to be going fine, except > > groff's build dies with > > rm -f .depend > > mkdep -f .depend -a > > /usr/src/gnu/usr.bin/groff/src/libs/libdriver/../../../../../../contrib/groff/src/libs/libdriver/input.cpp /usr/src/gnu/usr.bin/groff/src/libs/libdriver/../../../../../../contrib/groff/src/libs/libdriver/printer.cpp > > /usr/src/contrib/groff/src/libs/libdriver/input.cpp:244:20: driver.h: No > > such file or directory > > /usr/src/contrib/groff/src/libs/libdriver/input.cpp:245:20: device.h: No > > such file or directory > > /usr/src/contrib/groff/src/libs/libdriver/printer.cpp:29:20: driver.h: > > No such file or directory > > mkdep: compile failed > > *** Error code 1 > > > > I've tried everything I can think of, including changing the Makefile to > > explicitly include the groff directories via CFLAGS, CXXFLAGS, and such > > (and it adds the directive), but that doesn't seem to help in the > > slightest. > > Does anyone have any idea what's wrong with this? Is there any way to > > bypass this particular program in the build, and is it safe to do so? > > > I can only reproduce this with "make depend CFLAGS=". Something > somewhere overrides the normal CFLAGS value; the command line > above is incorrect, the correct one should look like this: > > mkdep -f .depend -a -DHAVE_CONFIG_H -I/usr/src/gnu/usr.bin/groff/src/libs/libdriver/../../../../../../contrib/groff/src/include -I/usr/src/gnu/usr.bin/groff/src/libs/libdriver/../../../src/include /usr/src/gnu/usr.bin/groff/src/libs/libdriver/../../../../../../contrib/groff/src/libs/libdriver/input.cpp /usr/src/gnu/usr.bin/groff/src/libs/libdriver/../../../../../../contrib/groff/src/libs/libdriver/printer.cpp > > So in short, something is wrong with your build environment. > > > Cheers,