[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [ns] make nse under linux (suse 7.0) failed




The -lpcap library has not been included in the compilation.
Please try including it in the Makefile and try to compile again.

alefiya

On Thu, 25 Oct 2001, Martin [ISO-8859-1] J�rg wrote:

> Hi!
>
> I tried to install nse under Suse 7.0 but the make nse command stops
> with the following error:
>
>   emulate/net-ip.o emulate/net.o emulate/tap.o emulate/ether.o
> emulate/internet.o emulate/ping_responder.o emulate/arp.o emulate/icmp.o
> emulate/net-pcap.o emulate/nat.o emulate/iptap.o emulate/tcptap.o emulate/inet.o
> -L/home/anc/nsim/ns/ns-allinone-2.1b8a/tclcl-1.0b11 -ltclcl
> -L/home/anc/nsim/ns/ns-allinone-2.1b8a/otcl-1.0a7 -lotcl -L/home/anc/nsim/ns/ns-allinone-2.1b8a/lib
> -ltk8.3 -L/home/anc/nsim/ns/ns-allinone-2.1b8a/lib -ltcl8.3 -L/usr/X11R6/lib -lXext
> -lX11 -lnsl
> -ldl -lm
> emulate/net-pcap.o: In function `PcapNetwork::close(void)':
> emulate/net-pcap.o(.text+0x92): undefined reference to `pcap_close'
> emulate/net-pcap.o: In function `PcapNetwork::filter(char const *)':
> emulate/net-pcap.o(.text+0xdf): undefined reference to `pcap_compile'
> emulate/net-pcap.o(.text+0x103): undefined reference to `pcap_setfilter'
> emulate/net-pcap.o: In function `PcapNetwork::stat_pkts(void)':
> emulate/net-pcap.o(.text+0x15c): undefined reference to `pcap_stats'
> emulate/net-pcap.o: In function `PcapNetwork::stat_pdrops(void)':
> emulate/net-pcap.o(.text+0x19c): undefined reference to `pcap_stats'
> emulate/net-pcap.o: In function `PcapNetwork::recv(unsigned char *, int,
> sockaddr &, double &)':
> emulate/net-pcap.o(.text+0x226): undefined reference to `pcap_dispatch'
> emulate/net-pcap.o(.text+0x23f): undefined reference to `pcap_strerror'
> emulate/net-pcap.o: In function `PcapLiveNetwork::open(int, char const *)':
> emulate/net-pcap.o(.text+0x528): undefined reference to `pcap_open_live'
> emulate/net-pcap.o(.text+0x56b): undefined reference to `pcap_datalink'
> emulate/net-pcap.o(.text+0x580): undefined reference to `pcap_fileno'
> emulate/net-pcap.o(.text+0x678): undefined reference to `pcap_lookupnet'
> emulate/net-pcap.o: In function `PcapLiveNetwork::autodevname(void)':
> emulate/net-pcap.o(.text+0x723): undefined reference to `pcap_lookupdev'
> emulate/net-pcap.o: In function `PcapFileNetwork::open(int, char const *)':
> emulate/net-pcap.o(.text+0xad1): undefined reference to `pcap_open_offline'
> emulate/net-pcap.o(.text+0xaf1): undefined reference to `pcap_file'
> collect2: ld returned 1 exit status
> make: *** [nse] Error 1
>
> It seems there is a problem with libpcap. I tried libpcap version 0.4
> and version 0.6.2.
>
> I've installed ns-allinone 2.1b8a and replaced the ns-2 with the current
> snapshot available.
>
> Thanks a lot in advance, greetings from beautiful Austria
>
> Martin Joerg
>
> --
> GMX - Die Kommunikationsplattform im Internet.
> http://www.gmx.net
>