[mrtg] install problem on solaris2.6 with cc

youdj youdj at shinbiro.com
Wed Nov 17 17:35:32 MET 1999


I am trying to install MRTG 2.8.9 on solaris 2.6.
using cc instead of gcc.
I successfully compiled zlib, libpng, gd-1.7.3 but 
I found libgd.a installed on my solaris box.
configure mrtg as follow;

------------------------------
loading cache ./config.cache
checking for gcc... (cached) cc
checking whether the C compiler (cc  ) works... yes
checking whether the C compiler (cc  ) is a cross-compiler... no
checking whether we are using GNU C... (cached) no
checking whether cc accepts -g... (cached) yes
checking how to run the C preprocessor... (cached) cc -E
checking whether make sets ${MAKE}... (cached) yes
checking for perl... (cached) /usr/local/bin/perl
checking for acos in -lm... (cached) yes
checking for gdImageGif in -lgd... (cached) no
checking for gdImagePng in -lgd... (cached) yes
checking the weather... (cached) its fine
checking if we can use GCC-specific compiler options... (cached) no
creating ./config.status
creating Makefile

-------------------

Also, error when compile mrtg.
my error was as follow:
------------------------------
#make
LD_RUN_PATH=../libpng:../zlib:../gd-1.7.3 cc  src/rateup.c -L../gd-1.7.3 -lgd -L../zlib -L../libpng -lm -lpng -lz -o run/rateup
"src/rateup.c", line 60: cannot find include file: 
"src/rateup.c", line 61: cannot find include file: 
"src/rateup.c", line 242: undefined symbol: gdImagePtr
"src/rateup.c", line 242: syntax error before or at: graph
"src/rateup.c", line 541: undefined symbol: graph
"src/rateup.c", line 542: undefined symbol: brush_out
"src/rateup.c", line 543: undefined symbol: brush_outm
"src/rateup.c", line 544: undefined symbol: brush_outp
"src/rateup.c", line 547: undefined symbol: i_blank
"src/rateup.c", line 548: undefined symbol: i_light
"src/rateup.c", line 549: undefined symbol: i_dark
"src/rateup.c", line 556: undefined symbol: i_major
"src/rateup.c", line 557: undefined symbol: i_in
"src/rateup.c", line 558: undefined symbol: i_out
"src/rateup.c", line 559: undefined symbol: i_grid
"src/rateup.c", line 560: undefined symbol: i_inm
"src/rateup.c", line 561: undefined symbol: i_outm
"src/rateup.c", line 562: undefined symbol: i_outp
"src/rateup.c", line 563: undefined symbol: i_outpg
"src/rateup.c", line 597: undefined symbol: gdBrushed
"src/rateup.c", line 605: undefined symbol: gdBrushed
"src/rateup.c", line 618: undefined symbol: styleDotted
"src/rateup.c", line 618: cannot dereference non-pointer type
"src/rateup.c", line 619: cannot dereference non-pointer type
"src/rateup.c", line 619: undefined symbol: gdTransparent
"src/rateup.c", line 620: cannot dereference non-pointer type
"src/rateup.c", line 628: undefined symbol: gdFontSmall
"src/rateup.c", line 628: undefined struct/union member: w
"src/rateup.c", line 628: left operand of "->" must be pointer to struct/union
"src/rateup.c", line 629: left operand of "->" must be pointer to struct/union
"src/rateup.c", line 632: left operand of "->" must be pointer to struct/union
"src/rateup.c", line 644: undefined symbol: gdStyled
"src/rateup.c", line 651: undefined struct/union member: h
"src/rateup.c", line 651: left operand of "->" must be pointer to struct/union
"src/rateup.c", line 657: left operand of "->" must be pointer to struct/union
"src/rateup.c", line 666: undefined symbol: gdStyled
"src/rateup.c", line 671: left operand of "->" must be pointer to struct/union
"src/rateup.c", line 683: cannot dereference non-pointer type
"src/rateup.c", line 687: undefined symbol: gdStyled
"src/rateup.c", line 693: cannot dereference non-pointer type
"src/rateup.c", line 697: undefined symbol: gdStyled
"src/rateup.c", line 721: cannot recover from previous errors
cc: acomp failed for src/rateup.c
*** Error code 2
make: Fatal error: Command failed for target `run/rateup'
----------
i don't know what was wrong. any idea? thanks in advance.

---------------------------------------------------------------


 

--
* 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