Subject: Re: ntop2
To: None <tech-pkg@netbsd.org>
From: Bernd Ernesti <netbsd@lists.veego.de>
List: tech-pkg
Date: 08/02/2002 08:38:05
On Tue, Jul 30, 2002 at 11:08:27AM -0400, Ciarcinski, Adam (ISS Brussels) wrote:
> Hi,
> 
> Does anybody have net/ntop2 working?
> For me it:
> 1. does not compile - I have to add --disable-intop

I guess you got this error:

/bin/sh ../libtool --mode=link cc  -g -I/pkgsrc/net/ntop2/work.i386/.buildlink/include -O2 -pipe -L/pkgsrc/net/ntop2/work.i386/.buildlink/lib  -Wl,-R/usr/pkg/lib -o intop  argv.o command.o getopt.o gnuline.o prompt.o intop.o init.o open.o close.o filter.o pcapmore.o sniff.o uptime.o status.o lsdev.o nettable.o info.o swap.o hosts.o arp.o nbt.o top.o bind.o hash.o dump.o ../libntop.la -lreadline  -lncurses -lpthread -lresolv -L/pkgsrc/net/ntop2/work.i386/.buildlink/lib -lintl  -lcrypt -lm -lz -lssl -lcrypto
mkdir .libs
cc -g -I/pkgsrc/net/ntop2/work.i386/.buildlink/include -O2 -pipe -Wl,-R/usr/pkg/lib -o .libs/intop argv.o command.o getopt.o gnuline.o prompt.o intop.o init.o open.o close.o filter.o pcapmore.o sniff.o uptime.o status.o lsdev.o nettable.o info.o swap.o hosts.o arp.o nbt.o top.o bind.o hash.o dump.o  -L/pkgsrc/net/ntop2/work.i386/.buildlink/lib ../.libs/libntop.so -lpcap -lgdbm -lreadline -lncurses -lpthread -lresolv -lintl -lcrypt -lm -lz -lssl -lcrypto -Wl,--rpath -Wl,/usr/pkg/lib
gnuline.o: In function `history':
/pkgsrc/net/ntop2/work.i386/ntop/intop/gnuline.c:141: undefined reference to `history_list'

Hmm, I thought that this maybe because I don't have ncurses installed,
but the ncurses doesn't have this function so it must be a different library.

Ah, there is a libhistory library which has that function, but there is no -lhistory
while linking intop.

But neither adding a -lhistory nor /usr/pkg/lib/libhistory.a to the linking command
fix the error. I'm runing out of ideas now.

Bernd