From owner-freebsd-questions Tue Oct 29 3:29:21 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id EA8FC37B401 for ; Tue, 29 Oct 2002 03:29:18 -0800 (PST) Received: from smtp.infracaninophile.co.uk (smtp.infracaninophile.co.uk [81.2.69.218]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0922243E7B for ; Tue, 29 Oct 2002 03:29:18 -0800 (PST) (envelope-from m.seaman@infracaninophile.co.uk) Received: from happy-idiot-talk.infracaninophile.co.uk (localhost.infracaninophile.co.uk [IPv6:::1]) by smtp.infracaninophile.co.uk (8.12.6/8.12.6) with ESMTP id g9TBTCLf005113 for ; Tue, 29 Oct 2002 11:29:12 GMT (envelope-from matthew@happy-idiot-talk.infracaninophile.co.uk) Received: (from matthew@localhost) by happy-idiot-talk.infracaninophile.co.uk (8.12.6/8.12.6/Submit) id g9TBT7iQ005112 for freebsd-questions@FreeBSD.ORG; Tue, 29 Oct 2002 11:29:07 GMT Date: Tue, 29 Oct 2002 11:29:07 +0000 From: Matthew Seaman To: freebsd-questions@FreeBSD.ORG Subject: Re: make buildworld fails Message-ID: <20021029112907.GB4480@happy-idiot-talk.infracaninophi> Mail-Followup-To: Matthew Seaman , freebsd-questions@FreeBSD.ORG References: <20021029033143.7c01a0b7.cpressey@catseye.mb.ca> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20021029033143.7c01a0b7.cpressey@catseye.mb.ca> User-Agent: Mutt/1.5.1i X-Spam-Status: No, hits=-13.4 required=5.0 tests=IN_REP_TO,QUOTED_EMAIL_TEXT,REFERENCES,SPAM_PHRASE_00_01, USER_AGENT,USER_AGENT_MUTT version=2.41 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Tue, Oct 29, 2002 at 03:31:43AM -0600, Chris Pressey wrote: > I've been following the -STABLE development tree for a while now without > any problems, using cvsup from 'make update'. But sometime over the > summer, a problem crept in somewhere and 'make buildworld' now fails. Curious. It's not unknown for there to be problems compiling when trying to upgrade over a big version jump. Not that 4.5 -- 4.7 is that big of a jump. However, such problems are almost never experienced by one person in isolation and will usually generate substantial amounts of traffic on the freebsd-stable@freebsd.org list. My guess is that the problem is specific to your system: something has become corrupted or you've made a modification that didn't turn out to be quite so cunning after all. Are you cvsup'ing the whole src-all collection, or have you tried to pick and choose amongst the the individual collections? Make sure you grab the whole source tree. When you first started using cvsup on your src tree, did you either start with a completely empty /usr/src or did you follow the instructions at http://www.cvsup.org/faq.html#caniadopt (that and the following Questions 12 and 13)? Of course you probably want to use the RELENG_4 tag nowadays. Not doing this isn't a disaster: all it means is that there are odd files scattered through your source tree that cvsup doesn't think it owns. That's usually fairly harmless, but can lead to occasional compilation problems. > uname -a says my system is 4.5-STABLE #18: Tue Mar 19 14:22:13 CST 2002 > (i386). > > make buildworld says: > > cc -O -pipe -DLIBC_RCS -DSYSLIBC_RCS -I/usr/src/lib/libc/include > -D__DBINTERFACE_PRIVATE -DINET6 -DPOSIX_MISTAKE > -I/usr/src/lib/libc/../libc/locale -DBROKEN_DES -DYP -c > /usr/src/lib/libc/../libc/gen/glob.c -o glob.o > /usr/src/lib/libc/../libc/gen/glob.c: In function `glob': > /usr/src/lib/libc/../libc/gen/glob.c:187: `GLOB_NOESCAPE' undeclared > (first use in this function) > /usr/src/lib/libc/../libc/gen/glob.c:187: (Each undeclared identifier is > reported only once > /usr/src/lib/libc/../libc/gen/glob.c:187: for each function it appears > in.) > /usr/src/lib/libc/../libc/gen/glob.c: In function `glob0': > /usr/src/lib/libc/../libc/gen/glob.c:503: `GLOB_NOMATCH' undeclared (first > use in this function) > /usr/src/lib/libc/../libc/gen/glob.c: In function `glob2': > /usr/src/lib/libc/../libc/gen/glob.c:564: `GLOB_ABORTED' undeclared (first > use in this function) > /usr/src/lib/libc/../libc/gen/glob.c: In function `glob3': > /usr/src/lib/libc/../libc/gen/glob.c:618: `GLOB_ABORTED' undeclared (first > use in this function) > *** Error code 1 You should have a file /usr/src/include/glob.h that contains the definitions for those macros. On a recent 4.7-STABLE system it's 4480 bytes. There should be a similar, if not identical, copy in /usr/include/glob.h: happy-idiot-talk:/usr/src:% fgrep '$FreeBSD' /usr/src/include/glob.h * $FreeBSD: src/include/glob.h,v 1.3.6.3 2002/09/18 14:13:30 mikeh Exp $ happy-idiot-talk:/usr/src:% md5 /usr/src/include/glob.h MD5 (/usr/src/include/glob.h) = ac1c36ec9e7ae6e713ae0d04416bc618 If that file is corrupt, you might try deleting the whole of /usr/src/include, and re-cvsup'ing: cd /usr/src/include rm -rf * cd .. make update Then see if the build goes any better. > FWIW, this does not seem to be the same error that I first encountered a > few months ago (if memory serves that error was somewhere in ppp, not the > C library. But it was of similar nature, an undeclared identifier.) Seems that either you've got some scrambled C header files or your C compiler tool chain is completely befuddled. Have you made any modifications to the stock system compiler? Have you installed, say, a more recent version of gcc into somewhere that puts an alternate 'cc' command on root's path and which the /usr/src Makefiles might be picking up? Hmmm... actually if that were the case I think the compilation would have blown up long before it got to /usr/src/lib/libc/gen/glob.c Cheers, Matthew -- Dr Matthew J Seaman MA, D.Phil. 26 The Paddocks Savill Way Marlow Tel: +44 1628 476614 Bucks., SL7 1TH UK To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message