From owner-freebsd-current Sat Sep 14 8: 3:26 2002 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 C195D37B400 for ; Sat, 14 Sep 2002 08:03:22 -0700 (PDT) Received: from dibbler.ne.client2.attbi.com (dibbler.ne.client2.attbi.com [24.61.41.247]) by mx1.FreeBSD.org (Postfix) with ESMTP id 24C0C43E75 for ; Sat, 14 Sep 2002 08:03:22 -0700 (PDT) (envelope-from rodrigc@attbi.com) Received: from dibbler.ne.client2.attbi.com (localhost [127.0.0.1]) by dibbler.ne.client2.attbi.com (8.12.6/8.12.5) with ESMTP id g8EF3QGP005186 for ; Sat, 14 Sep 2002 11:03:26 -0400 (EDT) (envelope-from rodrigc@dibbler.ne.client2.attbi.com) Received: (from rodrigc@localhost) by dibbler.ne.client2.attbi.com (8.12.6/8.12.6/Submit) id g8EF3MNB005185 for freebsd-current@freebsd.org; Sat, 14 Sep 2002 11:03:22 -0400 (EDT) Date: Sat, 14 Sep 2002 11:03:22 -0400 From: Craig Rodrigues To: freebsd-current@freebsd.org Subject: Re: Problem with machine/cpufunc.h Message-ID: <20020914110322.B5087@attbi.com> References: <20020914110206.A5087@attbi.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: <20020914110206.A5087@attbi.com>; from rodrigc@attbi.com on Sat, Sep 14, 2002 at 11:02:06AM -0400 Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hi, Sorry, the original subject of the message should have been "Problem with machine/cpufunc.h" -- Craig Rodrigues http://www.gis.net/~craigr rodrigc@attbi.com On Sat, Sep 14, 2002 at 11:02:06AM -0400, Craig Rodrigues wrote: > Hi, > > While looking into fixing the audio/rio port which > fails to compile on -current, I found the following > problem. The following program compiles successfully > with the C compiler, but will fail to compile > as a C++ program (ie. rename the file to end with .cpp > and compile with g++) > > #include > #include > #include > > > /include/machine/cpufunc.h: In function `int ffs(int)': > /usr/include/machine/cpufunc.h:109: `int ffs(int)' was declared `extern' and > later `static' > /usr/include/strings.h:44: previous declaration of `int ffs(int)' > > > Is this problem the fault of the header file, the compiler, or the > port? Is there a fix for the header file possible? > -- > Craig Rodrigues > http://www.gis.net/~craigr > rodrigc@attbi.com > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-current" in the body of the message To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message