arla-block-TR1 compilation problem

Anders Selander selander at pdc.kth.se
Wed Nov 15 17:17:45 CET 2006


I just got yelled at by haba for confessing that I didn't report
my problems the first time I tried to compile arla-block-TR1, so
to repent my wicked ways, I will do it now instead. 

I already have the normal arla working (see
http://www.manja.se/selander/ubuntu_t22/#arla), but think that 
arla-on-blocks will have something to offer when one saves an email 
in an already very huge folder stored in afs. ;-)

You might find configure.out and make.out in 

  /afs/pdc.kth.se/home/s/selander/Public/arla-block-TR1/

interesting.

I have included the outline and the problematic section below.
The "tar: Cowardly refusing to create an empty archive" I can
get rid of by changing Kconfig to kconfig in the nnpfs/linux
Makefile. Why there is no Kconfig but kconfig directories in my 
distribution is beyond me.

However, the three warnings still remains and unfortunately seem
to topple the whole compilation:

  arla-block-TR1/nnpfs/linux/nnpfs/nnpfs_locl.h:163: warning: "struct nnpfs_cache_handle" declared inside parameter list
  arla-block-TR1/nnpfs/linux/nnpfs/nnpfs_locl.h:163: warning: its scope is only this definition or declaration, which is probably not what you want
  arla-block-TR1/nnpfs/linux/nnpfs/nnpfs_dev.h:62: warning: "struct nnpfs_message_wakeup_data" declared inside parameter list

Where are theu supposed to be defined and included? I am especially
intriqued over the nnpfs_message_wakeup_data struct, which a recursive
grep only indicates being defined in ./doc/nnpfs.txt. 

I have tried to compile both with gcc 3.4.5 and 4.0.2 with the same
result.

What crucial information has I failed to convey?

Regards /Selander

> uname -a
Linux aioli 2.6.12-10-686 #1 Tue Jul 18 22:26:10 UTC 2006 i686 GNU/Linux
> cat /etc/lsb-release 
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=5.10
DISTRIB_CODENAME=breezy
DISTRIB_DESCRIPTION="Ubuntu (The Breezy Badger Release)"

> tar xzf /afs/stacken.kth.se/ftp/pub/arla/snap/arla-block-TR1.tar.gz
> cd cd arla-block-TR1/
> ./configure 2>&1 | tee ./configure.out
...
> make 2>&1 | tee ./make.out
...
Making all in nnpfs
make[1]: Entering directory `/home/selander/build/arla-block-TR1/nnpfs'
SUBDIRS='linux '; \
        for i in $SUBDIRS; \
        do (cd $i && make -w all); done
make[2]: Entering directory
`/home/selander/build/arla-block-TR1/nnpfs/linux'
mkdir -p kbuild-work
cp nnpfs_load.c kbuild-work/nnpfs_load.c
mkdir -p kbuild-work
cp nnpfs_dev.c kbuild-work/nnpfs_dev.c
mkdir -p kbuild-work
cp nnpfs_common.c kbuild-work/nnpfs_common.c
mkdir -p kbuild-work
cp nnpfs_vfsops.c kbuild-work/nnpfs_vfsops.c
mkdir -p kbuild-work
cp nnpfs_node.c kbuild-work/nnpfs_node.c
mkdir -p kbuild-work
cp nnpfs_message.c kbuild-work/nnpfs_message.c
mkdir -p kbuild-work
cp nnpfs_inodeops.c kbuild-work/nnpfs_inodeops.c
mkdir -p kbuild-work
cp nnpfs_deb.c kbuild-work/nnpfs_deb.c
mkdir -p kbuild-work
cp nnpfs_syscalls.c kbuild-work/nnpfs_syscalls.c
mkdir -p kbuild-work
cp nnpfs_syscalls-lossage.c kbuild-work/nnpfs_syscalls-lossage.c
mkdir -p kbuild-work
echo  >kbuild-work/Makefile 'EXTRA_CFLAGS+=     -DHAVE_CONFIG_H -DDEBUG -Wall -Werror -Wstrict-prototypes -fno-strict-aliasing -I/home/selander/build/arla-block-TR1/nnpfs/include -I/home/selander/build/arla-block-TR1/include -I/home/selander/build/arla-block-TR1/include -I/home/selander/build/arla-block-TR1/nnpfs/linux'
echo >>kbuild-work/Makefile 'obj-m:=            nnpfs.o'
echo >>kbuild-work/Makefile 'nnpfs-objs:=       nnpfs_load.o nnpfs_dev.o nnpfs_common.o nnpfs_vfsops.o nnpfs_node.o nnpfs_message.o nnpfs_inodeops.o nnpfs_deb.o
 nnpfs_syscalls.o nnpfs_syscalls-lossage.o'
rm -rf kernel-source-tree.tmp
mkdir kernel-source-tree.tmp && \
( cd /lib/modules/2.6.12-10-686/build && \
tar -c -h $(find . -name Kconfig'*') | \
tar -x -C /home/selander/build/arla-block-TR1/nnpfs/linux/kernel-source-tree.tmp
 && \
tar -c -h \
        init scripts Makefile arch .config include Module.symvers | \
tar -x -C /home/selander/build/arla-block-TR1/nnpfs/linux/kernel-source-tree.tmp
 ) && \
mv kernel-source-tree.tmp kernel-source-tree
tar: Cowardly refusing to create an empty archive
Try `tar --help' or `tar --usage' for more information.
make -C kernel-source-tree SUBDIRS=/home/selander/build/arla-block-TR1/nnpfs/linux/kbuild-work modules
make[3]: Entering directory `/home/selander/build/arla-block-TR1/nnpfs/linux/ker
nel-source-tree'
  CC [M]  /home/selander/build/arla-block-TR1/nnpfs/linux/kbuild-work/nnpfs_load.o
In file included from /home/selander/build/arla-block-TR1/nnpfs/linux/kbuild-work/nnpfs_load.c:37:
/home/selander/build/arla-block-TR1/nnpfs/linux/nnpfs/nnpfs_locl.h:163: warning: "struct nnpfs_cache_handle" declared inside parameter list
/home/selander/build/arla-block-TR1/nnpfs/linux/nnpfs/nnpfs_locl.h:163: warning: its scope is only this definition or declaration, which is probably not what you want
In file included from /home/selander/build/arla-block-TR1/nnpfs/linux/kbuild-work/nnpfs_load.c:45:
/home/selander/build/arla-block-TR1/nnpfs/linux/nnpfs/nnpfs_dev.h:62: warning: "struct nnpfs_message_wakeup_data" declared inside parameter list
make[4]: *** [/home/selander/build/arla-block-TR1/nnpfs/linux/kbuild-work/nnpfs_load.o] Error 1
make[3]: *** [_module_/home/selander/build/arla-block-TR1/nnpfs/linux/kbuild-work] Error 2
make[3]: Leaving directory `/home/selander/build/arla-block-TR1/nnpfs/linux/kernel-source-tree'
make[2]: *** [kbuild] Error 2
make[2]: Leaving directory `/home/selander/build/arla-block-TR1/nnpfs/linux'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/selander/build/arla-block-TR1/nnpfs'
make: *** [all-recursive] Error 1


More information about the Arla-drinkers mailing list