Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 10 May 2013 21:00:40 +0200
From:      Pawel Jakub Dawidek <pjd@FreeBSD.org>
To:        Mikolaj Golub <trociny@FreeBSD.org>
Cc:        Konstantin Belousov <kostikbel@gmail.com>, svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org, Peter Wemm <peter@wemm.org>
Subject:   Re: svn commit: r250379 - in head/usr.sbin/bsnmpd/modules: . snmp_hast
Message-ID:  <20130510190039.GA1404@garage.freebsd.pl>
In-Reply-To: <20130509100533.GC94250@gmail.com>
References:  <201305082003.r48K3cYv062256@svn.freebsd.org> <CAGE5yCozBYWpWOWM4e1T0uMOe3n3FLEP0X5hggN64hzdUJnU7w@mail.gmail.com> <CAGE5yCqiwjAa4H50Hf-TWBWfLZxp-K1JA=XzEFEHzo825BFOtg@mail.gmail.com> <20130509071412.GA94250@gmail.com> <20130509082243.GP3047@kib.kiev.ua> <20130509100533.GC94250@gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help

--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--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20130510190039.GA1404>