Subject: Weird problem building some packages
To: None <current-users@netbsd.org>
From: Tom Ivar Helbekkmo <tih@norway.eu.net>
List: current-users
Date: 12/13/2002 08:48:06
I'm seeing a strange situation on one of my i386-current systems,
which affects some package builds. It's so far occured during the
build of mozilla and rpm, and I'll give an example from the latter:
gmake[1]: Entering directory `/usr/local/pkgsrc/misc/rpm/work/rpm-2.5.4/misc'
cc -I/usr/local/pkgsrc/misc/rpm/work/rpm-2.5.4 -I/usr/local/pkgsrc/misc/rpm/work/rpm-2.5.4 -O2 -pipe -I/usr/local/include -DHAVE_CONFIG_H -I/usr/local/pkgsrc/misc/rpm/work/rpm-2.5.4/lib -I/usr/local/pkgsrc/misc/rpm/work/rpm-2.5.4/misc -I/usr/local/include -c -o getmntent.o getmntent.c
In file included from getmntent.c:1:
miscfn.h:4: config.h: No such file or directory
gmake[1]: *** [getmntent.o] Error 1
gmake[1]: Leaving directory `/usr/local/pkgsrc/misc/rpm/work/rpm-2.5.4/misc'
It's not finding config.h, but look:
athene# ls -l /usr/local/pkgsrc/misc/rpm/work/rpm-2.5.4/config.h
-rw-r--r-- 1 root wheel 4485 Dec 13 08:39 /usr/local/pkgsrc/misc/rpm/work/rpm-2.5.4/config.h
Note the "-I/usr/local/pkgsrc/misc/rpm/work/rpm-2.5.4" in the command
line. In fact, if I chdir to the directory and run the cc command
manually, just the way it's output by gmake above, it works -- the
compile completes without error.
Any ideas?
-tih
--
Tom Ivar Helbekkmo, Senior System Administrator, EUnet Norway
www.eunet.no T: +47-22092958 M: +47-93013940 F: +47-22092901