[OpenAFS-devel] Building 1.3.71 on Fedora Core 2 with x86_64

David Bennett dbennett@bensoft.com
Fri, 1 Oct 2004 16:13:21 -0500


Hello,

I am trying to make Open AFS 1.3.71 on Fedora Core 2 on a dual x86_64
(Intel EM64T).
I am using Linux kernel 2.6 so 1.2.x is not an option (correct?)

I had to compile the kernel first to get it to work (to find version.h) 

Then I configured the source with .
  ./configure --with-afs-sysname=i386_linux26 \
  	      --with-linux-kernel-headers=/usr/src/linux

Everything makes fine until afs_vnop_flock.c

Here's the output,  any ideas?

--Dave

  CC [M]
./openafs-1.3.71/src/libafs/MODLOAD-2.6.8-1.521custom-MP/afs_vnop_flock.
o
In file included from ./openafs-1.3.71/src/afs/afsincludes.h:60,
                 from
./openafs-1.3.71/src/libafs/MODLOAD-2.6.8-1.521custom-MP/afs_vnop_flock.
c:22:
./openafs-1.3.71/src/afs/afs_prototypes.h:936: warning: `struct flock64'
declared inside parameter list
./openafs-1.3.71/src/afs/afs_prototypes.h:936: warning: its scope is
only this definition or declaration, which is probably not what you want
./openafs-1.3.71/src/libafs/MODLOAD-2.6.8-1.521custom-MP/afs_vnop_flock.
c:31: warning: `struct flock64' declared inside parameter list
./openafs-1.3.71/src/libafs/MODLOAD-2.6.8-1.521custom-MP/afs_vnop_flock.
c:35: warning: `struct flock64' declared inside parameter list
./openafs-1.3.71/src/libafs/MODLOAD-2.6.8-1.521custom-MP/afs_vnop_flock.
c:40: warning: `struct flock64' declared inside parameter list
./openafs-1.3.71/src/libafs/MODLOAD-2.6.8-1.521custom-MP/afs_vnop_flock.
c:41: error: conflicting types for `lockIdSet'
./openafs-1.3.71/src/afs/afs_prototypes.h:936: error: previous
declaration of `lockIdSet'
./openafs-1.3.71/src/libafs/MODLOAD-2.6.8-1.521custom-MP/afs_vnop_flock.
c: In function `lockIdSet':
./openafs-1.3.71/src/libafs/MODLOAD-2.6.8-1.521custom-MP/afs_vnop_flock.
c:128: error: dereferencing pointer to incomplete type
./openafs-1.3.71/src/libafs/MODLOAD-2.6.8-1.521custom-MP/afs_vnop_flock.
c: At top level:
./openafs-1.3.71/src/libafs/MODLOAD-2.6.8-1.521custom-MP/afs_vnop_flock.
c:152: warning: `struct flock64' declared inside parameter list
./openafs-1.3.71/src/libafs/MODLOAD-2.6.8-1.521custom-MP/afs_vnop_flock.
c:153: error: conflicting types for `lockIdcmp2'
./openafs-1.3.71/src/libafs/MODLOAD-2.6.8-1.521custom-MP/afs_vnop_flock.
c:35: error: previous declaration of `lockIdcmp2'
./openafs-1.3.71/src/libafs/MODLOAD-2.6.8-1.521custom-MP/afs_vnop_flock.
c: In function `lockIdcmp2':
./openafs-1.3.71/src/libafs/MODLOAD-2.6.8-1.521custom-MP/afs_vnop_flock.
c:173: error: dereferencing pointer to incomplete type
./openafs-1.3.71/src/libafs/MODLOAD-2.6.8-1.521custom-MP/afs_vnop_flock.
c:175: error: dereferencing pointer to incomplete type
./openafs-1.3.71/src/libafs/MODLOAD-2.6.8-1.521custom-MP/afs_vnop_flock.
c:196: error: dereferencing pointer to incomplete type
./openafs-1.3.71/src/libafs/MODLOAD-2.6.8-1.521custom-MP/afs_vnop_flock.
c: In function `HandleFlock':
./openafs-1.3.71/src/libafs/MODLOAD-2.6.8-1.521custom-MP/afs_vnop_flock.
c:228: error: storage size of `flock' isn't known
./openafs-1.3.71/src/libafs/MODLOAD-2.6.8-1.521custom-MP/afs_vnop_flock.
c:228: warning: unused variable `flock'
./openafs-1.3.71/src/libafs/MODLOAD-2.6.8-1.521custom-MP/afs_vnop_flock.
c: At top level:
./openafs-1.3.71/src/libafs/MODLOAD-2.6.8-1.521custom-MP/afs_vnop_flock.
c:480: warning: `struct flock64' declared inside parameter list
./openafs-1.3.71/src/libafs/MODLOAD-2.6.8-1.521custom-MP/afs_vnop_flock.
c:482: warning: return type defaults to `int'
./openafs-1.3.71/src/libafs/MODLOAD-2.6.8-1.521custom-MP/afs_vnop_flock.
c: In function `afs_lockctl':
./openafs-1.3.71/src/libafs/MODLOAD-2.6.8-1.521custom-MP/afs_vnop_flock.
c:517: error: dereferencing pointer to incomplete type
./openafs-1.3.71/src/libafs/MODLOAD-2.6.8-1.521custom-MP/afs_vnop_flock.
c:522: warning: passing arg 2 of `HandleGetLock' from incompatible
pointer type
./openafs-1.3.71/src/libafs/MODLOAD-2.6.8-1.521custom-MP/afs_vnop_flock.
c:538: error: dereferencing pointer to incomplete type
./openafs-1.3.71/src/libafs/MODLOAD-2.6.8-1.521custom-MP/afs_vnop_flock.
c:539: error: dereferencing pointer to incomplete type
./openafs-1.3.71/src/libafs/MODLOAD-2.6.8-1.521custom-MP/afs_vnop_flock.
c:550: error: dereferencing pointer to incomplete type
./openafs-1.3.71/src/libafs/MODLOAD-2.6.8-1.521custom-MP/afs_vnop_flock.
c:550: error: dereferencing pointer to incomplete type
./openafs-1.3.71/src/libafs/MODLOAD-2.6.8-1.521custom-MP/afs_vnop_flock.
c:550: error: dereferencing pointer to incomplete type
./openafs-1.3.71/src/libafs/MODLOAD-2.6.8-1.521custom-MP/afs_vnop_flock.
c:556: error: dereferencing pointer to incomplete type
./openafs-1.3.71/src/libafs/MODLOAD-2.6.8-1.521custom-MP/afs_vnop_flock.
c:558: error: dereferencing pointer to incomplete type
./openafs-1.3.71/src/libafs/MODLOAD-2.6.8-1.521custom-MP/afs_vnop_flock.
c:560: error: dereferencing pointer to incomplete type
./openafs-1.3.71/src/libafs/MODLOAD-2.6.8-1.521custom-MP/afs_vnop_flock.
c: At top level:
./openafs-1.3.71/src/libafs/MODLOAD-2.6.8-1.521custom-MP/afs_vnop_flock.
c:604: warning: `struct flock64' declared inside parameter list
./openafs-1.3.71/src/libafs/MODLOAD-2.6.8-1.521custom-MP/afs_vnop_flock.
c:605: error: conflicting types for `HandleGetLock'
./openafs-1.3.71/src/libafs/MODLOAD-2.6.8-1.521custom-MP/afs_vnop_flock.
c:31: error: previous declaration of `HandleGetLock'
./openafs-1.3.71/src/libafs/MODLOAD-2.6.8-1.521custom-MP/afs_vnop_flock.
c: In function `HandleGetLock':
./openafs-1.3.71/src/libafs/MODLOAD-2.6.8-1.521custom-MP/afs_vnop_flock.
c:607: error: storage size of `flock' isn't known
./openafs-1.3.71/src/libafs/MODLOAD-2.6.8-1.521custom-MP/afs_vnop_flock.
c:619: error: dereferencing pointer to incomplete type
./openafs-1.3.71/src/libafs/MODLOAD-2.6.8-1.521custom-MP/afs_vnop_flock.
c:620: error: dereferencing pointer to incomplete type
./openafs-1.3.71/src/libafs/MODLOAD-2.6.8-1.521custom-MP/afs_vnop_flock.
c:624: error: dereferencing pointer to incomplete type
./openafs-1.3.71/src/libafs/MODLOAD-2.6.8-1.521custom-MP/afs_vnop_flock.
c:626: error: dereferencing pointer to incomplete type
./openafs-1.3.71/src/libafs/MODLOAD-2.6.8-1.521custom-MP/afs_vnop_flock.
c:628: error: dereferencing pointer to incomplete type
./openafs-1.3.71/src/libafs/MODLOAD-2.6.8-1.521custom-MP/afs_vnop_flock.
c:635: error: dereferencing pointer to incomplete type
./openafs-1.3.71/src/libafs/MODLOAD-2.6.8-1.521custom-MP/afs_vnop_flock.
c:643: error: dereferencing pointer to incomplete type
./openafs-1.3.71/src/libafs/MODLOAD-2.6.8-1.521custom-MP/afs_vnop_flock.
c:648: error: dereferencing pointer to incomplete type
./openafs-1.3.71/src/libafs/MODLOAD-2.6.8-1.521custom-MP/afs_vnop_flock.
c:650: error: dereferencing pointer to incomplete type
./openafs-1.3.71/src/libafs/MODLOAD-2.6.8-1.521custom-MP/afs_vnop_flock.
c:655: error: dereferencing pointer to incomplete type
./openafs-1.3.71/src/libafs/MODLOAD-2.6.8-1.521custom-MP/afs_vnop_flock.
c:669: error: dereferencing pointer to incomplete type
./openafs-1.3.71/src/libafs/MODLOAD-2.6.8-1.521custom-MP/afs_vnop_flock.
c:671: error: dereferencing pointer to incomplete type
./openafs-1.3.71/src/libafs/MODLOAD-2.6.8-1.521custom-MP/afs_vnop_flock.
c:676: error: dereferencing pointer to incomplete type
./openafs-1.3.71/src/libafs/MODLOAD-2.6.8-1.521custom-MP/afs_vnop_flock.
c:684: error: dereferencing pointer to incomplete type
./openafs-1.3.71/src/libafs/MODLOAD-2.6.8-1.521custom-MP/afs_vnop_flock.
c:696: error: dereferencing pointer to incomplete type
./openafs-1.3.71/src/libafs/MODLOAD-2.6.8-1.521custom-MP/afs_vnop_flock.
c:697: error: dereferencing pointer to incomplete type
./openafs-1.3.71/src/libafs/MODLOAD-2.6.8-1.521custom-MP/afs_vnop_flock.
c:704: error: dereferencing pointer to incomplete type
./openafs-1.3.71/src/libafs/MODLOAD-2.6.8-1.521custom-MP/afs_vnop_flock.
c:720: error: dereferencing pointer to incomplete type
./openafs-1.3.71/src/libafs/MODLOAD-2.6.8-1.521custom-MP/afs_vnop_flock.
c:722: error: dereferencing pointer to incomplete type
./openafs-1.3.71/src/libafs/MODLOAD-2.6.8-1.521custom-MP/afs_vnop_flock.
c:727: error: dereferencing pointer to incomplete type
./openafs-1.3.71/src/libafs/MODLOAD-2.6.8-1.521custom-MP/afs_vnop_flock.
c:735: error: dereferencing pointer to incomplete type
./openafs-1.3.71/src/libafs/MODLOAD-2.6.8-1.521custom-MP/afs_vnop_flock.
c:746: error: dereferencing pointer to incomplete type
./openafs-1.3.71/src/libafs/MODLOAD-2.6.8-1.521custom-MP/afs_vnop_flock.
c:747: error: dereferencing pointer to incomplete type
./openafs-1.3.71/src/libafs/MODLOAD-2.6.8-1.521custom-MP/afs_vnop_flock.
c:754: error: dereferencing pointer to incomplete type
./openafs-1.3.71/src/libafs/MODLOAD-2.6.8-1.521custom-MP/afs_vnop_flock.
c:771: error: dereferencing pointer to incomplete type
./openafs-1.3.71/src/libafs/MODLOAD-2.6.8-1.521custom-MP/afs_vnop_flock.
c:775: error: dereferencing pointer to incomplete type
./openafs-1.3.71/src/libafs/MODLOAD-2.6.8-1.521custom-MP/afs_vnop_flock.
c:777: error: dereferencing pointer to incomplete type
./openafs-1.3.71/src/libafs/MODLOAD-2.6.8-1.521custom-MP/afs_vnop_flock.
c:778: error: dereferencing pointer to incomplete type
./openafs-1.3.71/src/libafs/MODLOAD-2.6.8-1.521custom-MP/afs_vnop_flock.
c:784: error: dereferencing pointer to incomplete type
./openafs-1.3.71/src/libafs/MODLOAD-2.6.8-1.521custom-MP/afs_vnop_flock.
c:785: error: dereferencing pointer to incomplete type
./openafs-1.3.71/src/libafs/MODLOAD-2.6.8-1.521custom-MP/afs_vnop_flock.
c:786: error: dereferencing pointer to incomplete type
./openafs-1.3.71/src/libafs/MODLOAD-2.6.8-1.521custom-MP/afs_vnop_flock.
c:607: warning: unused variable `flock'