Ethereal-users: RE: [Ethereal-users] libsnmp problem building from source on RH7. 1

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

From: "HOOD, Andy" <ahood@xxxxxxxxxxxxxx>
Date: Thu, 31 May 2001 09:13:39 +1000
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

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:	David Bergum [mailto:bergum@xxxxxxxxx]
Sent:	Thursday, 31 May 2001 08:05
To:	ethereal-users@xxxxxxxxxxxx
Subject:	[Ethereal-users] libsnmp problem building from source on
RH7.1

I have a problem where a -lsnmp is being translated into some very odd
path.  Building 0.8.18 on a RH7.1 with UCB-SNMP.  I have
/usr/lib/libsnmp.so properly linked.  However when I 'make' I get the
error:

creating .libs/etherealS.c
extracting global C symbols from `plugins/gryphon/.libs/gryphon.a'
extracting global C symbols from `plugins/mgcp/.libs/mgcp.a'
(cd .libs && gcc -c -fno-builtin -fno-rtti -fno-exceptions "etherealS.c")
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/include/gtk-1.2 -I/usr/i
nclude/glib-1.2 -I/usr/lib/glib/include -I/usr/X11R6/include -o
.libs/ethereal packet-aarp.o p
acket-afs.o packet-aim.o packet-arp.o packet-ascend.o packet-atalk.o
packet-atm.o packet-auto_
rp.o packet-bacapp.o packet-bacnet.o packet-bgp.o packet-bootp.o
packet-bootparams.o packet-bp
du.o packet-bvlc.o packet-bxxp.o packet-cdp.o packet-cgmp.o packet-chdlc.o
packet-clip.o packe
t-clnp.o packet-cops.o packet-cups.o packet-data.o packet-dcerpc.o
packet-ddtp.o packet-dec-bp
du.o packet-diameter.o packet-dns.o packet-eigrp.o packet-esis.o
packet-eth.o packet-ethertype
.o packet-fddi.o packet-fr.o packet-frame.o packet-ftp.o packet-giop.o
packet-gre.o packet-gtp
.o packet-gvrp.o packet-h1.o packet-h261.o packet-hclnfsd.o packet-hsrp.o
packet-http.o packet
-icmpv6.o packet-icp.o packet-icq.o packet-igrp.o packet-imap.o packet-ip.o
packet-ipp.o packe
t-ipsec.o packet-ipv6.o packet-ipx.o packet-irc.o packet-ieee80211.o
packet-ieee8023.o packet-
isakmp.o packet-isis.o packet-isis-clv.o packet-isis-hello.o
packet-isis-lsp.o packet-isis-snp
.o packet-isl.o packet-iua.o packet-kerberos.o packet-klm.o packet-l2tp.o
packet-lapb.o packet
-lapbether.o packet-lapd.o packet-ldap.o packet-ldp.o packet-llc.o
packet-lmi.o packet-lpd.o p
acket-m3ua.o packet-mapi.o packet-mbtcp.o packet-mip.o packet-mount.o
packet-mpls.o packet-msp
roxy.o packet-nbipx.o packet-nbns.o packet-ncp.o packet-ncp2222.o
packet-netbios.o packet-nfs.
o packet-nisplus.o packet-nlm.o packet-nntp.o packet-ntp.o packet-null.o
packet-osi.o packet-o
si-options.o packet-ospf.o packet-pim.o packet-pop.o packet-portmap.o
packet-ppp.o packet-pppo
e.o packet-pptp.o packet-q2931.o packet-q931.o packet-quake.o
packet-radius.o packet-ranap.o p
acket-raw.o packet-rip.o packet-ripng.o packet-rlogin.o packet-rpc.o
packet-rquota.o packet-rs
h.o packet-rsvp.o packet-rtcp.o packet-rtp.o packet-rtsp.o packet-rwall.o
packet-rx.o packet-s
ap.o packet-sctp.o packet-sdp.o packet-sip.o packet-sll.o packet-smb.o
packet-smb-browse.o pac
ket-smb-common.o packet-smb-logon.o packet-smb-mailslot.o packet-smb-pipe.o
packet-smtp.o pack
et-sna.o packet-snmp.o packet-socks.o packet-spray.o packet-srvloc.o
packet-sscop.o packet-sta
t.o packet-stat-notify.o packet-sual.o packet-syslog.o packet-tacacs.o
packet-tcp.o packet-tel
net.o packet-tftp.o packet-time.o packet-tns.o packet-tpkt.o packet-tr.o
packet-trmac.o packet
-udp.o packet-v120.o packet-vines.o packet-vlan.o packet-vrrp.o packet-vtp.o
packet-wccp.o pac
ket-wcp.o packet-who.o packet-wap.o packet-wtls.o packet-wsp.o packet-wtp.o
packet-x11.o packe
t-x25.o packet-xot.o packet-yhoo.o packet-ypbind.o packet-yppasswd.o
packet-ypserv.o packet-yp
xfr.o packet-zebra.o asn1.o column.o follow.o in_cksum.o ipproto.o prefs.o
print.o ps.o ptvcur
sor.o register.o util.o xdlc.o capture.o file.o filters.o proto_hier_stats.o
summary.o .libs/e
therealS.o -rdynamic -rdynamic -Wl,--export-dynamic
plugins/gryphon/.libs/gryphon.so -L/usr/l
ocal/lib plugins/mgcp/.libs/mgcp.so wiretap/libwiretap.a gtk/libui.a
epan/libethereal.a epan/f
types/libftypes.a epan/dfilter/libdfilter.a /usr/local/lib/.libs/libsnmp.so
-lpcap -L/usr/lib 
-L/usr/X11R6/lib -ldl -lXi -lXext -lX11 -lm -ldl -lXi -lXext -lX11 -lm -ldl
-ldl -lXi -lXext -
lX11 -lm -lpcap /usr/lib/libgtk.so -ldl -lXi -lXext -lX11 -lm
/usr/lib/libgdk.so -ldl -lXi -lX
ext -lX11 -lm /usr/lib/libgmodule.so -ldl /usr/lib/libglib.so -ldl -lXi
-lXext -lX11 -lm -lz -
Wl,--rpath -Wl,/usr/local/lib/ethereal/plugins/0.8.18 -Wl,--rpath
-Wl,/usr/local/lib
gcc: /usr/local/lib/.libs/libsnmp.so: No such file or directory
make[2]: *** [ethereal] Error 1
make[2]: Leaving directory `/usr/src/OtherApps/ethereal-0.8.18'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/src/OtherApps/ethereal-0.8.18'
make: *** [all-recursive-am] Error 2

I can't figure out where the path for libsnmp.so is generated, not wanting
to take the time to figure out all the nuances of the Makefile, so I just
made a .libs subdir and added a link.  Compiles fine.

However, someone should fix the problem.  I am thinking the problem might
be in the libtool.  However, I have real work to do...;-)

Regards,

Dave.
-- 

      A
-----/|\-----------------------------------------------+
-   / | \    Dave Bergum            <bergum@xxxxxxxxx> |
-  /__|__\   408 St. Peter St.      Gab: (651)726-2324 |
- j---'---/  Suite 600 [stpaul1]    Fax: (651)726-2350 |
-~~~~~~~~~~  St. Paul, MN  55102   Cell: (612)723-7135 |
-------------------------------------------------------+

_______________________________________________
Ethereal-users mailing list
Ethereal-users@xxxxxxxxxxxx
http://www.ethereal.com/mailman/listinfo/ethereal-users

<<application/ms-tnef>>