On Fri, 2022-10-14 at 09:31 -0600, Theo de Raadt wrote:
> Martijn van Duren <[email protected]> wrote:
>
> > This one got overlooked when all the metrics moved to snmpd_metrics.
> >
> > OK?
> >
> > martijn@
> >
> > Index: Makefile
> > ===================================================================
> > RCS file: /cvs/src/usr.sbin/snmpd/Makefile,v
> > retrieving revision 1.21
> > diff -u -p -r1.21 Makefile
> > --- Makefile 6 Oct 2022 14:41:08 -0000 1.21
> > +++ Makefile 14 Oct 2022 15:28:48 -0000
> > @@ -8,7 +8,7 @@ SRCS= parse.y log.c snmpe.c application
> > mps.c trap.c mib.c smi.c snmpd.c \
> > proc.c usm.c traphandler.c util.c
> >
> > -LDADD= -levent -lutil -lkvm -lcrypto
> > +LDADD= -levent -lutil -lcrypto
> > DPADD= ${LIBEVENT} ${LIBUTIL}
> > CFLAGS+= -Wall -I${.CURDIR}
> > CFLAGS+= -Wstrict-prototypes -Wmissing-prototypes
> >
>
> No kidding, but your DPADD dependency is also wrong.
right...
Index: Makefile
===================================================================
RCS file: /cvs/src/usr.sbin/snmpd/Makefile,v
retrieving revision 1.21
diff -u -p -r1.21 Makefile
--- Makefile 6 Oct 2022 14:41:08 -0000 1.21
+++ Makefile 14 Oct 2022 15:49:22 -0000
@@ -8,8 +8,8 @@ SRCS= parse.y log.c snmpe.c application
mps.c trap.c mib.c smi.c snmpd.c \
proc.c usm.c traphandler.c util.c
-LDADD= -levent -lutil -lkvm -lcrypto
-DPADD= ${LIBEVENT} ${LIBUTIL}
+LDADD= -levent -lutil -lcrypto
+DPADD= ${LIBEVENT} ${LIBUTIL} ${LIBCRYPTO}
CFLAGS+= -Wall -I${.CURDIR}
CFLAGS+= -Wstrict-prototypes -Wmissing-prototypes
CFLAGS+= -Wmissing-declarations