[OpenAFS-devel] arm linux 26 build issues

omalleys@msu.edu omalleys@msu.edu
Thu, 07 Oct 2010 08:40:18 -0400


The kernel module build is choking..
./configure --with-afs-sysname=arm_linux26   
--disable-linux-syscall-probing --enable-debug --enable-debug-kernel

Up to this point everything was building okay, although it did skip  
building the MT servers and a few of the other tools. Very few  
compiler warnings.

I am assuming this has to do with the platform and it is not common to  
all linux 2.6. Any hints?


----
...
rm -f linux
ln -fs /usr/src/linux/include/linux linux
rm -f net
ln -fs /usr/src/linux/include/net net
rm -f asm-generic
ln -fs /usr/src/linux/include/asm-generic asm-generic
rm -f asm
if [ "" ] ; then \
	    TARGPREFIX="pack_"; \
	fi ; \
	for m in SP ; do \
		KDIR=MODLOAD-2.6.36-rc6-$m ; \
		echo Building in directory: ${KDIR} ; \
		if [ "$m" = "MP" ] ; then \
			SMP_DEF="-DAFS_SMP  " ; \
			TARG="libafs.mp" ; \
		elif [ "$m" = "EP" ] ; then \
			SMP_DEF="-DAFS_SMP  " ; \
			TARG="libafs.ep" ; \
		elif [ "$m" = "BM" ] ; then \
			SMP_DEF="-DAFS_SMP  " ; \
			TARG="libafs.bm" ; \
		else  \
			SMP_DEF=" " ; \
			TARG=libafs ; \
		fi ; \
		cd ${KDIR} ; \
		make -f Makefile.afs SMP_DEF="${SMP_DEF}"  
linux_compdirs_${TARGPREFIX}${TARG} CLIENT=2.6.36-rc6 KDIR=${KDIR} ||  
exit $?; \
		cd ../ ; \
	done
Building in directory: MODLOAD-2.6.36-rc6-SP
make[4]: Entering directory  
`/home/afs/openafs/src/libafs/MODLOAD-2.6.36-rc6-SP'
Makefile.common:51: warning: overriding commands for target `.c.o'
/home/afs/openafs/src/config/Makefile.config:142: warning: ignoring  
old commands for target `.c.o'
env EXTRA_CFLAGS=""  
/home/afs/openafs/src/libafs/make_kbuild_makefile.pl  
MODLOAD-2.6.36-rc6-SP libafs.ko  
/home/afs/openafs/src/config/Makefile.config Makefile.afs  
Makefile.common
env EXTRA_CFLAGS="" make -C /usr/src/linux  
M=/home/afs/openafs/src/libafs/MODLOAD-2.6.36-rc6-SP modules
make[5]: Entering directory `/usr/src/linux-2.6.36-rc6'
   CC [M]  /home/afs/openafs/src/libafs/MODLOAD-2.6.36-rc6-SP/afs_error.o
   CC [M]  /home/afs/openafs/src/libafs/MODLOAD-2.6.36-rc6-SP/afs_icl.o
   CC [M]  /home/afs/openafs/src/libafs/MODLOAD-2.6.36-rc6-SP/afs_lock.o
   CC [M]  /home/afs/openafs/src/libafs/MODLOAD-2.6.36-rc6-SP/afs_osi.o
   CC [M]  /home/afs/openafs/src/libafs/MODLOAD-2.6.36-rc6-SP/afs_osi_alloc.o
   CC [M]  /home/afs/openafs/src/libafs/MODLOAD-2.6.36-rc6-SP/afs_osi_pag.o
   CC [M]  /home/afs/openafs/src/libafs/MODLOAD-2.6.36-rc6-SP/afs_pag_call.o
   CC [M]  /home/afs/openafs/src/libafs/MODLOAD-2.6.36-rc6-SP/afs_pag_cred.o
   CC [M]  /home/afs/openafs/src/libafs/MODLOAD-2.6.36-rc6-SP/afs_pag_user.o
/home/afs/openafs/src/libafs/MODLOAD-2.6.36-rc6-SP/afs_pag_user.c: In  
function ?afs_GCPAGs_perproc_func?:
/home/afs/openafs/src/libafs/MODLOAD-2.6.36-rc6-SP/afs_pag_user.c:634:  
warning: passing argument 1 of ?PagInCred? discards qualifiers from  
pointer target type
/home/afs/openafs/src/afs/afs_prototypes.h:597: note: expected ?struct  
afs_ucred_t *? but argument is of type ?const struct afs_ucred_t *?
   CC [M]  /home/afs/openafs/src/libafs/MODLOAD-2.6.36-rc6-SP/afs_stat.o
   CC [M]  /home/afs/openafs/src/libafs/MODLOAD-2.6.36-rc6-SP/afs_syscall.o
   CC [M]  /home/afs/openafs/src/libafs/MODLOAD-2.6.36-rc6-SP/afs_tokens.o
   CC [M]  /home/afs/openafs/src/libafs/MODLOAD-2.6.36-rc6-SP/afs_warn.o
   CC [M]  /home/afs/openafs/src/libafs/MODLOAD-2.6.36-rc6-SP/afsaux.o
   CC [M]  /home/afs/openafs/src/libafs/MODLOAD-2.6.36-rc6-SP/xdr_array.o
   CC [M]  /home/afs/openafs/src/libafs/MODLOAD-2.6.36-rc6-SP/rx.o
/home/afs/openafs/src/libafs/MODLOAD-2.6.36-rc6-SP/rx.c: In function  
?rxi_NatKeepAliveEvent?:
/home/afs/openafs/src/libafs/MODLOAD-2.6.36-rc6-SP/rx.c:6145: warning:  
the frame size of 1560 bytes is larger than 1024 bytes
   CC [M]  /home/afs/openafs/src/libafs/MODLOAD-2.6.36-rc6-SP/rx_rdwr.o
   CC [M]  /home/afs/openafs/src/libafs/MODLOAD-2.6.36-rc6-SP/rx_clock.o
   CC [M]  /home/afs/openafs/src/libafs/MODLOAD-2.6.36-rc6-SP/rx_event.o
   CC [M]  /home/afs/openafs/src/libafs/MODLOAD-2.6.36-rc6-SP/rx_globals.o
   CC [M]  /home/afs/openafs/src/libafs/MODLOAD-2.6.36-rc6-SP/rx_identity.o
   CC [M]  /home/afs/openafs/src/libafs/MODLOAD-2.6.36-rc6-SP/rx_kmutex.o
In file included from  
/home/afs/openafs/src/libafs/MODLOAD-2.6.36-rc6-SP/rx_kmutex.c:24:
/home/afs/openafs/src/afs/LINUX/osi_compat.h:151: warning: ?struct  
key_type? declared inside parameter list
/home/afs/openafs/src/afs/LINUX/osi_compat.h:151: warning: its scope  
is only this definition or declaration, which is probably not what you  
want
/home/afs/openafs/src/afs/LINUX/osi_compat.h: In function  
?afs_linux_key_alloc?:
/home/afs/openafs/src/afs/LINUX/osi_compat.h:158: error: implicit  
declaration of function ?key_alloc?
/home/afs/openafs/src/afs/LINUX/osi_compat.h:158: warning: return  
makes pointer from integer without a cast
/home/afs/openafs/src/afs/LINUX/osi_compat.h: At top level:
/home/afs/openafs/src/afs/LINUX/osi_compat.h:164: warning: ?struct  
key_type? declared inside parameter list
/home/afs/openafs/src/afs/LINUX/osi_compat.h: In function  
?afs_linux_search_keyring?:
/home/afs/openafs/src/afs/LINUX/osi_compat.h:166: error: ?key_ref_t?  
undeclared (first use in this function)
/home/afs/openafs/src/afs/LINUX/osi_compat.h:166: error: (Each  
undeclared identifier is reported only once
/home/afs/openafs/src/afs/LINUX/osi_compat.h:166: error: for each  
function it appears in.)
/home/afs/openafs/src/afs/LINUX/osi_compat.h:166: error: expected ?;?  
before ?key_ref?
/home/afs/openafs/src/afs/LINUX/osi_compat.h:168: error: ?afs_ucred_t?  
has no member named ?tgcred?
/home/afs/openafs/src/afs/LINUX/osi_compat.h:169: error: ?key_ref?  
undeclared (first use in this function)
/home/afs/openafs/src/afs/LINUX/osi_compat.h:169: error: implicit  
declaration of function ?keyring_search?
make[6]: ***  
[/home/afs/openafs/src/libafs/MODLOAD-2.6.36-rc6-SP/rx_kmutex.o] Error 1
make[5]: ***  
[_module_/home/afs/openafs/src/libafs/MODLOAD-2.6.36-rc6-SP] Error 2
make[5]: Leaving directory `/usr/src/linux-2.6.36-rc6'
make[4]: *** [libafs.ko] Error 2
make[4]: Leaving directory  
`/home/afs/openafs/src/libafs/MODLOAD-2.6.36-rc6-SP'
make[3]: *** [linux_compdirs] Error 2
make[3]: Leaving directory `/home/afs/openafs/src/libafs'
make[2]: *** [libafs] Error 2
make[2]: Leaving directory `/home/afs/openafs'
make[1]: *** [build] Error 2
----