[mrtg] Help need

Tatsuya Kawasaki tatsuya at kivex.com
Sat Nov 13 01:10:15 MET 1999

Hi mrtg users.

I have a question.

I am trying to compile this mrtg vver 2.8.8
This uses libpng.  
According to the web page, I am supposed to compile
zlib and libpng and gdlib statically.

Well, there is problem.
zlib-1.1.3, I could compile statically.
libpng-1.0.5 I could compile statically.
But when I tried to compile gdlib, I could not.

Here are errors I get.

ranlib libgd.a
gcc -I/usr/local/include -I/usr/include/X11 -I/usr/X11R6/include/X11
-static -O   -c pngtogd.c -o pngtogd.o
gcc -I/usr/local/include -I/usr/include/X11 -I/usr/X11R6/include/X11
-static pngtogd.o -o pngtogd       -L. -L/usr/local/lib -L/usr/lib/X11
-L/usr/X11R6/lib -lm -lgd -lpng -lz 
Undefined                       first referenced
 symbol                             in file
pow                                 /usr/local/lib/libpng.a(pngrtran.o)
floor                               ./libgd.a(gd.o)
ld: fatal: Symbol referencing errors. No output written to pngtogd
make: *** [pngtogd] Error 1

but when I use non static compile, it works just fine.
but mrtg says.

 thongvilay:/home/skel/mrtg 130 >mrtg mrtg.cfg
ld.so.1: ./rateup: fatal: libpng.so.2: open failed: No such file or

PROBLEM: rateup died from Signal 9
 with Exit Value 0 when doing router 'fe0-0-gw1-bet.bet.kivex.net'
 code was 9, retcode was . If this happens all the time,
 you should probably investigate the cause. :-)

-rw-r--r--   1 bin      bin       875720 Feb  3  1998 libexpect5.25.a
-rw-r--r--   1 root     other       4244 Aug 17 11:38 libfl.a
-rw-r--r--   1 root     other     181248 Nov 11 21:49 libgd.a
-rw-r--r--   1 bin      bin       234832 Apr  2  1998 libiberty.a
-rw-rw-r--   1 root     other     171856 Nov 11 21:39 libpng.a
lrwxrwxrwx   1 root     other         11 Nov 11 21:39 libpng.so ->
lrwxrwxrwx   1 root     other         17 Nov 11 21:39 libpng.so.2 ->
-rwxr-xr-x   1 root     other     200468 Nov 11 21:39 libpng.so.
-rw-r--r--   1 bin      bin      1923904 Apr  2  1998 libstdc++.a
-rwxr-xr-x   1 root     root      686072 Sep 26  1998 libtcl8.0.a
-rwxr-xr-x   1 root     root      939784 Sep 27  1998 libtk8.0.a
-rwxr-xr-x   1 root     other      70488 Nov 11 21:39 libz.a

any suggestions?


P.S. by the way, did anyone notice sometimes, confirmation letter, after
send a request subscription, does not come back?

Tatsuya Kawasaki   
Allegiance Telecom
Unlock the Power of the Internet
Phone 301.215.6777  Fax 301.215.5991
Affiliation given for identification not representation

* To unsubscribe from the mrtg mailing list, send a message with the
  subject: unsubscribe to mrtg-request at list.ee.ethz.ch
* The mailing list archive is at http://www.ee.ethz.ch/~slist/mrtg

More information about the mrtg mailing list