Subject: Problem building libamu
To: None <current-users@netbsd.org>
From: Xavier HUMBERT <xavier@xavhome.fr.eu.org>
List: current-users
Date: 02/10/2001 12:18:44
While building the whole sourcetree, I got this error :
bash-2.04# cd usr.sbin/amd/libamu
bash-2.04# make
sh mkconf `sh
/usr/src/usr.sbin/amd/libamu/../../../sys/conf/osrelease.sh` >
config_local.h
cc -O -Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith
-Wno-uninitialized -Werror -DHAVE_CONFIG_H -I/us
r/src/usr.sbin/amd/libamu/../include
-I/usr/src/usr.sbin/amd/libamu/../../../dist/am-utils/libamu
-I/usr/src/usr.sbin/a
md/libamu/../../../dist/am-utils/include
-I/usr/src/usr.sbin/amd/libamu -DHAVE_CONFIG_H
-I/usr/src/usr.sbin/amd/libamu/.
./include
-I/usr/src/usr.sbin/amd/libamu/../../../dist/am-utils/libamu
-I/usr/src/usr.sbin/amd/libamu/../../../dist/am-
utils/include -I/usr/src/usr.sbin/amd/libamu -c -fPIC -DPIC
hasmntopt.c -o hasmntopt.so
In file included from /usr/src/usr.sbin/amd/libamu/../include/am_defs.h:763,
from hasmntopt.c:50:
/usr/include/ufs/ufs/ufsmount.h:41: redefinition of `struct ufs_args'
/usr/include/ufs/ufs/ufsmount.h:49: redefinition of `struct mfs_args'
*** Error code 1
Tried to do a "make includes" before, then retried the sequence
# make cleandir
# rm obj.*
# make cleandir
# make obj
# make depend
# make --> failed with same message
My guess is that a "include once" statement is missing in
/usr/include/ufs/ufs/ufsmount.h
#ifndef UFSMOUNT_H
etc.
And in fact it fixes the problem. Is it right ?
--
Xavier HUMBERT - Systemes et Reseaux | labo-info@injep.fr
INJEP | humbert@injep.fr