[OpenAFS] RE: compiling on linux 2.2.x

Neulinger, Nathan R. nneul@umr.edu
Tue, 7 Nov 2000 12:13:44 -0600


This should be on openafs-devel@central.org or openafs-info@central.org.

To fix, edit the file src/config/Makefile.i386_linux22 and change the kernel
line to only list 2.2.14. Make sure that you have a link to the kernel
sources as /usr/src/linux-2.2.14.

Then, run the make again. 

-- Nathan

> -----Original Message-----
> From: Brian Kosick [mailto:briank@nacs.net]
> Sent: Tuesday, November 07, 2000 11:35 AM
> To: info-afs@transarc.com
> Subject: compiling on linux 2.2.x
> 
> 
> Hello all, forgive me if this is the wrong place to be 
> posting this, I've 
> browsed over the archives, and have really not found anything on 
> openafs-1.0.0 compile problems.  I have two boxes that I have 
> tried on,
> 1)  Intel P200MMX 128MB RAM 10G IDE HD running fresh install of RH7.0 
> kernel 2.2.16-22
> 2)  AMD k6-2 500 128MB RAM 4G IDE, 6G IDE, 2 x 3G SCSI Raid 0 
> running RH6.2 
> kernel 2.2.15
> 
> I have downloaded, and compiled kernel 2.2.14 on both, so I 
> could get some 
> valid headers for open afs, the kernel is compiled, but NOT running.
> 
> I start the compile and everything seems to work 
> beautifully...then it 
> starts horking out errors.  (I've included the problem output 
> from the 
> compiler at the end of this email)
> 
> If I've left any info out that would be of help, let me know, 
> I will gladly 
> provide it.
> 
> Compile errors:
> In file included from ../afs/afs_sysnames.h:17,
>                   from ../afs/param.h:24,
>                   from ../afs/afs_analyze.c:11:
> ../afs/stds.h:152:25: ../h/string.h: No such file or directory
> In file included from /usr/include/linux/affs_fs_i.h:5,
>                   from /usr/include/linux/fs.h:276,
>                   from /usr/include/linux/capability.h:17,
>                   from /usr/include/linux/binfmts.h:5,
>                   from /usr/include/linux/sched.h:9,
>                   from /usr/include/asm/uaccess.h:8,
>                   from ../afs/sysincludes.h:26,
>                   from ../afs/afs_analyze.c:13:
> /usr/include/linux/time.h:69:15: warning: "FD_SET" redefined
> /usr/include/sys/select.h:63:1: warning: this is the location of the 
> previous definition
> /usr/include/linux/time.h:70:15: warning: "FD_CLR" redefined
> /usr/include/sys/select.h:64:1: warning: this is the location of the 
> previous definition
> /usr/include/linux/time.h:71:17: warning: "FD_ISSET" redefined
> /usr/include/sys/select.h:65:1: warning: this is the location of the 
> previous definition
> /usr/include/linux/time.h:72:16: warning: "FD_ZERO" redefined
> /usr/include/sys/select.h:66:1: warning: this is the location of the 
> previous definition
> In file included from /usr/include/linux/affs_fs_i.h:6,
>                   from /usr/include/linux/fs.h:277,
>                   from /usr/include/linux/capability.h:18,
>                   from /usr/include/linux/binfmts.h:6,
>                   from /usr/include/linux/sched.h:10,
>                   from /usr/include/asm/uaccess.h:9,
>                   from ../afs/sysincludes.h:27,
>                   from ../afs/afs_analyze.c:14:
> /usr/include/linux/time.h:9: redefinition of `struct timespec'
> /usr/include/linux/time.h:51: parse error before `suseconds_t'
> /usr/include/linux/time.h:51: warning: no semicolon at end of 
> struct or union
> /usr/include/linux/time.h:88: field `it_interval' has incomplete type
> /usr/include/linux/time.h:89: field `it_value' has incomplete type
> In file included from /usr/include/linux/fs.h:277,
>                   from /usr/include/linux/capability.h:18,
>                   from /usr/include/linux/binfmts.h:6,
>                   from /usr/include/linux/sched.h:10,
>                   from /usr/include/asm/uaccess.h:9,
>                   from ../afs/sysincludes.h:27,
>                   from ../afs/afs_analyze.c:14:
> /usr/include/linux/affs_fs_i.h:11: field `kc_lru_time' has 
> incomplete type
> In file included from /usr/include/linux/fs.h:279,
>                   from /usr/include/linux/capability.h:18,
>                   from /usr/include/linux/binfmts.h:6,
>                   from /usr/include/linux/sched.h:10,
>                   from /usr/include/asm/uaccess.h:9,
>                   from ../afs/sysincludes.h:27,
>                   from ../afs/afs_analyze.c:14:
> /usr/include/linux/efs_fs_i.h:13: parse error before `efs_ino_t'
> /usr/include/linux/efs_fs_i.h:13: warning: data definition 
> has no type or 
> storage class
> /usr/include/linux/efs_fs_i.h:48: parse error before `uint32_t'
> /usr/include/linux/efs_fs_i.h:48: warning: no semicolon at 
> end of struct or 
> union
> /usr/include/linux/efs_fs_i.h:56: parse error before `}'
> In file included from /usr/include/linux/sched.h:15,
>                   from /usr/include/asm/uaccess.h:9,
>                   from ../afs/sysincludes.h:27,
>                   from ../afs/afs_analyze.c:14:
> /usr/include/linux/times.h:5: parse error before `clock_t'
> /usr/include/linux/times.h:5: warning: no semicolon at end of 
> struct or union
> /usr/include/linux/times.h:6: warning: data definition has no type or 
> storage class
> /usr/include/linux/times.h:7: parse error before `tms_cutime'
> /usr/include/linux/times.h:7: warning: data definition has no type or 
> storage class
> /usr/include/linux/times.h:8: parse error before `tms_cstime'
> /usr/include/linux/times.h:8: warning: data definition has no type or 
> storage class
> In file included from /usr/include/linux/sched.h:16,
>                   from /usr/include/asm/uaccess.h:9,
>                   from ../afs/sysincludes.h:27,
>                   from ../afs/afs_analyze.c:14:
> /usr/include/linux/timex.h:159: field `time' has incomplete type
> In file included from /usr/include/linux/signal.h:6,
>                   from /usr/include/linux/sched.h:26,
>                   from /usr/include/asm/uaccess.h:9,
>                   from ../afs/sysincludes.h:27,
>                   from ../afs/afs_analyze.c:14:
> /usr/include/asm/siginfo.h:48: parse error before `clock_t'
> /usr/include/asm/siginfo.h:48: warning: no semicolon at end 
> of struct or union
> /usr/include/asm/siginfo.h:48: warning: no semicolon at end 
> of struct or union
> /usr/include/asm/siginfo.h:49: warning: no semicolon at end 
> of struct or union
> /usr/include/asm/siginfo.h:50: warning: data definition has 
> no type or 
> storage class
> /usr/include/asm/siginfo.h:62: parse error before `}'
> /usr/include/asm/siginfo.h:62: warning: data definition has 
> no type or 
> storage class
> /usr/include/asm/siginfo.h:63: parse error before `}'
> /usr/include/asm/siginfo.h:63: warning: data definition has 
> no type or 
> storage class
> /usr/include/asm/siginfo.h:219: parse error before `*'
> /usr/include/asm/siginfo.h: In function `copy_siginfo':
> /usr/include/asm/siginfo.h:221: `from' undeclared (first use 
> in this function)
> /usr/include/asm/siginfo.h:221: (Each undeclared identifier 
> is reported 
> only once
> /usr/include/asm/siginfo.h:221: for each function it appears in.)
> /usr/include/asm/siginfo.h:222: `to' undeclared (first use in 
> this function)
> /usr/include/asm/siginfo.h: At top level:
> /usr/include/asm/siginfo.h:228: parse error before `*'
> In file included from /usr/include/linux/sched.h:26,
>                   from /usr/include/asm/uaccess.h:9,
>                   from ../afs/sysincludes.h:27,
>                   from ../afs/afs_analyze.c:14:
> /usr/include/linux/signal.h:15: parse error before `siginfo_t'
> /usr/include/linux/signal.h:15: warning: no semicolon at end 
> of struct or union
> In file included from /usr/include/linux/sched.h:76,
>                   from /usr/include/asm/uaccess.h:9,
>                   from ../afs/sysincludes.h:27,
>                   from ../afs/afs_analyze.c:14:
> /usr/include/linux/resource.h:22: field `ru_utime' has incomplete type
> /usr/include/linux/resource.h:23: field `ru_stime' has incomplete type
> In file included from /usr/include/asm/uaccess.h:9,
>                   from ../afs/sysincludes.h:27,
>                   from ../afs/afs_analyze.c:14:
> /usr/include/linux/sched.h:333: field `times' has incomplete type
> /usr/include/linux/sched.h:552: parse error before `siginfo_t'
> In file included from ../afs/afsincludes.h:23,
>                   from ../afs/afs_analyze.c:29:
> ../afs/afs_osi.h:11:24: ../h/types.h: No such file or directory
> ../afs/afs_osi.h:12:24: ../h/param.h: No such file or directory
> ../afs/afs_osi.h:20:21: ../h/fs.h: No such file or directory
> ../afs/afs_osi.h:21:21: ../h/mm.h: No such file or directory
> In file included from ../afs/afs_osi.h:370,
>                   from ../afs/afsincludes.h:23,
>                   from ../afs/afs_analyze.c:29:
> ../afs/osi_machdep.h:25:24: ../h/sched.h: No such file or directory
> In file included from ../rx/rx_packet.h:35,
>                   from ../rx/rx.h:50,
>                   from ../afs/afsincludes.h:24,
>                   from ../afs/afs_analyze.c:29:
> /usr/include/sys/param.h:58:12: warning: "MIN" redefined
> ../afs/param.h:60:1: warning: this is the location of the 
> previous definition
> /usr/include/sys/param.h:59:12: warning: "MAX" redefined
> ../afs/param.h:63:1: warning: this is the location of the 
> previous definition
> In file included from ../afs/afsincludes.h:24,
>                   from ../afs/afs_analyze.c:29:
> ../rx/rx.h:52:27: ../netinet/in.h: No such file or directory
> In file included from ../afs/afsincludes.h:22,
>                   from ../afs/afs_analyze.c:30:
> ../afs/osi_vfs.h:144: field `va_atime' has incomplete type
> ../afs/osi_vfs.h:145: field `va_mtime' has incomplete type
> ../afs/osi_vfs.h:146: field `va_ctime' has incomplete type
> In file included from ../rx/rx.h:46,
>                   from ../afs/afsincludes.h:25,
>                   from ../afs/afs_analyze.c:30:
> ../rx/rx_kmutex.h: In function `afs_mutex_init':
> ../rx/rx_kmutex.h:45: `MUTEX' undeclared (first use in this function)
> ../rx/rx_kmutex.h: In function `CV_WAIT':
> ../rx/rx_kmutex.h:94: warning: passing arg 1 of 
> `interruptible_sleep_on' 
> from incompatible pointer type
> ../rx/rx_kmutex.h: In function `CV_TIMEDWAIT':
> ../rx/rx_kmutex.h:110: warning: passing arg 1 of 
> `interruptible_sleep_on_timeout' from incompatible pointer type
> In file included from /usr/include/sys/uio.h:30,
>                   from ../rx/rx_packet.h:8,
>                   from ../rx/rx.h:51,
>                   from ../afs/afsincludes.h:25,
>                   from ../afs/afs_analyze.c:30:
> /usr/include/bits/uio.h: At top level:
> /usr/include/bits/uio.h:43: redefinition of `struct iovec'
> In file included from ../afs/afsincludes.h:38,
>                   from ../afs/afs_analyze.c:29:
> ../afsint/afsint.h:15:24: ../h/types.h: Bad file descriptor
> ../afsint/afsint.h:31:27: ../netinet/in.h: Bad file descriptor
> ../afsint/afsint.h:34:23: ../h/time.h: No such file or directory
> In file included from ../afs/afsincludes.h:26,
>                   from ../afs/afs_analyze.c:30:
> ../afs/lock.h:117: field `time_waiting' has incomplete type
> In file included from ../afs/afsincludes.h:40,
>                   from ../afs/afs_analyze.c:29:
> ../afsint/vldbint.h:15:24: ../h/types.h: No such file or directory
> ../afsint/vldbint.h:31:27: ../netinet/in.h: No such file or directory
> ../afsint/vldbint.h:34:23: ../h/time.h: No such file or directory
> In file included from ../afs/afsincludes.h:42,
>                   from ../afs/afs_analyze.c:30:
> ../afs/afs.h:356: field `host' has incomplete type
> In file included from ../afs/afs_analyze.c:31:
> ../afs/afs_stats.h:859: field `sumTime' has incomplete type
> ../afs/afs_stats.h:860: field `sqrTime' has incomplete type
> ../afs/afs_stats.h:861: field `minTime' has incomplete type
> ../afs/afs_stats.h:862: field `maxTime' has incomplete type
> ../afs/afs_stats.h:885: field `sumTime' has incomplete type
> ../afs/afs_stats.h:886: field `sqrTime' has incomplete type
> ../afs/afs_stats.h:887: field `minTime' has incomplete type
> ../afs/afs_stats.h:888: field `maxTime' has incomplete type
> ../afs/afs_analyze.c: In function `afs_Analyze':
> ../afs/afs_analyze.c:334: storage size of `opStartTime' isn't known
> ../afs/afs_analyze.c:334: storage size of `opStopTime' isn't known
> ../afs/afs_analyze.c:334: storage size of `elapsedTime' isn't known
> make[4]: *** [afs_analyze.o] Error 1
> make[4]: Leaving directory 
> `/usr/local/afs/i386_linux22/obj/libafs/MODLOAD-2.2.5-15-MP'
> make[3]: *** [linux_compdirs] Error 2
> make[3]: Leaving directory `/usr/local/afs/i386_linux22/obj/libafs'
> make[2]: *** [libafs] Error 2
> make[2]: Leaving directory `/usr/local/afs'
> make[1]: *** [install] Error 2
> make[1]: Leaving directory `/usr/local/afs'
> make: *** [all] Error 2
> Brian Kosick
> Web Programmer
> New Age Consulting Service, Inc.
> 216-619-2000
> briank@nacs.net
>