Mailing List Archive

RE: error compiling todays CVS
No, I had to manually edit the Makefile to add -lsnmp. Once I did that here
was the error:

gmodule -lglib -lintl -lXext -lX11 -lm -lz -lsnmp
snmp_api.c:1100: warning: mktemp() possibly used unsafely; consider using
mkstemp()
keytools.c:124: Undefined symbol `_EVP_md5' referenced from text segment
keytools.c:126: Undefined symbol `_EVP_sha1' referenced from text segment
keytools.c:126: Undefined symbol `_EVP_DigestInit' referenced from text
segment
keytools.c:141: Undefined symbol `_EVP_DigestUpdate' referenced from text
segment
keytools.c:153: Undefined symbol `_EVP_DigestFinal' referenced from text
segment
scapi.c:149: Undefined symbol `_RAND_bytes' referenced from text segment
scapi.c:255: Undefined symbol `_EVP_md5' referenced from text segment
scapi.c:258: Undefined symbol `_EVP_sha1' referenced from text segment
scapi.c:258: Undefined symbol `_HMAC' referenced from text segment
scapi.c:345: Undefined symbol `_EVP_md5' referenced from text segment
scapi.c:348: Undefined symbol `_EVP_sha1' referenced from text segment
scapi.c:348: Undefined symbol `_EVP_DigestInit' referenced from text segment
scapi.c:353: Undefined symbol `_EVP_DigestUpdate' referenced from text
segment
scapi.c:354: Undefined symbol `_EVP_DigestFinal' referenced from text
segment
scapi.c:576: Undefined symbol `_des_key_sched' referenced from text segment
scapi.c:580: Undefined symbol `_des_ncbc_encrypt' referenced from text
segment
scapi.c:583: Undefined symbol `_des_ncbc_encrypt' referenced from text
segment
scapi.c:695: Undefined symbol `_des_key_sched' referenced from text segment
scapi.c:698: Undefined symbol `_des_cbc_encrypt' referenced from text
segment
collect2: ld returned 1 exit status
rm -f .libs/etherealS.o

The lightbulb now finally goes on over my head and I think to look at the
existing OpenBSD port of "ethereal-0.8.12". In there they add:

CONFIGURE_ARGS+= --enable-snmp
CONFIGURE_ENV+= LDFLAGS="${LDFLAGS} -L${LOCALBASE}/lib" LIBS="-lsnmp
-lcrypto"

So I edit the Makefile, add "-L/usr/lib -lsnmp -lcrypto"

and it compiles and runs

diana

-----Original Message-----
From: Guy Harris [mailto:gharris@flashcom.net]
Sent: October 05, 2000 9:56 PM
To: Eichert, Diana
Cc: 'ethereal-users@zing.org'
Subject: Re: [ethereal-users] error compiling todays CVS


On Thu, Oct 05, 2000 at 10:28:12AM -0600, Eichert, Diana wrote:
> While compiling from CVS today I had the following errors. The box is an
> i386 OpenBSD 2.7 -current as of mid-July and has ucdsnmp 4.1.2 installed.
> If I disable snmp I still get the errors relating to packet -ncp.

Did the link command that got those errors link with "-lsnmp"?