Subject: Problem making mrtg from pkgsrc
To: None <netbsd-help@netbsd.org>
From: Mike Cheponis <mac@Wireless.Com>
List: netbsd-help
Date: 07/21/2000 11:44:59
NetBSD 1.4.1 (MY) #0: Sun Oct 17 15:29:46 PDT 1999
    mac@NetBSD:/usr/src/sys/arch/i386/compile/MY
cpu0: family 4 model 3 step 5
cpu0: Intel 486DX2 (486-class)
real mem  = 33161216
avail mem = 28766208
using 430 buffers containing 1761280 bytes of memory


I become root and cd to /usr/pkgsrc/net/mrtg and proceed:

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
mrtg# make
===>  Validating dependencies for mrtg-2.7.4b
>> Checksum OK for mrtg-2.7.4b.tar.gz.
===>  Extracting for mrtg-2.7.4b
===>  mrtg-2.7.4b depends on package: gd-1.3p1
===>  Verifying install for ../../graphics/gd
===>  Returning to build of mrtg-2.7.4b
===>  mrtg-2.7.4b depends on installed package: perl-5.00404 - perl-5.00404  found
===>  Patching for mrtg-2.7.4b
===>  Applying NetBSD patches for mrtg-2.7.4b
===>  Configuring for mrtg-2.7.4b
creating cache ./config.cache
checking for gcc... cc
checking whether the C compiler (cc -O2  -Wl,-R/usr/pkg/lib -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -L/usr/pkg/lib) works... yes
checking whether the C compiler (cc -O2  -Wl,-R/usr/pkg/lib -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -L/usr/pkg/lib) is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether cc accepts -g... yes
checking how to run the C preprocessor... cc -E
checking whether make sets ${MAKE}... yes
checking for perl... /usr/pkg/bin/perl
checking for acos in -lm... yes
checking for gdImageCreate in -lgd... yes
checking the weather... (cached) its fine
checking for working const... yes
checking whether time.h and sys/time.h may both be included... yes
checking whether struct tm is in sys/time.h or time.h... time.h
checking if we should use HP compiler options... no
checking for strftime... yes
checking for ANSI C header files... yes
checking for ctype.h... yes
checking for math.h... yes
checking for time.h... yes
checking for stdio.h... yes
checking for limits.h... yes
checking for string.h... yes
checking for stdlib.h... yes
checking for unistd.h... yes
updating cache ./config.cache
creating ./config.status
creating Makefile
ordering CD from http://cdnow.com/gift/oetiker@ee.ethz.ch... just kidding ;-)

===>  Building for mrtg-2.7.4b
cc -O2 -I../gd1.3 -I/usr/pkg/include/gd src/rateup.c -Wl,-R/usr/pkg/lib -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -L/usr/pkg/lib -L../gd1.3 -L/usr/pkg/lib  -lgd -lm -o run/rateup
src/rateup.c:58: gd.h: No such file or directory
src/rateup.c:59: gdfonts.h: No such file or directory
*** Error code 1

Stop.
*** Error code 1

Stop.
*** Error code 1

Stop.
*** Error code 1

Stop.
mrtg# 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

What happened?  What is "gd.h" and "gdfonts.h" and why are they not found
and, I guess more importantly, why aren't there dependencies on them?

Thanks!

-Mike