Ethereal-dev: [Ethereal-dev] LIBS not defined correctly for nsl/socket?

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

From: Matt Selsky <selsky@xxxxxxxxxxxx>
Date: Thu, 19 Feb 2004 05:15:36 -0500
I configured ethereal 0.10.1 as follows:

$ LDFLAGS='-R/opt/local/lib -L/opt/local/lib' \
  ./configure \
        --prefix=/opt/ethereal-0.10.1 \
        --with-pcap=/opt/local \
        --enable-gtk2 \
        --without-ucd-snmp \
        --without-ssl

I run make and get this at the end:

make[2]: Entering directory `/hmt/chinchin/src/misc/ethereal-0.10.1/obj/solaris9'
/bin/bash ./libtool --mode=link gcc  -D_U_="__attribute__((unused))" -Wall -W -g -O2 -Wno-return-type -DFUNCPROTO=15 -I/usr/local/include -threads -I/opt/gtk+-2.2.4/include/gtk-2.0 
-I/opt/gtk+-2.2.4/lib/gtk-2.0/include -I/opt/atk-1.4.0/include/atk-1.0 
-I/opt/pango-1.2.5/include/pango-1.0 -I/opt/xft-2.1.2/include -I/opt/freetype-2.1.4/include 
-I/opt/freetype-2.1.4/include/freetype2 -I/opt/xrender-0.8.3/include 
-I/opt/render-0.8/include -I/opt/fontconfig-2.2.90/include 
-I/usr/openwin/include -I/opt/glib-2.2.3/include/glib-2.0 
-I/opt/glib-2.2.3/lib/glib-2.0/include   -I/opt/local/include  -R/opt/local/lib -L/opt/local/lib 
-L/usr/local/lib -R/usr/local/lib -L/opt/local/lib -R/opt/local/lib -o ethereal -export-dynamic packet-aarp.o packet-acap.o packet-acse.o 
packet-afp.o packet-afs.o packet-aim.o packet-ajp13.o packet-alcap.o 
packet-ans.o packet-ansi_637.o packet-ansi_683.o packet-ansi_a.o 
packet-ansi_map.o packet-aodv.o packet-arcnet.o packet-arp.o 
packet-asap.o packet-ascend.o packet-asf.o packet-atalk.o packet-atm.o packet-auto_rp.o 
packet-bacapp.o packet-bacnet.o packet-beep.o packet-bfd.o packet-bgp.o
packet-bofl.o packet-bootp.o packet-bootparams.o packet-bpdu.o 
packet-brdwlk.o packet-bssap.o packet-bssgp.o packet-bvlc.o 
packet-ccsds.o packet-cdp.o packet-cgmp.o packet-chdlc.o packet-cisco-oui.o 
packet-clearcase.o packet-clip.o packet-clnp.o packet-cops.o 
packet-cosine.o packet-cpfi.o packet-cpha.o packet-cups.o packet-data.o packet-dccp.o 
packet-dcerpc-afs4int.o packet-dcerpc-atsvc.o packet-dcerpc-bossvr.o 
packet-dcerpc-browser.o packet-dcerpc-budb.o packet-dcerpc-butc.o 
packet-dcerpc-cds_clerkserver.o packet-dcerpc-cds_solicit.o 
packet-dcerpc-conv.o packet-dcerpc-cprpc_server.o packet-dcerpc-dce122.o 
packet-dcerpc-dfs.o packet-dcerpc-dnsserver.o packet-dcerpc-drsuapi.o 
packet-dcerpc-dtsprovider.o packet-dcerpc-dtsstime_req.o packet-dcerpc-epm.o 
packet-dcerpc-epm4.o packet-dcerpc-fldb.o packet-dcerpc-ftserver.o 
packet-dcerpc-icl_rpc.o packet-dcerpc-initshutdown.o packet-dcerpc-krb5rpc.o 
packet-dcerpc-llb.o packet-dcerpc-lsa-ds.o packet-dcerpc-lsa.o 
packet-dcerpc-mapi.o packet-dcerpc-messenger.o packet-dcerpc-mgmt.o 
packet-dcerpc-ndr.o packet-dcerpc-netlogon.o packet-dcerpc-nspi.o 
packet-dcerpc-oxid.o packet-dcerpc-rdaclif.o packet-dcerpc-reg.o packet-dcerpc-remact.o 
packet-dcerpc-rep_proc.o packet-dcerpc-roverride.o packet-dcerpc-rpriv.o packet-dcerpc-rs_acct.o packet-dcerpc-rs_attr.o 
packet-dcerpc-rs_attr_schema.o packet-dcerpc-rs_bind.o 
packet-dcerpc-rs_misc.o packet-dcerpc-rs_pgo.o packet-dcerpc-rs_plcy.o packet-dcerpc-rs_prop_acct.o 
packet-dcerpc-rs_prop_acl.o packet-dcerpc-rs_prop_attr.o 
packet-dcerpc-rs_prop_pgo.o packet-dcerpc-rs_prop_plcy.o packet-dcerpc-rs_pwd_mgmt.o 
packet-dcerpc-rs_repadm.o packet-dcerpc-rs_replist.o packet-dcerpc-rs_repmgr.o packet-dcerpc-rs_unix.o packet-dcerpc-rsec_login.o 
packet-dcerpc-samr.o packet-dcerpc-secidmap.o packet-dcerpc-spoolss.o 
packet-dcerpc-srvsvc.o packet-dcerpc-svcctl.o packet-dcerpc-tapi.o 
packet-dcerpc-tkn4int.o packet-dcerpc-trksvr.o packet-dcerpc-ubikdisk.o 
packet-dcerpc-ubikvote.o packet-dcerpc-update.o packet-dcerpc-wkssvc.o 
packet-dcerpc.o packet-ddtp.o packet-dec-bpdu.o packet-dhcpv6.o 
packet-diameter.o
packet-diffserv-mpls-common.o packet-distcc.o packet-dlsw.o packet-dns.o 
packet-dsi.o packet-dvmrp.o packet-eap.o packet-eapol.o packet-echo.o packet-edonkey.o packet-eigrp.o packet-enc.o packet-enip.o 
packet-esis.o packet-eth.o packet-etherip.o packet-ethertype.o 
packet-fc.o packet-fcct.o packet-fcdns.o packet-fcels.o packet-fcfcs.o packet-fcfzs.o 
packet-fcip.o packet-fclctl.o packet-fcp.o packet-fcsb3.o packet-fcsp.o packet-fcswils.o packet-fddi.o packet-fix.o packet-fr.o 
packet-frame.o packet-ftp.o packet-fw1.o packet-giop.o packet-gmrp.o 
packet-gnutella.o packet-gprs-ns.o packet-gre.o packet-gsm_a.o packet-gsm_map.o 
packet-gsm_sms.o packet-gsm_sms_ud.o packet-gssapi.o packet-gtp.o packet-gvrp.o packet-h1.o packet-h225.o packet-h245.o packet-h261.o 
packet-h263.o packet-h450.o packet-hclnfsd.o packet-hpext.o 
packet-hsrp.o packet-http.o packet-hyperscsi.o packet-iapp.o packet-iax2.o packet-ib.o 
packet-icap.o packet-icmpv6.o packet-icp.o packet-icq.o packet-ieee80211.o packet-ieee8023.o packet-igap.o packet-igmp.o packet-igrp.o 
packet-image-gif.o packet-image-jfif.o packet-imap.o packet-ip.o 
packet-ipfc.o packet-ipmi.o packet-ipp.o packet-ipsec-udp.o packet-ipsec.o 
packet-ipv6.o packet-ipx.o packet-ipxwan.o packet-irc.o packet-isakmp.o 
packet-iscsi.o packet-isdn.o packet-isis-clv.o packet-isis-hello.o 
packet-isis-lsp.o packet-isis-snp.o packet-isis.o packet-isl.o 
packet-ismp.o
packet-isns.o packet-isup.o packet-iua.o packet-jabber.o packet-kadm5.o 
packet-kerberos.o packet-klm.o packet-kpasswd.o packet-l2tp.o packet-lapb.o packet-lapbether.o packet-lapd.o packet-laplink.o packet-ldap.o 
packet-ldp.o packet-llc.o packet-lmi.o packet-lmp.o packet-lpd.o packet-lwapp.o packet-m2pa.o packet-m2tp.o packet-m2ua.o packet-m3ua.o 
packet-mbtcp.o packet-mdshdr.o packet-mip.o packet-mip6.o packet-mmse.o
packet-mount.o packet-mpeg1.o packet-mpls.o packet-mrdisc.o 
packet-msdp.o packet-msn-messenger.o packet-msnip.o packet-msproxy.o 
packet-mtp2.o packet-mtp3.o packet-mtp3mg.o packet-multipart.o packet-mysql.o 
packet-nbipx.o packet-nbns.o packet-ncp.o packet-ncp2222.o packet-ndmp.o
packet-ndps.o packet-netbios.o packet-netflow.o packet-nfs.o 
packet-nfsacl.o packet-nfsauth.o packet-nisplus.o packet-nlm.o 
packet-nlsp.o packet-nntp.o packet-nt-oui.o packet-nt-sonmp.o packet-nt-tpcp.o 
packet-ntlmssp.o packet-ntp.o packet-null.o packet-olsr.o 
packet-osi-options.o packet-osi.o packet-ospf.o packet-pcnfsd.o packet-per.o packet-pflog.o 
packet-pgm.o packet-pim.o packet-pop.o packet-portmap.o packet-postgresql.o packet-ppp.o packet-pppoe.o packet-pptp.o packet-pres.o 
packet-prism.o packet-q2931.o packet-q931.o packet-q933.o packet-qllc.o 
packet-quake.o packet-quake2.o packet-quake3.o packet-quakeworld.o 
packet-radius.o packet-radiotap.o packet-ranap.o packet-raw.o 
packet-rip.o packet-ripng.o packet-rlogin.o packet-rmcp.o packet-rmi.o packet-rmp.o 
packet-rpc.o packet-rpl.o packet-rquota.o packet-rsh.o packet-rstat.o
packet-rsvp.o packet-rsync.o packet-rtcp.o packet-rtp-events.o 
packet-rtp.o packet-rtsp.o packet-rwall.o packet-rx.o packet-sadmind.o 
packet-sap.o packet-sccp.o packet-sccpmg.o packet-scsi.o packet-sctp.o 
packet-sdlc.o packet-sdp.o packet-sebek.o packet-ses.o packet-sflow.o 
packet-sip.o packet-sipfrag.o packet-skinny.o packet-slimp3.o packet-sll.o 
packet-slowprotocols.o packet-slsk.o packet-smb-browse.o packet-smb-co
mmon.o packet-smb-logon.o packet-smb-mailslot.o packet-smb-pipe.o 
packet-smb-sidsnooping.o packet-smb.o packet-smpp.o packet-smtp.o 
packet-sna.o packet-snaeth.o packet-snmp.o packet-socks.o packet-spnego.o 
packet-spray.o packet-srvloc.o packet-sscop.o packet-ssh.o packet-ssl.o 
packet-stat-notify.o packet-stat.o packet-stun.o packet-sua.o 
packet-syslog.o packet-t38.o packet-tacacs.o packet-tcap.o packet-tcp.o 
packet-tds.o packet-teimanagement.o packet-telnet.o packet-teredo.o 
packet-text-media.o packet-tftp.o packet-time.o packet-tns.o 
packet-tpkt.o packet-tr.o packet-trmac.o packet-tsp.o packet-tzsp.o packet-ucp.o 
packet-udp.o packet-v120.o packet-vines.o packet-vj.o packet-vlan.o 
packet-vrrp.o packet-vtp.o packet-wap.o packet-wbxml.o packet-wccp.o packet-wcp.o 
packet-wfleet-hdlc.o packet-who.o packet-wlancap.o packet-wsp.o pack
et-wtls.o packet-wtp.o packet-x11.o packet-x25.o packet-x29.o 
packet-xdmcp.o packet-xot.o packet-xyplex.o packet-yhoo.o packet-ymsg.o 
packet-ypbind.o packet-yppasswd.o packet-ypserv.o packet-ypxfr.o 
packet-zebra.o adler32.o afn.o asn1.o column.o crc32.o crypt-des.o 
crypt-md4.o crypt-md5.o crypt-rc4.o follow.o g711.o h225-persistentdata.o in_cksum.o 
ipproto.o packet-dcerpc-nt.o prefs.o ptvcursor.o reassemble.o req_res
p_hdrs.o t35.o tap.o util.o xdlc.o xmlstub.o  capture_stop_conditions.o 
cfile.o conditions.o disabled_protos.o pcap-util.o pcap-util-unix.o
print.o ps.o range.o ringbuffer.o timestats.o version_info.o register.o 
alert_box.o capture.o file.o filters.o proto_hier_stats.o summary.o
 wiretap/libwiretap.a gtk/libui.a epan/libethereal.a 
epan/ftypes/libftypes.a epan/dfilter/libdfilter.a "-dlopen" self 
"-dlopen" plugins/acn/acn.la "-dlopen" plugins/artnet/artnet.la "-dlopen" plugins/asn1/asn1.la 
"-dlopen" plugins/docsis/docsis.la "-dlopen" plugins/enttec/enttec.la "-dlopen" plugins/giop/cosnaming.la "-dlopen" 
plugins/giop/coseventcomm.la "-dlopen" plugins/gryphon/gryphon.la 
"-dlopen" plugins/irda/irda.la "-dlopen" plugins/lwres/lwres.la "-dlopen" 
plugins/megaco/megaco.la "-dlopen" plugins/mgcp/mgcp.la "-dlopen" 
plugins/pcli/pcli.la "-dlopen" plugins/rdm/rdm.la "-dlopen" plugins/rtnet/rtnet.la "-dlopen" 
plugins/v5ua/v5ua.la -lpcap -threads -L/opt/gtk+-2.2.4/lib -L/opt/atk-1.4.0/lib -L/opt/pango-1.2.5/lib -L/opt/glib-2.2.3/lib -lgtk-x11-2.0 
-lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lpangoxft-1.0 -lpangox-1.0 
-lpango-1.0 -lgobject-2.0 -lgmodule-2.0 -ldl -lgthread-2.0 -lglib-2.0 -lm    
-lz
rm -f .libs/ethereal.nm .libs/ethereal.nmS .libs/ethereal.nmT
creating .libs/etherealS.c
(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 "-D_U_=__attribute__((unused))" -Wall -W -g -O2 -Wno-return-type 
-DFUNCPROTO=15 -I/usr/local/include -threads -I/opt/gtk+-2.2.4/include/gtk-2.0 -I/opt/gtk+-2.2.4/lib/gtk-2.0/include 
-I/opt/atk-1.4.0/include/atk-1.0 -I/opt/pango-1.2.5/include/pango-1.0 
-I/opt/xft-2.1.2/include
 -I/opt/freetype-2.1.4/include -I/opt/freetype-2.1.4/include/freetype2 
-I/opt/xrender-0.8.3/include -I/opt/render-0.8/include -I/opt/fontconfig-2.2.90/include -I/usr/openwin/include 
-I/opt/glib-2.2.3/include/glib-2.0 
-I/opt/glib-2.2.3/lib/glib-2.0/include -I/opt/local/include -o
ethereal packet-aarp.o packet-acap.o packet-acse.o packet-afp.o 
packet-afs.o packet-aim.o packet-ajp13.o packet-alcap.o packet-ans.o 
packet-ansi_637.o packet-ansi_683.o packet-ansi_a.o packet-ansi_map.o 
packet-aodv.o packet-arcnet.o packet-arp.o packet-asap.o packet-ascend.o 
packet-asf.o packet-atalk.o packet-atm.o packet-auto_rp.o packet-bacapp.o 
packet-bacnet.o packet-beep.o packet-bfd.o packet-bgp.o packet-bofl.o
packet-bootp.o packet-bootparams.o packet-bpdu.o packet-brdwlk.o 
packet-bssap.o packet-bssgp.o packet-bvlc.o packet-ccsds.o packet-cdp.o 
packet-cgmp.o packet-chdlc.o packet-cisco-oui.o packet-clearcase.o 
packet-clip.o packet-clnp.o packet-cops.o packet-cosine.o packet-cpfi.o 
packet-cpha.o packet-cups.o packet-data.o packet-dccp.o 
packet-dcerpc-afs4int.o packet-dcerpc-atsvc.o packet-dcerpc-bossvr.o 
packet-dcerpc-browser.o packet-dcerpc-budb.o packet-dcerpc-butc.o 
packet-dcerpc-cds_clerkserver.o packet-dcerpc-cds_solicit.o 
packet-dcerpc-conv.o packet-dcerpc-cprpc_server.o packet-dcerpc-dce122.o packet-dcerpc-dfs.o 
packet-dcerpc-dnsserver.o packet-dcerpc-drsuapi.o 
packet-dcerpc-dtsprovider.o packet-dcerpc-dtsstime_req.o packet-dcerpc-epm.o packet-dcerpc-epm4.o 
packet-dcerpc-fldb.o packet-dcerpc-ftserver.o packet-dcerpc-icl_rpc.o pa
cket-dcerpc-initshutdown.o packet-dcerpc-krb5rpc.o packet-dcerpc-llb.o 
packet-dcerpc-lsa-ds.o packet-dcerpc-lsa.o packet-dcerpc-mapi.o packe
t-dcerpc-messenger.o packet-dcerpc-mgmt.o packet-dcerpc-ndr.o 
packet-dcerpc-netlogon.o packet-dcerpc-nspi.o packet-dcerpc-oxid.o 
packet-dcerpc-rdaclif.o packet-dcerpc-reg.o packet-dcerpc-remact.o 
packet-dcerpc-rep_proc.o packet-dcerpc-roverride.o packet-dcerpc-rpriv.o 
packet-dcerpc-rs_acct.o packet-dcerpc-rs_attr.o packet-dcerpc-rs_attr_schema.o 
packet-dcerpc-rs_bind.o packet-dcerpc-rs_misc.o packet-dcerpc-rs_pgo.o p
acket-dcerpc-rs_plcy.o packet-dcerpc-rs_prop_acct.o 
packet-dcerpc-rs_prop_acl.o packet-dcerpc-rs_prop_attr.o 
packet-dcerpc-rs_prop_pgo.o packet-dcerpc-rs_prop_plcy.o packet-dcerpc-rs_pwd_mgmt.o 
packet-dcerpc-rs_repadm.o packet-dcerpc-rs_replist.o 
packet-dcerpc-rs_repmgr.o packet-dcerpc-rs_unix.o packet-dcerpc-rsec_login.o packet-dcerpc-samr.o 
packet-dcerpc-secidmap.o packet-dcerpc-spoolss.o packet-dcerpc-srvsvc.o 
packet-dcerpc-svcctl.o packet-dcerpc-tapi.o packet-dcerpc-tkn4int.o 
packet-dcerpc-trksvr.o packet-dcerpc-ubikdisk.o packet-dcerpc-ubikvote.o 
packet-dcerpc-update.o packet-dcerpc-wkssvc.o packet-dcerpc.o 
packet-ddtp.o packet-dec-bpdu.o packet-dhcpv6.o packet-diameter.o 
packet-diffserv-mpls-common.o packet-distcc.o packet-dlsw.o packet-dns.o packet-dsi.o 
packet-dvmrp.o packet-eap.o packet-eapol.o packet-echo.o packet-edon
key.o packet-eigrp.o packet-enc.o packet-enip.o packet-esis.o 
packet-eth.o packet-etherip.o packet-ethertype.o packet-fc.o 
packet-fcct.o packet-fcdns.o packet-fcels.o packet-fcfcs.o packet-fcfzs.o packet-fcip.o 
packet-fclctl.o packet-fcp.o packet-fcsb3.o packet-fcsp.o packet-fcsw
ils.o packet-fddi.o packet-fix.o packet-fr.o packet-frame.o packet-ftp.o 
packet-fw1.o packet-giop.o packet-gmrp.o packet-gnutella.o packet-g
prs-ns.o packet-gre.o packet-gsm_a.o packet-gsm_map.o packet-gsm_sms.o 
packet-gsm_sms_ud.o packet-gssapi.o packet-gtp.o packet-gvrp.o packet
-h1.o packet-h225.o packet-h245.o packet-h261.o packet-h263.o 
packet-h450.o packet-hclnfsd.o packet-hpext.o packet-hsrp.o 
packet-http.o packet-hyperscsi.o packet-iapp.o packet-iax2.o packet-ib.o packet-icap.o 
packet-icmpv6.o packet-icp.o packet-icq.o packet-ieee80211.o packet-iee
e8023.o packet-igap.o packet-igmp.o packet-igrp.o packet-image-gif.o 
packet-image-jfif.o packet-imap.o packet-ip.o packet-ipfc.o packet-ipmi
.o packet-ipp.o packet-ipsec-udp.o packet-ipsec.o packet-ipv6.o 
packet-ipx.o packet-ipxwan.o packet-irc.o packet-isakmp.o packet-iscsi.o 
packet-isdn.o packet-isis-clv.o packet-isis-hello.o packet-isis-lsp.o 
packet-isis-snp.o packet-isis.o packet-isl.o packet-ismp.o packet-isns.o
packet-isup.o packet-iua.o packet-jabber.o packet-kadm5.o 
packet-kerberos.o packet-klm.o packet-kpasswd.o packet-l2tp.o 
packet-lapb.o packet-lapbether.o packet-lapd.o packet-laplink.o packet-ldap.o packet-ldp.o 
packet-llc.o packet-lmi.o packet-lmp.o packet-lpd.o packet-lwapp.o pa
cket-m2pa.o packet-m2tp.o packet-m2ua.o packet-m3ua.o packet-mbtcp.o 
packet-mdshdr.o packet-mip.o packet-mip6.o packet-mmse.o packet-mount.o
 packet-mpeg1.o packet-mpls.o packet-mrdisc.o packet-msdp.o 
packet-msn-messenger.o packet-msnip.o packet-msproxy.o packet-mtp2.o 
packet-mtp3.o packet-mtp3mg.o packet-multipart.o packet-mysql.o packet-nbipx.o 
packet-nbns.o packet-ncp.o packet-ncp2222.o packet-ndmp.o packet-ndps.o
packet-netbios.o packet-netflow.o packet-nfs.o packet-nfsacl.o 
packet-nfsauth.o packet-nisplus.o packet-nlm.o packet-nlsp.o 
packet-nntp.o packet-nt-oui.o packet-nt-sonmp.o packet-nt-tpcp.o packet-ntlmssp.o 
packet-ntp.o packet-null.o packet-olsr.o packet-osi-options.o 
packet-osi.o
 packet-ospf.o packet-pcnfsd.o packet-per.o packet-pflog.o packet-pgm.o 
packet-pim.o packet-pop.o packet-portmap.o packet-postgresql.o packe
t-ppp.o packet-pppoe.o packet-pptp.o packet-pres.o packet-prism.o 
packet-q2931.o packet-q931.o packet-q933.o packet-qllc.o packet-quake.o 
packet-quake2.o packet-quake3.o packet-quakeworld.o packet-radius.o 
packet-radiotap.o packet-ranap.o packet-raw.o packet-rip.o 
packet-ripng.o
packet-rlogin.o packet-rmcp.o packet-rmi.o packet-rmp.o packet-rpc.o 
packet-rpl.o packet-rquota.o packet-rsh.o packet-rstat.o packet-rsvp.o
packet-rsync.o packet-rtcp.o packet-rtp-events.o packet-rtp.o 
packet-rtsp.o packet-rwall.o packet-rx.o packet-sadmind.o packet-sap.o 
packet-sccp.o packet-sccpmg.o packet-scsi.o packet-sctp.o packet-sdlc.o 
packet-sdp.o packet-sebek.o packet-ses.o packet-sflow.o packet-sip.o 
packet-sipfrag.o packet-skinny.o packet-slimp3.o packet-sll.o 
packet-slowprotocols.o packet-slsk.o packet-smb-browse.o 
packet-smb-common.o packet-smb-logon.o packet-smb-mailslot.o packet-smb-pipe.o 
packet-smb-sidsnooping.o packet-smb.o packet-smpp.o packet-smtp.o 
packet-sna.o packet-snaeth.o packet-snmp.o packet-socks.o packet-spnego.o packet-spray.o 
packet-srvloc.o packet-sscop.o packet-ssh.o packet-ssl.o 
packet-stat-notify.o packet-stat.o packet-stun.o packet-sua.o packet-syslog.o 
packet-t38.o packet-tacacs.o packet-tcap.o packet-tcp.o packet-tds.o 
packet-teimanagement.o packet-telnet.o packet-teredo.o packet-text-media.o 
packet-tftp.o packet-time.o packet-tns.o packet-tpkt.o packet-tr.o 
packet-trmac.o packet-tsp.o packet-tzsp.o packet-ucp.o packet-udp.o 
packet-v120.o packet-vines.o packet-vj.o packet-vlan.o packet-vrrp.o 
packet-vtp.o packet-wap.o packet-wbxml.o packet-wccp.o packet-wcp.o 
packet-wfleet-hdlc.o packet-who.o packet-wlancap.o packet-wsp.o 
packet-wtls.o packet-wtp.o packet-x11.o packet-x25.o packet-x29.o packet-xdmcp.o 
packet-xot.o packet-xyplex.o packet-yhoo.o packet-ymsg.o packet-ypbind.o 
packet-yppasswd.o packet-ypserv.o packet-ypxfr.o packet-zebra.o adler32.o 
afn.o asn1.o column.o crc32.o crypt-des.o crypt-md4.o crypt-md5.o crypt-rc4.o follow.o g711.o h225-persistentdata.o in_cksum.o ipproto.o 
packet-dcerpc-nt.o prefs.o ptvcursor.o reassemble.o req_resp_hdrs.o 
t35.o
 tap.o util.o xdlc.o xmlstub.o capture_stop_conditions.o cfile.o 
conditions.o disabled_protos.o pcap-util.o pcap-util-unix.o print.o ps.o 
range.o ringbuffer.o timestats.o version_info.o register.o alert_box.o 
capture.o file.o filters.o proto_hier_stats.o summary.o .libs/etherealS.o -threads  -L/opt/local/lib -L/usr/local/lib wiretap/libwiretap.a 
gtk/libui.a epan/libethereal.a epan/ftypes/libftypes.a epan/dfilter/libdfilter.a -lpcap -L/opt/gtk+-2.2.4/lib -L/opt/atk-1.4.0/lib 
-L/opt/pango-1.2.5/lib -L/opt/glib-2.2.3/lib 
/opt/gtk+-2.2.4/lib/libgtk-x11-2.0.so /opt/gtk+-2.2.4/lib/libgdk-x11-2.0.so /opt/atk-1.4.0/lib/libatk-1.0.so 
/opt/gtk+-2.2.4/lib/libgdk_pixbuf-2.0.so /opt/pango-1.2.5/lib/libpangoxft-1.0.so /opt/pango-1.2.5/lib/libpangox-1.0.so 
/opt/pango-1.2.5/lib/libpango-1.0.so 
/opt/glib-2.2.3/lib/libgobject-2.0.so /opt/glib-2.2.3/lib/libgmodule-2.0.so -ldl /opt/glib-2.2.3/lib/libgthread-2.0.so 
/opt/glib-2.2.3/lib/libglib-2.0.so -lm -lz -R/opt/gtk+-2.2.4/lib -R/opt/atk-1.4.0/lib -R/opt/pango-1.2.5/lib -R/opt/glib-2.2.3/lib 
-R/opt/gtk+-2.2.4/lib -R/opt/atk-1.4.0/lib -R/opt/pango-1.2.5/lib 
-R/opt/glib-2.2.3/lib -R/opt/local/lib -R/usr/local/lib
Undefined                       first referenced
 symbol                             in file
socket                              /opt/local/lib/libpcap.a(inet.o)  (symbol belongs to implicit dependency /usr/lib/libsocket.so.1)
getservbyname                       /opt/local/lib/libpcap.a(nametoaddr.o)  (symbol belongs to implicit dependency /usr/lib/libsocket.so.1)
getnetbyname                        /opt/local/lib/libpcap.a(nametoaddr.o)  (symbol belongs to implicit dependency /usr/lib/libsocket.so.1)
inet_pton                           packet-tacacs.o  (symbol belongs to implicit dependency /usr/lib/libnsl.so.1)
gethostbyname                       epan/libethereal.a(resolv.o)  (symbol belongs to implicit dependency /usr/lib/libnsl.so.1)
getprotobyname                      /opt/local/lib/libpcap.a(nametoaddr.o)  (symbol belongs to implicit dependency /usr/lib/libsocket.so.1)
inet_ntop                           epan/libethereal.a(to_str.o)  (symbol belongs to implicit dependency /usr/lib/libnsl.so.1)
gethostbyaddr                       epan/libethereal.a(resolv.o)  (symbol belongs to implicit dependency /usr/lib/libnsl.so.1)
getservbyport                       epan/libethereal.a(resolv.o)  (symbol belongs to implicit dependency /usr/lib/libsocket.so.1)
ld: fatal: Symbol referencing errors. No output written to ethereal
collect2: ld returned 1 exit status
rm -f .libs/etherealS.o
make[2]: *** [ethereal] Error 1
make[2]: Leaving directory `/hmt/chinchin/src/misc/ethereal-0.10.1/obj/solaris9'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/hmt/chinchin/src/misc/ethereal-0.10.1/obj/solaris9'
make: *** [all] Error 2


For some reason -lnsl and -lsocket are missing from the linking.  
NSL_LIBS and SOCKET_LIBS are not includes in LIBS.  My GTK_LIBS does not 
include socket or nsl (the comments in Makefile.in suggest that it 
should)

pkg-config output for gtk+-2.x library requirements:

$ /opt/pkgconfig-0.15.0/bin/pkg-config gtk+-2.0 --libs
-L/opt/gtk+-2.2.4/lib -L/opt/atk-1.4.0/lib -L/opt/pango-1.2.5/lib -L/opt/glib-2.2.3/lib -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lpangoxft-1.0 -lpangox-1.0 -lpango-1.0 -lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0 -lm

gtk+ does link against nsl and socket though.

Is there something wrong with my gtk+ install?  Other applications seem 
to compile just fine.

I can get around this for now by doing "make LIBS='-lz -lnsl -lsocket'


Cheers.