Hello I get this same error using two build methods:
one: 1) cd /usr/src/linux 2) make-kpkg configure 3) make-kpkg modules two: 1) cd /usr/src/modules/openafs 2) make -f debian/rules KVERS=2.4.27-sparc64 KSRC=/usr/src/linux kdist_image Building in directory: MODLOAD-2.4.27-SP make[5]: Entering directory `/usr/src/modules/openafs/src/libafs/MODLOAD-2.4.27-SP' sparc64-linux-gcc -O2 -fomit-frame-pointer -fno-strength-reduce -fno-strict-aliasing -fno-common -pipe -mcpu=ultrasparc -m64 -mno-fpu -mcmodel=medlow -ffixed-g4 -fcall-used-g5 -fcall-used-g7 -Wno-sign-compare -D__KERNEL__ -DCPU=sparc64 -DKERNEL -D_KERNEL -DMODULE -I. -I../ -I/usr/src/linux/include -I/usr/src/modules/openafs/src/config -c ../afs/osi_groups.c In file included from ../afs/../afs/../rx/../rx/rx_packet.h:45, from ../afs/../afs/../rx/rx.h:38, from ../afs/../afs/afsincludes.h:30, from ../afs/osi_groups.c:22: /usr/include/sys/sysmacros.h:30: warning: `major' redefined ../linux/kdev_t.h:80: warning: this is the location of the previous definition /usr/include/sys/sysmacros.h:31: warning: `minor' redefined ../linux/kdev_t.h:81: warning: this is the location of the previous definition ../afs/osi_groups.c:181: parse error before `old_gid_t' ../afs/osi_groups.c:182: parse error before `old_gid_t' ../afs/osi_groups.c: In function `afs32_xsetgroups': ../afs/osi_groups.c:194: `gidsetsize' undeclared (first use in this function) ../afs/osi_groups.c:194: (Each undeclared identifier is reported only once ../afs/osi_groups.c:194: for each function it appears in.) ../afs/osi_groups.c:194: `grouplist' undeclared (first use in this function) make[5]: *** [osi_groups.o] Error 1 make[5]: Leaving directory `/usr/src/modules/openafs/src/libafs/MODLOAD-2.4.27-SP' make[4]: *** [linux_compdirs] Error 2 make[4]: Leaving directory `/usr/src/modules/openafs/src/libafs' make[3]: *** [libafs] Error 2 make[3]: Leaving directory `/usr/src/modules/openafs' make[2]: *** [build] Error 2 make[2]: Leaving directory `/usr/src/modules/openafs' make[1]: *** [all] Error 2 make[1]: Leaving directory `/usr/src/modules/openafs' make: *** [build-modules-stamp] Error 2 u10:/usr/src/modules/openafs# Notes about this error. I am using a 2.4.27 kernel from kernel.org (not a debian package version). I have installed .deb kernel-headers-2.4.27-1which puts include files in /usr/src., but I am not sure if they are being used. /usr/include/linux from .deb linux-kernel-headers /usr/include/sys (warning above) from .deb libc6-dev /usr/bin/sparc64-linux-gcc.egcs64 from .deb egcs64 Other dpkg info from debian unstable: openafs-client openafs-modules-source Other notes about gcc. If i deinstall egcs64 and try using the gcc code. sparc64-linux-gcc is not found and the make-kpkg modules step fails to build for afs. I can build the kernel though. JD Chaskiel M Grundman <[EMAIL PROTECTED]> Sent by: [EMAIL PROTECTED] 10/23/2004 01:04 PM To [EMAIL PROTECTED] cc Subject Re: [OpenAFS-devel] afs on sparc64 --On Saturday, October 23, 2004 11:04:31 -0400 John F Davis <[EMAIL PROTECTED]> wrote: > Does anybody run afs on sparc64 Linux? yes. I ran debian stable/woody (and now debian stable-to-be/sarge) on an ultra 5. > If so, how did you do it? I don't remember how I built 1.2.3 for 2.4.18 on stable. It was a while ago, and one of the reasons I upgraded this box to sarge early was that I couldn't reproduce it. I built 1.2.11 for 2.4.24-sparc64 by getting the kernel-image-sparc source package, unpacking openafs-modules-source into /usr/src/modules, unpacking kernel-image-sparc, and the correct sequence of 'make-kpkg --arch sparc64' commands. I don't remember all the details right now. 2.4.27 seems like it will be easier to deal with, since it actually includes an i386-style kernel-headers package: install kernel-headers-2.4.27-1-sparc64 unpack openafs-modules-source wherever you want it. <cd to the top of openafs-modules-source> make -f debian/rules KVERS=2.4.27-1-sparc64 \ KSRC=/usr/src/kernel-headers-2.4.27-1-sparc64 kdist_image I just built a module in this way, and it looks like it's not going to load It has some references that I don't think will resolve: U U U U current I'll look at this some more and post a followup. > I tried building two versions of openafs for debian on a sparc ultra10 > using 2.4.27 sparc64 and egcs. Neither would work. neither what? If you are running sarge or unstable, then you should not use egcs. If you are running stable, where did you get the 2.4.27 kernel? [attachment "C.DTF" deleted by John F Davis/Raleigh/IBM] _______________________________________________ OpenAFS-devel mailing list [EMAIL PROTECTED] https://lists.openafs.org/mailman/listinfo/openafs-devel
