From owner-freebsd-bugs Fri Aug 23 3: 0:15 2002 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 58CBB37B400 for ; Fri, 23 Aug 2002 03:00:10 -0700 (PDT) Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id EFC9043E91 for ; Fri, 23 Aug 2002 03:00:08 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.4/8.12.4) with ESMTP id g7NA08JU013115 for ; Fri, 23 Aug 2002 03:00:08 -0700 (PDT) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.4/8.12.4/Submit) id g7NA08BS013114; Fri, 23 Aug 2002 03:00:08 -0700 (PDT) Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4E60537B400 for ; Fri, 23 Aug 2002 02:51:50 -0700 (PDT) Received: from mailout11.sul.t-online.com (mailout11.sul.t-online.com [194.25.134.85]) by mx1.FreeBSD.org (Postfix) with ESMTP id 968A143E3B for ; Fri, 23 Aug 2002 02:51:49 -0700 (PDT) (envelope-from corecode@corecode.ath.cx) Received: from fwd11.sul.t-online.de by mailout11.sul.t-online.com with smtp id 17iB6Z-00007M-03; Fri, 23 Aug 2002 11:51:47 +0200 Received: from spirit.zuhause.stoert.net (320050403952-0001@[217.224.174.249]) by fmrl11.sul.t-online.com with esmtp id 17iB6J-0Ul0AiC; Fri, 23 Aug 2002 11:51:31 +0200 Received: from terrorfish.uni.stoert.net (terrorfish.uni.stoert.net [10.150.180.178]) by spirit.zuhause.stoert.net (8.11.6/8.11.6) with ESMTP id g7N9pRk04172 for ; Fri, 23 Aug 2002 11:51:27 +0200 (CEST) (envelope-from corecode@corecode.ath.cx) Received: from terrorfish.uni.stoert.net (localhost [127.0.0.1]) by terrorfish.uni.stoert.net (8.12.5/8.12.5) with ESMTP id g7N9oXFh000778 for ; Fri, 23 Aug 2002 11:50:33 +0200 (CEST) (envelope-from corecode@terrorfish.uni.stoert.net) Received: (from corecode@localhost) by terrorfish.uni.stoert.net (8.12.5/8.12.5/Submit) id g7N9oXDs000777; Fri, 23 Aug 2002 11:50:33 +0200 (CEST) (envelope-from corecode) Message-Id: <200208230950.g7N9oXDs000777@terrorfish.uni.stoert.net> Date: Fri, 23 Aug 2002 11:50:33 +0200 (CEST) From: "Simon 'corecode' Schubert" Reply-To: "Simon 'corecode' Schubert" To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: i386/41930: declaration clash for ffs() and ${CXX} Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >Number: 41930 >Category: i386 >Synopsis: declaration clash for ffs() and ${CXX} >Confidential: no >Severity: serious >Priority: high >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Fri Aug 23 03:00:07 PDT 2002 >Closed-Date: >Last-Modified: >Originator: Simon 'corecode' Schubert >Release: FreeBSD 5.0-CURRENT i386 >Organization: >Environment: System: FreeBSD terrorfish.uni.stoert.net 5.0-CURRENT FreeBSD 5.0-CURRENT #26: Tue Aug 20 13:57:01 CEST 2002 corecode@terrorfish.uni.stoert.net:/usr/obj/k7/usr/src/sys/TERRORFISH i386 >Description: when including both and from a C++ source, gcc yields a declaration error: In file included from ffstest.cc:3: /usr/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)' >How-To-Repeat: % cat > ffstest.cc <<__EOF__ && cc ffstest.cc #include #include #include __EOF__ >Fix: don't know >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message