[mrtg] Re: Rateup problem --- (more complete)
Paulo Valverde Costa
pcosta at ccom.uminho.pt
Thu Jan 10 12:01:48 MET 2002
Hello,
i installed the zlib and then the libpng, but in the compilation phase of
the libpng in the end there are a warning:
# make
gcc -I/usr/local/include -Wall -O3 -c png.c
gcc -I/usr/local/include -Wall -O3 -c pngset.c
gcc -I/usr/local/include -Wall -O3 -c pngget.c
gcc -I/usr/local/include -Wall -O3 -c pngrutil.c
gcc -I/usr/local/include -Wall -O3 -c pngtrans.c
gcc -I/usr/local/include -Wall -O3 -c pngwutil.c
gcc -I/usr/local/include -Wall -O3 -c pngread.c
gcc -I/usr/local/include -Wall -O3 -c pngrio.c
gcc -I/usr/local/include -Wall -O3 -c pngwio.c
gcc -I/usr/local/include -Wall -O3 -c pngwrite.c
gcc -I/usr/local/include -Wall -O3 -c pngrtran.c
gcc -I/usr/local/include -Wall -O3 -c pngwtran.c
gcc -I/usr/local/include -Wall -O3 -c pngmem.c
gcc -I/usr/local/include -Wall -O3 -c pngerror.c
gcc -I/usr/local/include -Wall -O3 -c pngpread.c
ar rc libpng.a png.o pngset.o pngget.o pngrutil.o pngtrans.o pngwutil.o
pngread.o pngrio.o pngwio.o pngwrite.o pngrtran.o pngwtran.o pngmem.o
pngerror.o pngpread.o
echo libpng.a
libpng.a
gcc -c -I/usr/local/include -Wall -O3 -fPIC -o png.pic.o png.c
gcc -c -I/usr/local/include -Wall -O3 -fPIC -o pngset.pic.o pngset.c
gcc -c -I/usr/local/include -Wall -O3 -fPIC -o pngget.pic.o pngget.c
gcc -c -I/usr/local/include -Wall -O3 -fPIC -o pngrutil.pic.o pngrutil.c
gcc -c -I/usr/local/include -Wall -O3 -fPIC -o pngtrans.pic.o pngtrans.c
gcc -c -I/usr/local/include -Wall -O3 -fPIC -o pngwutil.pic.o pngwutil.c
gcc -c -I/usr/local/include -Wall -O3 -fPIC -o pngread.pic.o pngread.c
gcc -c -I/usr/local/include -Wall -O3 -fPIC -o pngrio.pic.o pngrio.c
gcc -c -I/usr/local/include -Wall -O3 -fPIC -o pngwio.pic.o pngwio.c
gcc -c -I/usr/local/include -Wall -O3 -fPIC -o pngwrite.pic.o pngwrite.c
gcc -c -I/usr/local/include -Wall -O3 -fPIC -o pngrtran.pic.o pngrtran.c
gcc -c -I/usr/local/include -Wall -O3 -fPIC -o pngwtran.pic.o pngwtran.c
gcc -c -I/usr/local/include -Wall -O3 -fPIC -o pngmem.pic.o pngmem.c
gcc -c -I/usr/local/include -Wall -O3 -fPIC -o pngerror.pic.o pngerror.c
gcc -c -I/usr/local/include -Wall -O3 -fPIC -o pngpread.pic.o pngpread.c
## WARNING:
## The commands "CC" and "LD" must NOT refer to /usr/ucb/cc
## and /usr/ucb/ld. If they do, you need to adjust your PATH
## environment variable to put /usr/ccs/bin ahead of /usr/ucb.
## The environment variable LD_LIBRARY_PATH should not be set
## at all. If it is, things are likely to break because of
## the libucb dependency that is created.
ld -G -L/usr/local/lib -R/usr/local/lib -h libpng.so.2 \
-o libpng.so.2.1.0.12 png.pic.o pngset.pic.o pngget.pic.o pngrutil.pic.o
pngtrans.pic.o pngwutil.pic.o pngread.pic.o pngrio.pic.o pngwio.pic.o
pngwrite.pic.o pngrtran.pic.o pngwtran.pic.o pngmem.pic.o pngerror.pic.o
pngpread.pic.o -lz
ln -f -s libpng.so.2.1.0.12 libpng.so.2
ln -f -s libpng.so.2 libpng.so
gcc -I/usr/local/include -Wall -O3 -c pngtest.c
gcc -o pngtest -I/usr/local/include -Wall -O3
pngtest.o -L. -R. -L/usr/local/lib -R/usr/local/lib -lpng -lz -lm
ld: warning: file libucb.so.1: required by ./libpng.so, not found
probably this is my problem.
I have searched for the libucb.so.1, in my system and i find it in the
/usr/ucblib/libucb.so.1
How can i resolve the problem?
regards,
Paulo
----- Original Message -----
From: "Andreas Nolte" <anolte at ccietac.de>
To: "Paulo Valverde Costa" <pcosta at ccom.uminho.pt>
Cc: <mrtg at list.ee.ethz.ch>
Sent: Wednesday, January 09, 2002 4:33 PM
Subject: Re: [mrtg] Rateup problem --- (more complete)
>
> Hi,
>
> it seemed to me that you don't have the libpng installed. You can get the
library from http://www.libpng.org/pub/png/libpng.html and the zlib from
http://www.zlib.org.
>
> First install the zlib and then the libpng. Don't forget to upgrade your
path for the shared libraries. On Linux the command is "ldconfig". I don't
know the command on Solaris.
>
> Regards
>
> Andreas
>
>
> On Wed, 09 Jan 2002 16:17:54 +0000
> Paulo Valverde Costa <pcosta at ccom.uminho.pt> wrote:
>
> > Hello,
> >
> > i installed the MRTG in a Solaris 8 System, aparently OK... but when
mrtg runs then he devolve the error:
> >
> >
> > SNMP Error:
> > no response received
> > SNMPv1_Session (remote host: "192.168.250.222" [192.168.250.222].161)
> > community: "xxxxx"
> > request ID: 949627446
> > PDU bufsize: 8000 bytes
> > timeout: 2s
> > retries: 5
> > backoff: 1)
> > at /usr/local/mrtg-2/bin/../lib/mrtg2/SNMP_util.pm line 450
> > SNMPGET Problem for 1.3.6.1.4.1.9.2.1.8.0 1.3.6.1.4.1.9.2.1.8.0
sysUptime sysNam
> > e on xxxxx at 192.168.250.222
> > at /usr/local/mrtg-2/bin/mrtg line 1485
> > WARNING: Expected a number but got ''
> > WARNING: Expected a number but got ''
> > ld.so.1: /usr/local/mrtg-2/bin/rateup: fatal: libpng.so.3: open failed:
No such
> > file or directory
> > WARNING: rateup died from Signal 9
> > with Exit Value 0 when doing router '192.168.250.222_temp'
> > Signal was 9, Returncode was 0
> > ld.so.1: /usr/local/mrtg-2/bin/rateup: fatal: libpng.so.3: open failed:
No such
> > file or directory
> > WARNING: rateup died from Signal 9
> > with Exit Value 0 when doing router '192.168.250.222_cpu'
> > Signal was 9, Returncode was 0
> > ld.so.1: /usr/local/mrtg-2/bin/rateup: fatal: libpng.so.3: open failed:
No such
> > file or directory
> > WARNING: rateup died from Signal 9
> > with Exit Value 0 when doing router '192.168.250.222_mem'
> >
> > --------------------------------
> > and
> >
> > From mrtg Wed Jan 9 16:05:04 2002
> > Date: Wed, 9 Jan 2002 16:05:04 GMT
> > From: MRTG Home <mrtg>
> > Message-Id: <200201091605.g09G54D15237 at netwatcher.ccom.uminho.pt>
> > To: mrtg
> > Subject: Output from "cron" command
> > Content-Length: 365
> >
> > Your "cron" job on netwatcher
> > /usr/local/mrtg-2/bin/mrtg
/export/home/mrtg/mrtgconfig/ls1010-ct-Jul2000.cfg
> >
> > produced the following output:
> >
> > ld.so.1: /usr/local/mrtg-2/bin/rateup: fatal: libpng.so.3: open failed:
No such file or directory
> > WARNING: rateup died from Signal 9
> > with Exit Value 0 when doing router '192.168.250.221.15'
> > Signal was 9, Returncode was 0
> >
> >
> > -----------------------------
> >
> > I have instaled the packages gd-1.8.3-sol8-sparc-local.gz,
zlib-1.1.3-sol8-sparc-local.gz, libpng-1.2.0-sol8-sparc-local.gz, that i get
from the http://www.sunfreeware.com/.
> >
> > Someone help me?
> >
> > TIA,
> > Paulo
> >
> >
> >
> > -------------------------------------------------------------------
> > Paulo J. Valverde V. Costa
> > Centro de Comunicações - Campus de Gualtar - Universidade do Minho
> > 4710-057 Braga, PORTUGAL
> > Tel.: + 351 253 604023; Fax: + 351 253 604021
> > e-mail: pcosta at ccom.uminho.pt
> > -------------------------------------------------------------------
> >
> >
> > --
> > Unsubscribe mailto:mrtg-request at list.ee.ethz.ch?subject=unsubscribe
> > Archive http://www.ee.ethz.ch/~slist/mrtg
> > FAQ http://faq.mrtg.org Homepage http://www.mrtg.org
> > WebAdmin http://www.ee.ethz.ch/~slist/lsg2.cgi
> >
>
>
> --
> ******************
>
> Andreas Nolte
> Email: anolte at ccietac.de
>
>
--
Unsubscribe mailto:mrtg-request at list.ee.ethz.ch?subject=unsubscribe
Archive http://www.ee.ethz.ch/~slist/mrtg
FAQ http://faq.mrtg.org Homepage http://www.mrtg.org
WebAdmin http://www.ee.ethz.ch/~slist/lsg2.cgi
More information about the mrtg
mailing list