Date: Sat, 14 Sep 2002 11:02:06 -0400 From: Craig Rodrigues <rodrigc@attbi.com> To: freebsd-current@freebsd.org Subject: Problem with machine/cputype.h Message-ID: <20020914110206.A5087@attbi.com>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020914110206.A5087>