Date: Sat, 14 Sep 2002 11:03:22 -0400 From: Craig Rodrigues <rodrigc@attbi.com> To: freebsd-current@freebsd.org Subject: Re: Problem with machine/cpufunc.h Message-ID: <20020914110322.B5087@attbi.com> In-Reply-To: <20020914110206.A5087@attbi.com>; from rodrigc@attbi.com on Sat, Sep 14, 2002 at 11:02:06AM -0400 References: <20020914110206.A5087@attbi.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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 <sys/types.h> > #include <string.h> > #include <machine/cpufunc.h> > > > /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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020914110322.B5087>