mirror of
https://git.openafs.org/openafs.git
synced 2025-01-31 05:27:44 +00:00
FBSD: Build vnode_if.h before libafs objs
Currently, if we are building with -j2 or higher, we can easily fail to build some libafs objects because vnode_if.h does not exist yet. vnode_if.h is generated by the FreeBSD build, but none of our objects depend on it, so during parallel builds it may not be available by the time we build, for example, src/external/heimdal/hcrypto/sha256.c. This results in build errors that can look like this: --- sha256-kernel.o --- cc -I. -I.. -I../nfs [...]/src/external/heimdal/hcrypto/sha256.c In file included from [...]/src/external/heimdal/hcrypto/sha256.c:34: In file included from [...]/src/crypto/hcrypto/kernel/config.h:30: In file included from [...]/src/afs/sysincludes.h:354: /usr/src/sys/sys/vnode.h:588:10: fatal error: 'vnode_if.h' file not found #include "vnode_if.h" ^~~~~~~~~~~~ 1 error generated. *** [sha256-kernel.o] Error code 1 make[4]: stopped in [...]/src/libafs/MODLOAD 1 error To avoid this, make all of our libafs objects depends on vnode_if.h. [adeason@dson.org: Expanded commit message.] Change-Id: I5a7a6ece8d5fbe6cf1a5b94451c8e8ae93fdc55f Reviewed-on: https://gerrit.openafs.org/13983 Tested-by: BuildBot <buildbot@rampaginggeek.com> Reviewed-by: Benjamin Kaduk <kaduk@mit.edu>
This commit is contained in:
parent
1bd03c9c22
commit
0ee53d2fe9
@ -99,6 +99,8 @@ include Makefile.common
|
|||||||
# we only do the no-NFS case
|
# we only do the no-NFS case
|
||||||
OBJS= ${AFSAOBJS} ${AFSNONFSOBJS}
|
OBJS= ${AFSAOBJS} ${AFSNONFSOBJS}
|
||||||
|
|
||||||
|
$(OBJS): vnode_if.h
|
||||||
|
|
||||||
LIBAFSNONFS= libafs.ko
|
LIBAFSNONFS= libafs.ko
|
||||||
DEFINES= -DAFSDEBUG -DKERNEL -DAFS -DVICE -DNFS -DUFS -DINET -DQUOTA -DGETMOUNT
|
DEFINES= -DAFSDEBUG -DKERNEL -DAFS -DVICE -DNFS -DUFS -DINET -DQUOTA -DGETMOUNT
|
||||||
CFLAGS+= $(DEFINES) ${COMMON_INCLUDE}
|
CFLAGS+= $(DEFINES) ${COMMON_INCLUDE}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user