Date: Fri, 23 Aug 2002 11:50:33 +0200 (CEST) From: "Simon 'corecode' Schubert" <corecode@corecode.ath.cx> To: FreeBSD-gnats-submit@FreeBSD.org Subject: i386/41930: declaration clash for ffs() and ${CXX} Message-ID: <200208230950.g7N9oXDs000777@terrorfish.uni.stoert.net>
next in thread | raw e-mail | index | archive | help
>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 <string.h> and <machine/cpufunc.h> 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 <string.h> #include <sys/types.h> #include <machine/cpufunc.h> __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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200208230950.g7N9oXDs000777>