Subject: Problem building libamu
To: None <>
From: Xavier HUMBERT <>
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/` > 
cc -O  -Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith 
-Wno-uninitialized -Werror   -DHAVE_CONFIG_H -I/us
-I/usr/src/usr.sbin/amd/libamu -DHAVE_CONFIG_H 
utils/include -I/usr/src/usr.sbin/amd/libamu -c -fPIC -DPIC 
hasmntopt.c -o
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 
#ifndef UFSMOUNT_H

And in fact it fixes the problem. Is it right ?

Xavier HUMBERT  -  Systemes et Reseaux     |
INJEP                                      |