[OpenAFS-devel] More Problems building 1.5.27 on alpha_dux40

John Hascall john@iastate.edu
Sat, 17 Nov 2007 09:35:59 CST



cc: Error: /afs/isu/project/afssrc/openafs/openafs-1.5.27/src/afs/VNOPS/afs_vnop
_create.c, line 40: In this declaration, the number of parameters differs from a
n earlier declaration of this function. (misparamcount)
afs_create(OSI_VC_DECL(adp), char *aname, struct vattr *attrs,
^
cc: Error: /afs/isu/project/afssrc/openafs/openafs-1.5.27/src/afs/VNOPS/afs_vnop
_create.c, line 40: In this declaration, the type of "afs_create" is not compati
ble with the type of a previous declaration of "afs_create" at line number 973 i
n file /afs/isu/project/afssrc/openafs/openafs-1.5.27/src/afs/afs_prototypes.h.
(notcompat)
afs_create(OSI_VC_DECL(adp), char *aname, struct vattr *attrs,
^


Also, in src/afs/afs.h you have

struct buffer {
   ...
#if defined(AFS_USEBUFFERS)
  struct buf *bufp;
#endif
  afs_rwlock_t lock;          /* the lock for this structure */
};

before this:

#if     defined(AFS_OSF_ENV)
#if     !defined(UKERNEL)
#define AFS_USEBUFFERS  1
#endif
#endif

which means that src/afs/afs_buffer.c gets all manner of compile
errors trying to reference tp->bufp which was not included in the
struct.



And, this warning appears quite a lot:

line ##: The redefinition of the macro "osi_rxWakeup" conflicts with a current definition because the spelling of one or more parameters is different.  The redefinition is now in effect. (macroredef)
#define osi_rxWakeup(a) if (afs_osi_Wakeup(a) == 0) afs_Trace2(afs_iclSetp, \
---------------------^


John