FWIW, on the ./configure settings, internally, the root value is copied to
the lib and include variables, so if you specify both lib and include, you
don't need
root.  --with-rrd-lib=/usr/local/rrdtool/lib --with-rrd-include=/usr/local/r
rdtool/src would suffice.  But that's irrelevant...

Search the back traffic for 'Warning: size of symbol changed' - it's
indicative of compiling against the static (.a) version of libpng but
linking against and installed, shared version (.so) or another type of
version mismatch.

If you have libpng installed, the script buildAll.sh is supposed to delete
the bogus version...

if test -d /usr &&
   test -d /usr/include &&
   test -f /usr/include/png.h &&
   test -d /usr/lib &&
   test -f /usr/lib/libpng.so.2.1.0.14; then
    echo ""
    echo "Note:  You have libpng 1.0.14 installed (typical with RedHat 7.x)"
    echo "       Removing libpng 1.2.4 from the ntop source tree to prevent
conflicts"
    echo ""
    echo ""
    remove_libpng124=yes
    rm -rf gd-1.8.3/libpng-1.2.4
else
    remove_libpng124=no
fi


Maybe you've got someother version of libpng installed?

locate libpng

and post the results...


-----Burton



-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of
Ian Farr
Sent: Wednesday, May 28, 2003 2:40 PM
To: Ntop-Dev (E-mail)
Subject: [Ntop-dev] Building NTOP on redhat 8 issues


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-d
eclarations -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.9
4c/gd-1.8.3 -lgd -L/d0/source/ntop-2.2/gdchart0.94c/gd-1.8.3/libpng-1.2.4 -l
png -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/lib
png-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/sr
c/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

_______________________________________________
Ntop-dev mailing list
[EMAIL PROTECTED]
http://listgateway.unipi.it/mailman/listinfo/ntop-dev

Reply via email to