ntop

Simon Barner barner at in.tum.de
Thu Apr 24 17:14:20 PDT 2003


Jonathan Douglas schrieb am Thu, Apr 24, 2003 at 07:37:17pm -0400:
> Can't compile ntop
> 
> cjhost# cd /usr/ports/net/ntop
> cjhost# ls
> Makefile        distinfo        files           pkg-descr       pkg-message     pkg-plist       work
> cjhost# make && make install
> ===>  Building for ntop-2.0.99.r2_2
> gmake  all-recursive
> gmake[1]: Entering directory `/usr/ports/net/ntop/work/RC2/ntop'
> Making all in .
> gmake[2]: Entering directory `/usr/ports/net/ntop/work/RC2/ntop'
> /bin/sh ./libtool --mode=link cc  -g -O -pipe   -o ntop  main.o admin.o libntopreport.la libntop.la -lc_r   -lcrypt -lm -lwrap -lz -L/usr/local/lib -lgdc -lgd -lpng -lz -lssl -lcrypto
> cc -g -O -pipe -o .libs/ntop main.o admin.o .libs/libntopreport.so -lcrypt -lm -lwrap -lz -L/usr/local/lib -lgdc -lgd -lpng -lz -lssl -lcrypto -lc_r -lcrypt -lm -lwrap -lz -lgdc -lgd -lpng -lz -lssl -lcrypto .libs/libntop.so -lpcap -lgdbm -lc_r -lcrypt -lm -lwrap -lz -lgdc -lgd -lpng -lz -lssl -lcrypto -lc_r -lcrypt -lm -lwrap -lz -L/usr/local/lib -lgdc -lgd -lpng -lz -lssl -lcrypto  -Wl,--rpath -Wl,/usr/local/lib
> /usr/libexec/elf/ld: cannot find -lgdc
> gmake[2]: *** [ntop] Error 1
> gmake[2]: Leaving directory `/usr/ports/net/ntop/work/RC2/ntop'
> gmake[1]: *** [all-recursive] Error 1
> gmake[1]: Leaving directory `/usr/ports/net/ntop/work/RC2/ntop'
> gmake: *** [all-recursive-am] Error 2
> *** Error code 2

It seems that it can't find libgdc, which is in ports/graphics/gdchart.
In my version of the ports collection, ntop already has a dependency to this
lib, i.e. the port should install it automatically:

cd /usr/ports/net/ntop
make depends

===>   ntop-2.0.99.r2_2 depends on shared library: gdbm.3 - found
===>   ntop-2.0.99.r2_2 depends on file: /usr/local/lib/libgdc.a - not found
===>    Verifying install for /usr/local/lib/libgdc.a in /usr/ports/graphics/gdchart
[...]

So, either updating your ports collection, or installing that lib manually
should solve your problem.

HTH,
 Simon
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: Digital signature
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20030425/fe726feb/attachment.bin


More information about the freebsd-questions mailing list