From owner-freebsd-current Sat Sep 14 8: 2: 3 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 5FD3137B400 for ; Sat, 14 Sep 2002 08:02:01 -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 C3BC543E72 for ; Sat, 14 Sep 2002 08:02:00 -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 g8EF2BGP005157 for ; Sat, 14 Sep 2002 11:02:12 -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 g8EF26H6005154 for freebsd-current@freebsd.org; Sat, 14 Sep 2002 11:02:06 -0400 (EDT) Date: Sat, 14 Sep 2002 11:02:06 -0400 From: Craig Rodrigues To: freebsd-current@freebsd.org Subject: Problem with machine/cputype.h Message-ID: <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 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, 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