Ethereal-dev: [ethereal-dev] Bug in configure of etheral-0.7.5 on Solaris 2.6
Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.
From: Tim Ramsey <tar@xxxxxxx>
Date: Fri, 8 Oct 1999 13:16:50 -0500
Hello, tar@fubar(6235)% gtk-config --version 1.2.1 tar@fubar(6236)% gcc -v Reading specs from /usr/local/lib/gcc-lib/sparc-sun-solaris2.6/2.95.1/specs gcc version 2.95.1 19990816 (release) tar@fubar(6237)% uname -a SunOS fubar 5.6 Generic_105181-15 sun4u sparc SUNW,Ultra-5_10 Configured with this command: env CFLAGS="-O2 -pipe" LDFLAGS="-s -R/usr/local/lib" ./configure Excerpt from config.log: configure:2450: checking for asn_parse_header in -lsnmp configure:2469: gcc -o conftest -Wall -O2 -pipe -I$(top_srcdir) -I$(top_srcdir)/wiretap -I/usr/openwin/include -I/usr/local/lib/glib/include -I/usr/local/include -s -R/usr/local/lib conftest.c -lsnmp -lz -lpcap -L/usr/local/lib -L/usr/openwin/lib -R/usr/openwin/lib -lgtk -lgdk -lgmodule -lglib -ldl -lXext -lX11 -lsocket -lnsl -lm 1>&5 Undefined first referenced symbol in file kstat_close /usr/local/lib/libsnmp.a(system.o) kstat_lookup /usr/local/lib/libsnmp.a(system.o) kstat_read /usr/local/lib/libsnmp.a(system.o) kstat_open /usr/local/lib/libsnmp.a(system.o) kstat_data_lookup /usr/local/lib/libsnmp.a(system.o) ld: fatal: Symbol referencing errors. No output written to conftest collect2: ld returned 1 exit status configure: failed program was: #line 2458 "configure" #include "confdefs.h" /* Override any gcc2 internal prototype to avoid an error. */ /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ char asn_parse_header(); int main() { asn_parse_header() ; return 0; } This causes the compile to fail: tar@fubar(6240)% make make all-recursive Making all in wiretap Making all in gtk gcc -Wall -O2 -pipe -I. -I./wiretap -I/usr/openwin/include -I/usr/local/lib/glib/include -I/usr/local/include -s -R/usr/local/lib -o ethereal capture.o colors.o column.o dfilter-grammar.o dfilter-scanner.o dfilter.o display.o ethertype.o file.o follow.o packet-aarp.o packet-arp.o packet-ascend.o packet-atalk.o packet-atm.o packet-bootp.o packet-cdp.o packet-clip.o packet-data.o packet-dns.o packet-eth.o packet-fddi.o packet-ftp.o packet-giop.o packet-gre.o packet-http.o packet-icmpv6.o packet-icp.o packet-ip.o packet-ipp.o packet-ipsec.o packet-ipv6.o packet-ipx.o packet-isakmp.o packet-lapb.o packet-llc.o packet-lpd.o packet-nbipx.o packet-nbns.o packet-ncp.o packet-netbios.o packet-nntp.o packet-null.o packet-osi.o packet-ospf.o packet-pop.o packet-ppp.o packet-pppoe.o packet-pptp.o packet-radius.o packet-raw.o packet-rip.o packet-rsvp.o packet-rtsp.o packet-sdp.o packet-smb.o packet-tcp.o packet-telnet.o packet-tftp.o packet-tr.o packet-trmac.o packet-udp.o ! packet-vines.o packet-x25.o packet.o prefs.o print.o proto.o ps.o resolv.o summary.o util.o xdlc.o wiretap/libwiretap.a gtk/libui.a -lz -lpcap -L/usr/local/lib -L/usr/openwin/lib -R/usr/openwin/lib -lgtk -lgdk -lgmodule -lglib -ldl -lXext -lX11 -lsocket -lnsl -lm Undefined first referenced symbol in file proto_register_snmp proto.o dissect_snmp packet-udp.o ld: fatal: Symbol referencing errors. No output written to ethereal collect2: ld returned 1 exit status *** Error code 1 make: Fatal error: Command failed for target `ethereal' Current working directory /usr/local/src/ethereal-0.7.5 *** Error code 1 make: Fatal error: Command failed for target `all-recursive' Current working directory /usr/local/src/ethereal-0.7.5 *** Error code 1 make: Fatal error: Command failed for target `all-recursive-am' My workaround: env CFLAGS="-O2 -pipe" LDFLAGS="-s -R/usr/local/lib -lkstat" ./configure This makes it happier: checking for asn_parse_header in -lsnmp... yes ... and 'make' succeeds. Tim Ramsey / Sr. Systems Admin tar@xxxxxxx (work) Enterprise Server Technologies tar@xxxxxxxxx (personal) Computing and Network Services (785) 532-3742 (office) Kansas State University
- Follow-Ups:
- Re: [ethereal-dev] Bug in configure of etheral-0.7.5 on Solaris 2.6
- From: Guy Harris
- Re: [ethereal-dev] Bug in configure of etheral-0.7.5 on Solaris 2.6
- Prev by Date: [ethereal-dev] packet-sna.c
- Next by Date: [ethereal-dev] Patch to decode BPDU (Spanning Tree Protocol)
- Previous by thread: [ethereal-dev] packet-sna.c
- Next by thread: Re: [ethereal-dev] Bug in configure of etheral-0.7.5 on Solaris 2.6
- Index(es):