From owner-freebsd-current Sun Oct 20 3: 2: 4 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 13CEA37B401 for ; Sun, 20 Oct 2002 03:02:03 -0700 (PDT) Received: from obsecurity.dyndns.org (adsl-64-165-226-88.dsl.lsan03.pacbell.net [64.165.226.88]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9C8AF43EAC for ; Sun, 20 Oct 2002 03:02:02 -0700 (PDT) (envelope-from kris@obsecurity.org) Received: by obsecurity.dyndns.org (Postfix, from userid 1000) id 1C81266B5E; Sun, 20 Oct 2002 03:01:58 -0700 (PDT) Date: Sun, 20 Oct 2002 03:01:58 -0700 From: Kris Kennaway To: current@FreeBSD.org Subject: Conflicting declarations for ffs() Message-ID: <20021020100158.GA18938@xor.obsecurity.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="vtzGhvizbBRQ85DL" Content-Disposition: inline User-Agent: Mutt/1.4i 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 --vtzGhvizbBRQ85DL Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Take a look at: http://bento.freebsd.org/errorlogs/5-full/cqcam-0.91_1.log This port includes headers that declare the ffs() function twice: once with an inline version and once with a prototype. Is the bug in the application, or the headers? Kris ---- In file included from ../libcqcam/port.h:44, from ../libcqcam/camera.h:26, from cqcam.C:28: /usr/include/machine/cpufunc.h: In function `int ffs(int)': /usr/include/machine/cpufunc.h:109: `int ffs(int)' was declared `extern' an= d=20 later `static' /usr/include/strings.h:44: previous declaration of `int ffs(int)' *** Error code 1 --vtzGhvizbBRQ85DL Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.7 (FreeBSD) iD8DBQE9sn8VWry0BWjoQKURAgAbAKCb32HHfDUWJmSTOvyNZxxrfPxBHQCeNaxp Vtwq5HOJXpcmaIL31Vq53vg= =ddJj -----END PGP SIGNATURE----- --vtzGhvizbBRQ85DL-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message