[OpenAFS-devel] problems with rxgen changes... ubik_tid, ubik_version doubly defined...
Neulinger, Nathan
nneul@umr.edu
Tue, 26 Feb 2002 10:35:03 -0600
They are getting defined in both ubik.h and ubik_int.h:
gcc -I. -I/umr/s/openafs/openafs/src/ubik -O2
-I/umr/s/openafs/build/i386_linux24/src/config -I.
-I/umr/s/openafs/build/i386_linux24/include -O2 -D_LARGEFILE64_SOURCE
-c -o disk.o /umr/s/openafs/openafs/src/ubik/disk.c
In file included from /umr/s/openafs/openafs/src/ubik/disk.c:36:
ubik.h:105: redefinition of `struct ubik_tid'
ubik.h:111: redefinition of `struct ubik_version'
gmake: *** [disk.o] Error 1
ubik.h includes ubik_int.h, which appears to be why this is happening.=20
I can brute force a fix with ifdef's to only define them once, but that
seems tacky.
-- Nathan
------------------------------------------------------------
Nathan Neulinger EMail: nneul@umr.edu
University of Missouri - Rolla Phone: (573) 341-4841
Computing Services Fax: (573) 341-4216