Mailing List Archive

Compile problems - NTOP 2 on SuSE 7.1
Hi there

I'm trying to compile NTOP 2 - I've managed to solve most of the compile
errors, but I'm stumped on this one - can anyone help?

/bin/sh ./libtool --mode=link gcc -g -O2 -pipe -I/usr/local/include
-I/usr/local/src/gdchart0.94c -o ntop main.o libntopreport.la libntop.la
-lpthread -lresolv -lnsl -ldl -lcrypt -lm -L/usr/local/src/gdchart0.94c
-lgdchart -L/usr/local/src/gdchart0.94c/gd-1.8.3 -lgd
-L/usr/local/src/gdchart0.94c/gd-1.8.3/libpng-1.0.8 -lpng
-L/usr/local/src/gdchart0.94c/zlib-1.1.3 -lz -L/usr/local/lib -L/usr/lib

gcc -g -O2 -pipe -I/usr/local/include -I/usr/local/src/gdchart0.94c -o
.libs/ntop main.o .libs/libntopreport.so -lcrypt -lm
-L/usr/local/src/gdchart0.94c -lgdchart
-L/usr/local/src/gdchart0.94c/gd-1.8.3 -lgd
-L/usr/local/src/gdchart0.94c/gd-1.8.3/libpng-1.0.8 -lpng
-L/usr/local/src/gdchart0.94c/zlib-1.1.3 -lz -lpthread -lresolv -lnsl -ldl
-lcrypt -lm -lgdchart -lgd -lpng -lz -L/usr/local/lib -L/usr/lib
.libs/libntop.so -lpcap -lgdbm -lpthread -lresolv -lnsl -ldl -lcrypt -lm
-lgdchart -lgd -lpng -lz -lpthread -lresolv -lnsl -ldl -lcrypt -lm
-L/usr/local/src/gdchart0.94c -lgdchart
-L/usr/local/src/gdchart0.94c/gd-1.8.3 -lgd
-L/usr/local/src/gdchart0.94c/gd-1.8.3/libpng-1.0.8 -lpng
-L/usr/local/src/gdchart0.94c/zlib-1.1.3 -lz -L/usr/local/lib -L/usr/lib

/usr/local/src/gdchart0.94c/libgdchart.a(gdc_pie.o): In function
`GDC_out_pie':
/usr/local/src/gdchart0.94c/gdc_pie.c:216: undefined reference to
`GDCPIE_percent_fmt'
/usr/local/src/gdchart0.94c/gdc_pie.c:216: undefined reference to
`GDCPIE_percent_fmt'
/usr/local/src/gdchart0.94c/gdc_pie.c:537: undefined reference to
`GDCPIE_percent_fmt'
/usr/local/src/gdchart0.94c/gdc_pie.c:537: undefined reference to
`GDCPIE_percent_fmt'
/usr/local/src/gdchart0.94c/gdc_pie.c:622: undefined reference to
`GDC_image_type'
/usr/local/src/gdchart0.94c/libgdchart.a(gdchart.o): In function
`GDC_out_graph':
/usr/local/src/gdchart0.94c/gdchart.c:505: undefined reference to
`GDC_generate_img'
/usr/local/src/gdchart0.94c/gdchart.c:2139: undefined reference to
`GDC_generate_img'
/usr/local/src/gdchart0.94c/gdchart.c:2142: undefined reference to
`GDC_image_type'
/usr/local/src/gdchart0.94c/libgdchart.a(gdc.o): In function `out_err':
/usr/local/src/gdchart0.94c/gdc.c:169: undefined reference to
`GDC_generate_img'
/usr/local/src/gdchart0.94c/gdc.c:172: undefined reference to
`GDC_image_type'
collect2: ld returned 1 exit status
make: *** [ntop] Error 1


The definitions seem to be there, but I'm not a guru, so I'm not terribly
sure what I'm looking at.

I think I've installed all the dependent packages, but don't know how to
check.

Many thanks
Richard