Hello
all,
I am getting this
make error when I am building NTop on RedHat 8:
/bin/sh ./libtool
--mode=link gcc -DLINUX -g -O2 -Wshadow -Wpointer-arith -Wmissing-prototypes
-Wmissing-declarations -Wnested-externs -fPIC -DLINUX -g -O2 -Wshadow
-Wpointer-arith -Wmissing-prototypes -Wmissing-declarations
-Wnested-externs -fPIC -o libntopreport.la -rpath
/usr/local/lib -release 2.2 -export-dynamic emitter.lo
globals-report.lo graph.lo http.lo report.lo reportUtils.lo webInterface.lo
xmldump.lo -lxml2 -lglib -lpthread -lresolv -lnsl -lm -lssl -lcrypto
-lpcap -lgdbm -ldl -lcrypt -lc -L/d0/source/ntop-2.2/gdchart0.94c/zlib-1.1.4 -lz
-L/d0/source/ntop-2.2/gdchart0.94c -lgdchart
-L/d0/source/ntop-2.2/gdchart0.94c/gd-1.8.3 -lgd
-L/d0/source/ntop-2.2/gdchart0.94c/gd-1.8.3/libpng-1.2.4 -lpng
-L/usr/local/rrdtool/lib -lrrd
rm -fr .libs/libntopreport.la .libs/libntopreport.* .libs/libntopreport-2.2.*
gcc -shared emitter.lo globals-report.lo graph.lo http.lo report.lo reportUtils.lo webInterface.lo xmldump.lo -Wl,--whole-archive /usr/local/rrdtool-1.0.42/lib/librrd.a -Wl,--no-whole-archive /usr/lib/libxml2.so /usr/lib/libglib.so -lpthread -lresolv -lnsl -lm -lssl -lcrypto -lpcap /usr/lib/libgdbm.so -ldl -lcrypt -lc -L/d0/source/ntop-2.2/gdchart0.94c/zlib-1.1.4 -lz -L/d0/source/ntop-2.2/gdchart0.94c -lgdchart -L/d0/source/ntop-2.2/gdchart0.94c/gd-1.8.3 -lgd -L/d0/source/ntop-2.2/gdchart0.94c/gd-1.8.3/libpng-1.2.4 -lpng -L/usr/local/rrdtool/lib /usr/local/rrdtool-1.0.42/lib/librrd.a -Wl,-soname -Wl,libntopreport-2.2.so -o .libs/libntopreport-2.2.so
/d0/source/ntop-2.2/gdchart0.94c/gd-1.8.3/libgd.a(gd_png.o): In function `gdImagePng':
gd_png.o(.text+0x86e): multiple definition of `gdImagePng'
/usr/local/rrdtool-1.0.42/lib/librrd.a(gdpng.o):/d0/source/rrdtool-1.0.42/src/gdpng.c:18: first defined here
/usr/bin/ld: Warning: size of symbol `gdImagePng' changed from 389 to 55 in /d0/source/ntop-2.2/gdchart0.94c/gd-1.8.3/libgd.a(gd_png.o)
/d0/source/ntop-2.2/gdchart0.94c/gd-1.8.3/libgd.a(gd_io.o): In function `gdPutWord':
gd_io.o(.text+0x56): multiple definition of `gdPutWord'
/usr/local/rrdtool-1.0.42/lib/librrd.a(gd.o):/d0/source/rrdtool-1.0.42/gd1.3/gd.c:1737: first defined here
/usr/bin/ld: Warning: size of symbol `gdPutWord' changed from 56 to 38 in /d0/source/ntop-2.2/gdchart0.94c/gd-1.8.3/libgd.a(gd_io.o)
/d0/source/ntop-2.2/gdchart0.94c/gd-1.8.3/libgd.a(gd_io.o): In function `gdGetByte':
gd_io.o(.text+0xd4): multiple definition of `gdGetByte'
/usr/local/rrdtool-1.0.42/lib/librrd.a(gd.o):/d0/source/rrdtool-1.0.42/gd1.3/gd.c:1743: first defined here
/usr/bin/ld: Warning: size of symbol `gdGetByte' changed from 54 to 39 in /d0/source/ntop-2.2/gdchart0.94c/gd-1.8.3/libgd.a(gd_io.o)
/d0/source/ntop-2.2/gdchart0.94c/gd-1.8.3/libgd.a(gd_io.o): In function `gdGetWord':
gd_io.o(.text+0xfc): multiple definition of `gdGetWord'
/usr/local/rrdtool-1.0.42/lib/librrd.a(gd.o):/d0/source/rrdtool-1.0.42/gd1.3/gd.c:1721: first defined here
/usr/bin/ld: Warning: size of symbol `gdGetWord' changed from 84 to 70 in /d0/source/ntop-2.2/gdchart0.94c/gd-1.8.3/libgd.a(gd_io.o)
collect2: ld returned 1 exit status
make[2]: *** [libntopreport.la] Error 1
make[2]: Leaving directory `/d0/source/ntop-2.2/ntop'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/d0/source/ntop-2.2/ntop'
make: *** [all] Error 2
rm -fr .libs/libntopreport.la .libs/libntopreport.* .libs/libntopreport-2.2.*
gcc -shared emitter.lo globals-report.lo graph.lo http.lo report.lo reportUtils.lo webInterface.lo xmldump.lo -Wl,--whole-archive /usr/local/rrdtool-1.0.42/lib/librrd.a -Wl,--no-whole-archive /usr/lib/libxml2.so /usr/lib/libglib.so -lpthread -lresolv -lnsl -lm -lssl -lcrypto -lpcap /usr/lib/libgdbm.so -ldl -lcrypt -lc -L/d0/source/ntop-2.2/gdchart0.94c/zlib-1.1.4 -lz -L/d0/source/ntop-2.2/gdchart0.94c -lgdchart -L/d0/source/ntop-2.2/gdchart0.94c/gd-1.8.3 -lgd -L/d0/source/ntop-2.2/gdchart0.94c/gd-1.8.3/libpng-1.2.4 -lpng -L/usr/local/rrdtool/lib /usr/local/rrdtool-1.0.42/lib/librrd.a -Wl,-soname -Wl,libntopreport-2.2.so -o .libs/libntopreport-2.2.so
/d0/source/ntop-2.2/gdchart0.94c/gd-1.8.3/libgd.a(gd_png.o): In function `gdImagePng':
gd_png.o(.text+0x86e): multiple definition of `gdImagePng'
/usr/local/rrdtool-1.0.42/lib/librrd.a(gdpng.o):/d0/source/rrdtool-1.0.42/src/gdpng.c:18: first defined here
/usr/bin/ld: Warning: size of symbol `gdImagePng' changed from 389 to 55 in /d0/source/ntop-2.2/gdchart0.94c/gd-1.8.3/libgd.a(gd_png.o)
/d0/source/ntop-2.2/gdchart0.94c/gd-1.8.3/libgd.a(gd_io.o): In function `gdPutWord':
gd_io.o(.text+0x56): multiple definition of `gdPutWord'
/usr/local/rrdtool-1.0.42/lib/librrd.a(gd.o):/d0/source/rrdtool-1.0.42/gd1.3/gd.c:1737: first defined here
/usr/bin/ld: Warning: size of symbol `gdPutWord' changed from 56 to 38 in /d0/source/ntop-2.2/gdchart0.94c/gd-1.8.3/libgd.a(gd_io.o)
/d0/source/ntop-2.2/gdchart0.94c/gd-1.8.3/libgd.a(gd_io.o): In function `gdGetByte':
gd_io.o(.text+0xd4): multiple definition of `gdGetByte'
/usr/local/rrdtool-1.0.42/lib/librrd.a(gd.o):/d0/source/rrdtool-1.0.42/gd1.3/gd.c:1743: first defined here
/usr/bin/ld: Warning: size of symbol `gdGetByte' changed from 54 to 39 in /d0/source/ntop-2.2/gdchart0.94c/gd-1.8.3/libgd.a(gd_io.o)
/d0/source/ntop-2.2/gdchart0.94c/gd-1.8.3/libgd.a(gd_io.o): In function `gdGetWord':
gd_io.o(.text+0xfc): multiple definition of `gdGetWord'
/usr/local/rrdtool-1.0.42/lib/librrd.a(gd.o):/d0/source/rrdtool-1.0.42/gd1.3/gd.c:1721: first defined here
/usr/bin/ld: Warning: size of symbol `gdGetWord' changed from 84 to 70 in /d0/source/ntop-2.2/gdchart0.94c/gd-1.8.3/libgd.a(gd_io.o)
collect2: ld returned 1 exit status
make[2]: *** [libntopreport.la] Error 1
make[2]: Leaving directory `/d0/source/ntop-2.2/ntop'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/d0/source/ntop-2.2/ntop'
make: *** [all] Error 2
I ran the
./configure and make in all the gdchart dirs (zlib, etc..), and then ran this
configure line:
./configure
--with-rrd-root=/usr/local/rrdtool/bin --with-rrd-lib=/usr/local/rrdtool/lib
--with-rrd-include=/usr/local/rrdtool/src
Everything checked
out, and there were no warnings or errors, and so I proceeded with 'make' and
got the above.
Any help is
appreciated.
Thanks.
____________________
Ian Farr
Director of Network Infrastructure
Oceanwide.com
514-289-9090 ext 234
