Ethereal-users: Re: [Ethereal-users] solved problems when building ethereal-0.8.18

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: Chris Sylvain <csylvain@xxxxxxxxx>
Date: Thu, 05 Jul 2001 16:49:48 -0400
Now that I've put libtool into --debug and saved the whole thing in a
typescript file and then looked at it line by line .. Yes! It's true (and now
makes sense):  the 'installed=' lines in the ucd-snmp related *.la files in
/usr/local/lib all had the value 'no'.

OK (sorry I didn't understand at first).  I've edited the *.la files.

So now I have:

$ pwd
/usr/local/lib
$ grep installed\= *la
libgdk.la:installed=yes
libglib.la:installed=yes
libgmodule.la:installed=yes
libgthread.la:installed=yes
libgtk.la:installed=yes
libsnmp.la:installed=yes
libucdagent.la:installed=yes
libucdmibs.la:installed=yes

Hooray .. now libtool is referencing /usr/local/lib/libsnmp.so .. that's
fixed .. and the final problem is missing '-lssl -lcrypto' references:

gcc -Wall -g -O2 -I. -I./wiretap -I./epan -I/usr/local/include -I/usr/local/include/gtk-1.2 -I/usr/local/include/glib-1.2 -I/usr/local/lib/glib/include -I/usr/openwin/include -o .libs/ethereal
 .
 .
Undefined                       first referenced
 symbol                             in file
EVP_md5                             /usr/local/lib/libsnmp.so
EVP_DigestFinal                     /usr/local/lib/libsnmp.so
EVP_DigestUpdate                    /usr/local/lib/libsnmp.so
des_cbc_encrypt                     /usr/local/lib/libsnmp.so
EVP_sha1                            /usr/local/lib/libsnmp.so
EVP_DigestInit                      /usr/local/lib/libsnmp.so
des_key_sched                       /usr/local/lib/libsnmp.so
RAND_bytes                          /usr/local/lib/libsnmp.so
des_ncbc_encrypt                    /usr/local/lib/libsnmp.so
HMAC                                /usr/local/lib/libsnmp.so
ld: fatal: Symbol referencing errors. No output written to .libs/ethereal
collect2: ld returned 1 exit status
make: *** [ethereal] Error 1

In message <200106202254.IAA01543@xxxxxxxxxxxxxxxxxxx>, "HOOD, Andy" writes:
= Once again quoting myself, but this time from earlier this week.
= ---------------------------------
= I quote my own reply from 31May2001 to what was basically the same question.
= Please confirm how you installed ucd-snmp. I am beginning to suspect the
= ucd-snmp install process is at fault.
= 
= -- snip --
= I'm not sure why this happens. I've seen it on both Linux and Solaris with
= the latest version of libtool when you do not install the libs directly into
= the target directory. E.g. when you are making a package - like RedHat for
= Linux or me for multiple Solaris systems.
= 
= Edit each /usr/local/lib/lib*.la related to {ucd|net}-snmp. You might as
= well check the rest while you are on the job.
= 
= Change installed=no to installed=yes.
= 
= Rerun the Ethereal make
= -- snip --
= 
= Regards,
= Andrew Hood
= A distributed system is one in which the failure of a computer you didn't
= even know existed can render your own computer unusable. -- Leslie Lamport,
= as quoted in CACM, June 1992
= 
= 
= -----Original Message-----
= From:	Chris Sylvain [mailto:csylvain@xxxxxxxxx]
= Sent:	Thursday, 21 June 2001 04:55
= To:	ethereal-users@xxxxxxxxxxxx
= Subject:	[Ethereal-users] more (solved) problems when building
= ethereal-0.8.18
= 
= libtool has three uninitialized variables which cause the building of
= plugins/gryphon to bomb with 'test: argument expected' errors.
= 
= One need only add three lines in libtool just after the 'ltmain' comment
= header:
= 
=   pic_mode='no'
=   hardcode_into_libs='no'
=   build_libtool_need_lc='no'
= 
= there's still one more (unsolved) problem in libtool: it changes a reference
= to -lsnmp in the ethereal makefile to /usr/local/lib/.libs/libsnmp.so ..
= 
= rm -f .libs/etherealS.c .libs/ethereal.nm .libs/ethereal.nmS
= .libs/ethereal.nmT
= gcc -Wall -g -O2 -I. -I./wiretap -I./epan -I/usr/local/include
= -I/usr/local/include/gtk-1.2 -I/usr/local/include/glib-1.2
= -I/usr/local/lib/glib/include -I/usr/openwin/include -o .libs/ethereal
= packet-aarp.o
=  .
=  . 
=  .
=  epan/dfilter/libdfilter.a /usr/local/lib/.libs/libsnmp.so -lkstat -lpcap
= -L/usr/openwin/lib -ldl -lXext -lX11 -lsocket -lnsl -lm -ldl -lXext -lX11
= -lsocket -lnsl -lm -ldl -ldl -lXext -lX11 -lsocket -lnsl -lm -lpcap
= /usr/local/lib/libgtk.so -ldl -lXext -lX11 -lsocket -lnsl -lm
= /usr/local/lib/libgdk.so -ldl -lXext -lX11 -lsocket -lnsl -lm
= /usr/local/lib/libgmodule.so -ldl /usr/local/lib/libglib.so -ldl -lXext
= -lX11 -lsocket -lnsl -lm -lz -R/usr/local/lib/ethereal/plugins/0.8.18
= -R/usr/local/lib -R/usr/openwin/lib
= gcc: /usr/local/lib/.libs/libsnmp.so: No such file or directory
= make[2]: *** [ethereal] Error 1
= make[2]: Leaving directory `/export/home/csylvain/ethereal-0.8.18'
= make[1]: *** [all-recursive] Error 1
= make[1]: Leaving directory `/export/home/csylvain/ethereal-0.8.18'
= make: *** [all-recursive-am] Error 2
= 
=  - so close, and yet no compile (yet!)
= 
= 
= _______________________________________________
= Ethereal-users mailing list
= Ethereal-users@xxxxxxxxxxxx
= http://www.ethereal.com/mailman/listinfo/ethereal-users