*BSD News Article 96054


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!munnari.OZ.AU!news.mel.connect.com.au!news.mel.aone.net.au!news.mira.net.au!news.vbc.net!vbcnet-west!knews.uk0.vbc.net!vbcnet-gb!azure.xara.net!xara.net!news.he.net!newsfeed.direct.ca!europa.clark.net!feed1.news.erols.com!news.nl.innet.net!INnl.net!feed1.news.innet.be!INbe.net!stns.news.pipex.net!warm.news.pipex.net!pipex!tank.news.pipex.net!pipex!news.utell.co.uk!usenet
From: brian@shift.utell.net (Brian Somers)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: make world fails in 2.2.1?
Date: 23 May 1997 10:21:04 GMT
Organization: Awfulhak Ltd.
Lines: 50
Message-ID: <5m3r2g$ic4@ui-gate.utell.co.uk>
References: <5m2ssi$fer$1@wind.to.opentext.com>
Reply-To: brian@awfulhak.org, brian@utell.co.uk
NNTP-Posting-Host: shift.utell.net
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Newsreader: knews 0.9.8
Xref: euryale.cc.adfa.oz.au comp.unix.bsd.freebsd.misc:41510

In article <5m2ssi$fer$1@wind.to.opentext.com>,
	brad@idcott.idc.com (Bradley Mazurek) writes:
> I've been trying to perform a 'make world' in FreeBSD 2.2.1, but I am
> getting an error, and cannot find any reference to the problem...I
> have never done a make world, so there may be something I'm missing,
> but here goes:
> 
> /usr/src/gnu/usr.bin/cc/cc_int/c-common.c: In function `decl_attributes':
> /usr/src/gnu/usr.bin/cc/cc_int/c-common.c:208: number of arguments doesn't match prototype
> /usr/src/gnu/usr.bin/cc/cc_int/../../../../contrib/gcc/c-tree.h:160: prototype declaration
> 
> Now when I look at the files, I see the following:
> 
> c-common.c:
> 		void
> 		decl_attributes (decl, attributes)
> 		     tree decl, attributes;
> 
> c-tree.h:
> 		extern void decl_attributes         PROTO((tree, tree, tree));
> 
> Any suggestions?

This sort of thing happens when you load the source for an upgrade
on top of the old source.  A lot of the contrib stuff has a place
in /usr/src/*, but includes /usr/src/contrib/* in the Makefile.
Things that are moved around between releases are not "moved"
if you load your source on top of the old stuff - resulting in
duplicate files - and you end up getting the wrong one.

Try re-extracting your source.

    # cd /usr
    # mv src src.not
    # mkdir src
    # cd src
    # for f in /distrib/src/*.aa; do cat ${f%.aa}.?? | tar xvfz -; done

> Thanks,
> 		Brad
> --
> Bradley Mazurek              Phone:  (613) 567-4740 Ext 32
>   System Integrator          Fax:    (613) 567-4743
>   Ottawa Solution Center     Email:  mazurek@opentext.com
>   Open Text Corporation

-- 
Brian <brian@awfulhak.org> <brian@freebsd.org>
      <http://www.awfulhak.org>
Don't _EVER_ lose your sense of humour !