From owner-svn-src-all@FreeBSD.ORG Fri May 10 18:58:14 2013 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 993C46F6; Fri, 10 May 2013 18:58:14 +0000 (UTC) (envelope-from pawel@dawidek.net) Received: from mail.dawidek.net (garage.dawidek.net [91.121.88.72]) by mx1.freebsd.org (Postfix) with ESMTP id 60429151; Fri, 10 May 2013 18:58:13 +0000 (UTC) Received: from localhost (host-89-230-160-233.ostrowmaz.mm.pl [89.230.160.233]) by mail.dawidek.net (Postfix) with ESMTPSA id D07F432F; Fri, 10 May 2013 20:54:08 +0200 (CEST) Date: Fri, 10 May 2013 21:00:40 +0200 From: Pawel Jakub Dawidek To: Mikolaj Golub Subject: Re: svn commit: r250379 - in head/usr.sbin/bsnmpd/modules: . snmp_hast Message-ID: <20130510190039.GA1404@garage.freebsd.pl> References: <201305082003.r48K3cYv062256@svn.freebsd.org> <20130509071412.GA94250@gmail.com> <20130509082243.GP3047@kib.kiev.ua> <20130509100533.GC94250@gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="AqsLC8rIMeq19msA" Content-Disposition: inline In-Reply-To: <20130509100533.GC94250@gmail.com> X-OS: FreeBSD 10.0-CURRENT amd64 User-Agent: Mutt/1.5.21 (2010-09-15) Cc: Konstantin Belousov , svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org, Peter Wemm X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 10 May 2013 18:58:14 -0000 --AqsLC8rIMeq19msA Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, May 09, 2013 at 01:05:35PM +0300, Mikolaj Golub wrote: > On Thu, May 09, 2013 at 11:22:43AM +0300, Konstantin Belousov wrote: > > Why do you need libl.a ? If only for yywrap(), then re-implementing > > it for the module seems to be trivial. >=20 > Yes, it is like so. Thanks! I am now considering two possible > solutions: >=20 > 1) As it is suggested above, add trivial yywrap() and link without -ll. >=20 > 2) Add '%option noyywrap' to hastd/token.l, and link hastd, hastctl > and snmp_hast without -ll (it looks like yywrap is needed only when > parsing more than one file). >=20 > See the patches below. It looks both solutions work for me and I > personally prefer the second one. Me too. --=20 Pawel Jakub Dawidek http://www.wheelsystems.com FreeBSD committer http://www.FreeBSD.org Am I Evil? Yes, I Am! http://mobter.com --AqsLC8rIMeq19msA Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (FreeBSD) iEYEARECAAYFAlGNQ9cACgkQForvXbEpPzRipACdH1aQq/niehW19Zv7Cyt9+4Y1 tW4AoJmlbCZjz/EdZxfbqdIptlfeS7TR =c/2z -----END PGP SIGNATURE----- --AqsLC8rIMeq19msA--