[OpenAFS-devel] openafs on debian with linux 2.6.18 kernel
Jan Pospisil
honik@kma.zcu.cz
Wed, 25 Oct 2006 17:08:47 +0200 (CEST)
Hello, I've just found two more issues:
1. In the source distribution openafs-1.4.2-src.tar (available on the
web), and therefore as well as in the openafs-modules-source debian
package, there is a wrong absolute path to cpp (there is no /lib/cpp on
debians i386_*). The faulty files are:
./src/lwp/Makefile.in
./src/sys/Makefile.in
./src/shlibafsrpc/Makefile.in
./src/libafsrpc/Makefile.in
It seems that these files are not touched by autotools and configure at
all. I also tried to set the environment variable CPP to /usr/bin/cpp and
rerun regen.sh and configure, but didn't help, only manual edit.
2. The build fails with the following error:
CC [M] /usr/src/modules/openafs/src/libafs/MODLOAD-2.6.18-SP/afs_analyze.o
In file included from /usr/src/modules/openafs/src/afs/afsincludes.h:44,
from /usr/src/modules/openafs/src/libafs/MODLOAD-2.6.18-SP/afs_analyze.c:36:
/usr/src/modules/openafs/src/afs/afs.h:157: error: field 'Fid' has incomplete type
/usr/src/modules/openafs/src/afs/afs.h:201: error: field 'fid' has incomplete type
In file included from /usr/src/modules/openafs/src/afs/afsincludes.h:53,
from /usr/src/modules/openafs/src/libafs/MODLOAD-2.6.18-SP/afs_analyze.c:36:
/usr/src/modules/openafs/src/afs/afs_prototypes.h:141: warning: 'struct AFSDBCacheEntry' declared inside parameter list
/usr/src/modules/openafs/src/afs/afs_prototypes.h:141: warning: its scope is only this definition or declaration, which is probably not what you
want
/usr/src/modules/openafs/src/afs/afs_prototypes.h:143: warning: 'struct AFSDBCacheEntry64' declared inside parameter list
/usr/src/modules/openafs/src/afs/afs_prototypes.h:145: warning: 'struct AFSDBLock' declared inside parameter list
/usr/src/modules/openafs/src/afs/afs_prototypes.h:148: warning: 'struct AFSCBs' declared inside parameter list
/usr/src/modules/openafs/src/afs/afs_prototypes.h:148: warning: 'struct AFSCBFids' declared inside parameter list
/usr/src/modules/openafs/src/afs/afs_prototypes.h:157: error: expected declaration specifiers or '...' before 'AFSCB_CollData'
/usr/src/modules/openafs/src/afs/afs_prototypes.h:171: error: expected declaration specifiers or '...' before 'serverList'
/usr/src/modules/openafs/src/afs/afs_prototypes.h:177: error: expected declaration specifiers or '...' before 'cacheConfig'
...
I reported this behaviour to this list earlier this year but without any
help.
Derrick J Brashear wrote:
>>> I am not sure if it helps, but the CPU type is K7 (AMD Athlon), on my
>>> notebook with PENTIUMM the modules build without problems.
>
> This isn't really a development issue unless you're hacking code.
I don't know who else than developers could help. I am definitely not
hacking any code. If someone could help me, I would be very greatful. I
can send more info if needed.
> However, that error suggests you somehow have non-AFS headers in your
> include path interfering with the AFSFid type being defined.
I checked this and it seems that there is no definition of AFSFid nowhere
(in the openafs-modules-source) at all. I found it "only" in the
/usr/include/afs/afsint.h that is part of the libopenafs-dev debian
package, but if I have it in the system or not doesn't make any difference
to the build process, it fails the same way.
Thank you very much for your help in advance.
Regards
Jan
----------------------------------------------------------------------
Jan Pospisil, Ph.D. e-mail: Jan.Pospisil@kma.zcu.cz
University of West Bohemia phone: (+420) 37763-2675
Department of Mathematics fax: (+420) 37763-2602
Plzen, Czech Republic address: Univerzitni 22, 306 14
----------------------------------------------------------------------