ftpfs-devel Mailing List for FTP File System
Status: Beta
Brought to you by:
mali
You can subscribe to this list here.
2002 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
(1) |
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
---|
From: Agent S. <as...@wg...> - 2002-07-03 17:26:48
|
Using stock Redhat 7.3. (kernel 2.4.18-3) When I ran make all, I got a lot of #error messages complaining about the include path (at bottom) so I followed their suggestion and made the following modification: ----------------------------------- diff -U 3 -r -b ftpfs-0.6.2-k2.4-orig/ftpfs/Makefile ftpfs-0.6.2-k2.4/ftpfs/Makefile --- ftpfs-0.6.2-k2.4-orig/ftpfs/Makefile Wed Jul 25 13:43:58 2001 +++ ftpfs-0.6.2-k2.4/ftpfs/Makefile Wed Jul 3 09:57:46 2002 @@ -1,10 +1,11 @@ MYCODEDIR := . MODULESDIR = /lib/modules/$(shell uname -r) +KERNELHEADERS = ${MODULESDIR}/build/include # Directories to search for header files -SEARCHDIRS := -I- -I${MYCODEDIR} -I/usr/src/linux/include +SEARCHDIRS := -I- -I${MYCODEDIR} -I${KERNELHEADERS} # makemake variables ----------------------------------- here's the compile output before patching: -------------------------------------- make[1]: Entering directory `/home/build/ftpfs-0.6.2-k2.4-orig/ftpfs' gcc -O2 -fomit-frame-pointer -fno-strict-aliasing -pipe -mpreferred-stack-boundary=2 -Wall -I- -I. -I/usr/src/linux/include -DMODULE -D__KERNEL__ -DLINUX -DEXPORT_SYMTAB -c cache.c -o cache.o In file included from /usr/include/linux/module.h:20, from cache.c:2: /usr/include/linux/modversions.h:1:2: #error Modules should never use kernel-headers system headers, /usr/include/linux/modversions.h:2:2: #error but rather headers from an appropriate kernel-source package. /usr/include/linux/modversions.h:3:2: #error Change -I/usr/src/linux/include (or similar) to /usr/include/linux/modversions.h:4:2: #error -I/lib/modules/$(uname -r)/build/include /usr/include/linux/modversions.h:5:2: #error to build against the currently-running kernel. In file included from cache.c:2: /usr/include/linux/module.h:60: parse error before `atomic_t' /usr/include/linux/module.h:60: warning: no semicolon at end of struct or union /usr/include/linux/module.h:60: warning: no semicolon at end of struct or union /usr/include/linux/module.h:62: parse error before `}' /usr/include/linux/module.h:62: warning: data definition has no type or storage class /usr/include/linux/module.h:91: parse error before `}' cache.c:6:25: asm/uaccess.h: No such file or directory In file included from ftpfs.h:5, from cache.c:8: /usr/include/linux/in.h:114: parse error before `sa_family_t' /usr/include/linux/in.h:114: warning: no semicolon at end of struct or union /usr/include/linux/in.h:121: parse error before `}' In file included from ftpfs.h:16, from cache.c:8: ftpfs_cache.h:45: warning: `struct dentry' declared inside parameter list ftpfs_cache.h:45: warning: its scope is only this definition or declaration, which is probably not what you want. In file included from cache.c:8: ftpfs.h:32: field `address' has incomplete type ftpfs.h:36: field `sem' has incomplete type ftpfs.h:48: parse error before `kdev_t' ftpfs.h:48: warning: no semicolon at end of struct or union ftpfs.h:55: parse error before `}' In file included from cache.c:9: ftpfs_proc.h:15: warning: `struct dentry' declared inside parameter list ftpfs_proc.h:18: warning: `struct dentry' declared inside parameter list ftpfs_proc.h:19: warning: `struct super_block' declared inside parameter list ftpfs_proc.h:20: warning: `struct dentry' declared inside parameter list ftpfs_proc.h:26: warning: `struct dentry' declared inside parameter list cache.c: In function `ftp_cache_init': cache.c:15: warning: implicit declaration of function `memset' cache.c: In function `ftp_cache_hash': cache.c:23: warning: implicit declaration of function `strlen' cache.c: In function `ftp_cache_deldir': cache.c:38: warning: implicit declaration of function `kfree' cache.c: In function `ftp_cache_add': cache.c:102: warning: implicit declaration of function `kmalloc' cache.c:102: `GFP_KERNEL' undeclared (first use in this function) cache.c:102: (Each undeclared identifier is reported only once cache.c:102: for each function it appears in.) cache.c:111: `CURRENT_TIME' undeclared (first use in this function) cache.c:118: warning: implicit declaration of function `strcpy' cache.c: In function `ftp_cache_get': cache.c:150: warning: implicit declaration of function `strcmp' cache.c:152: `CURRENT_TIME' undeclared (first use in this function) cache.c: At top level: cache.c:181: warning: `struct dentry' declared inside parameter list cache.c:181: conflicting types for `ftp_cache_invalidate' ftpfs_cache.h:45: previous declaration of `ftp_cache_invalidate' cache.c: In function `ftp_cache_invalidate': cache.c:182: dereferencing pointer to incomplete type cache.c:183: dereferencing pointer to incomplete type cache.c:188: warning: passing arg 1 of `ftp_get_name' from incompatible pointer type make[1]: *** [cache.o] Error 1 make[1]: Leaving directory `/home/build/ftpfs-0.6.2-k2.4-orig/ftpfs' make: *** [all] Error 2 |