From owner-freebsd-current@FreeBSD.ORG Sun May 27 21:48:49 2007 Return-Path: X-Original-To: freebsd-current@freebsd.org Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 4AA5916A400 for ; Sun, 27 May 2007 21:48:49 +0000 (UTC) (envelope-from ed@hoeg.nl) Received: from palm.hoeg.nl (mx0.hoeg.nl [83.98.131.211]) by mx1.freebsd.org (Postfix) with ESMTP id 13A3513C448 for ; Sun, 27 May 2007 21:48:49 +0000 (UTC) (envelope-from ed@hoeg.nl) Received: by palm.hoeg.nl (Postfix, from userid 1000) id CF8431CD9A; Sun, 27 May 2007 23:48:47 +0200 (CEST) Date: Sun, 27 May 2007 23:48:47 +0200 From: Ed Schouten To: Josep Pujadas i Jubany Message-ID: <20070527214847.GX23313@hoeg.nl> References: <20070527210345.M41000@bellera.cat> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="5QcriFbbFkKgT3aH" Content-Disposition: inline In-Reply-To: <20070527210345.M41000@bellera.cat> User-Agent: Mutt/1.5.15 (2007-04-06) Cc: FreeBSD Current Subject: Re: LIST_END doesn't exist at queue.h X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 27 May 2007 21:48:49 -0000 --5QcriFbbFkKgT3aH Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hello,=20 * Josep Pujadas i Jubany wrote: > Hello! >=20 > I can't compile snort2c (http://snort2c.sourceforge.net/) on FreeBSD 6.2 = =2E.. >=20 > # make=20 > Warning: Object directory not changed from=20 > original /usr/home/super/snort_pf/snort2c-0.2/snort2c=20 > cc -O2 -fno-strict-aliasing -pipe -Wall -Werror -g -O2 -c parser.c=20 > parser.c: In function `s2c_parse_free_wl':=20 > parser.c:283: warning: implicit declaration of function `LIST_END'=20 > parser.c:283: warning: comparison between pointer and integer=20 > *** Error code 1=20 >=20 > Stop in /usr/home/super/snort_pf/snort2c-0.2/snort2c.=20 >=20 > The package is designed for working with OpenBSD, where LIST_END exists= =20 > for queue.h >=20 > http://nixdoc.net/man-pages/OpenBSD/LIST_END.3.html >=20 > I looked at my /usr/include/sys/queue.h and at man queue and LIST_END is = not=20 > supported. >=20 > Any idea? If I understand the manual page correctly, LIST_END(head) is nothing more than some portable way to handle sentinels at the end of the list. Just smack the following code above the C file: | #ifndef LIST_END | #define LIST_END(head) NULL | #endif This is exactly the same as how it is defined in OpenBSD's sys/queue.h: http://www.openbsd.org/cgi-bin/cvsweb/~checkout~/src/sys/sys/queue.h?conte= nt-type=3Dtext/plain --=20 Ed Schouten WWW: http://g-rave.nl/ --5QcriFbbFkKgT3aH Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (FreeBSD) iD8DBQFGWfy/52SDGA2eCwURAmJpAJ4piULrkWtDokqd1FEtVGYyon6VCQCeIT6Y x62y9sx1F92Vt0+30E9GXaU= =H+Ar -----END PGP SIGNATURE----- --5QcriFbbFkKgT3aH--