Hi Herbert,

i wanted to upgrade a server to vserver version c17h.
i'm using kernel v2.4.22 and the latest xfs patch.
patching worked fine, but there were some errors when compiling

i've attached the compile output

any idea what the problem might be ?

-- 

regards,
Georges Toth
make -C xfs
make[2]: Entering directory `/usr/src/linux-2.4.22/fs/xfs'
make -C linux
make[3]: Entering directory `/usr/src/linux-2.4.22/fs/xfs/linux'
make all_targets
make[4]: Entering directory `/usr/src/linux-2.4.22/fs/xfs/linux'
gcc -D__KERNEL__ -I/usr/src/linux-2.4.22/include -Wall -Wstrict-prototypes 
-Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer -pipe 
-mpreferred-stack-boundary=2 -march=i686  -I.. -funsigned-char -nostdinc -iwithprefix 
include -DKBUILD_BASENAME=xfs_stats  -c -o xfs_stats.o xfs_stats.c
gcc -D__KERNEL__ -I/usr/src/linux-2.4.22/include -Wall -Wstrict-prototypes 
-Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer -pipe 
-mpreferred-stack-boundary=2 -march=i686  -I.. -funsigned-char -nostdinc -iwithprefix 
include -DKBUILD_BASENAME=xfs_sysctl  -c -o xfs_sysctl.o xfs_sysctl.c
gcc -D__KERNEL__ -I/usr/src/linux-2.4.22/include -Wall -Wstrict-prototypes 
-Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer -pipe 
-mpreferred-stack-boundary=2 -march=i686  -I.. -funsigned-char -nostdinc -iwithprefix 
include -DKBUILD_BASENAME=xfs_aops  -c -o xfs_aops.o xfs_aops.c
gcc -D__KERNEL__ -I/usr/src/linux-2.4.22/include -Wall -Wstrict-prototypes 
-Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer -pipe 
-mpreferred-stack-boundary=2 -march=i686  -I.. -funsigned-char -nostdinc -iwithprefix 
include -DKBUILD_BASENAME=xfs_behavior  -c -o xfs_behavior.o xfs_behavior.c
gcc -D__KERNEL__ -I/usr/src/linux-2.4.22/include -Wall -Wstrict-prototypes 
-Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer -pipe 
-mpreferred-stack-boundary=2 -march=i686  -I.. -funsigned-char -nostdinc -iwithprefix 
include -DKBUILD_BASENAME=xfs_file  -c -o xfs_file.o xfs_file.c
gcc -D__KERNEL__ -I/usr/src/linux-2.4.22/include -Wall -Wstrict-prototypes 
-Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer -pipe 
-mpreferred-stack-boundary=2 -march=i686  -I.. -funsigned-char -nostdinc -iwithprefix 
include -DKBUILD_BASENAME=xfs_fs_subr  -c -o xfs_fs_subr.o xfs_fs_subr.c
gcc -D__KERNEL__ -I/usr/src/linux-2.4.22/include -Wall -Wstrict-prototypes 
-Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer -pipe 
-mpreferred-stack-boundary=2 -march=i686  -I.. -funsigned-char -nostdinc -iwithprefix 
include -DKBUILD_BASENAME=xfs_globals  -DEXPORT_SYMTAB -c xfs_globals.c
gcc -D__KERNEL__ -I/usr/src/linux-2.4.22/include -Wall -Wstrict-prototypes 
-Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer -pipe 
-mpreferred-stack-boundary=2 -march=i686  -I.. -funsigned-char -nostdinc -iwithprefix 
include -DKBUILD_BASENAME=xfs_ioctl  -c -o xfs_ioctl.o xfs_ioctl.c
xfs_ioctl.c: In function `xfs_open_by_handle':
xfs_ioctl.c:343: warning: implicit declaration of function `IS_IMMUTABLE'
xfs_ioctl.c: In function `xfs_ioc_space':
xfs_ioctl.c:901: `S_IMMUTABLE' undeclared (first use in this function)
xfs_ioctl.c:901: (Each undeclared identifier is reported only once
xfs_ioctl.c:901: for each function it appears in.)
make[4]: *** [xfs_ioctl.o] Error 1
make[4]: Leaving directory `/usr/src/linux-2.4.22/fs/xfs/linux'
make[3]: *** [first_rule] Error 2
make[3]: Leaving directory `/usr/src/linux-2.4.22/fs/xfs/linux'
make[2]: *** [_subdir_linux] Error 2
make[2]: Leaving directory `/usr/src/linux-2.4.22/fs/xfs'
make[1]: *** [_subdir_xfs] Error 2
make[1]: Leaving directory `/usr/src/linux-2.4.22/fs'
make: *** [_dir_fs] Error 2
plasma src # bzcat files/patch-2.4.22-c17h.diff.bz2 | patch -p0
patching file linux-2.4.22/Makefile
Hunk #1 FAILED at 1.
1 out of 1 hunk FAILED -- saving rejects to file linux-2.4.22/Makefile.rej
patching file linux-2.4.22/arch/alpha/kernel/entry.S
patching file linux-2.4.22/arch/i386/kernel/entry.S
Hunk #1 succeeded at 687 (offset 28 lines).
patching file linux-2.4.22/arch/i386/kernel/ptrace.c
patching file linux-2.4.22/arch/ppc/kernel/misc.S
patching file linux-2.4.22/arch/ppc/kernel/ptrace.c
patching file linux-2.4.22/arch/sparc/kernel/systbls.S
patching file linux-2.4.22/arch/sparc64/kernel/entry.S
patching file linux-2.4.22/arch/sparc64/kernel/ptrace.c
patching file linux-2.4.22/arch/sparc64/kernel/systbls.S
patching file linux-2.4.22/arch/x86_64/ia32/ia32entry.S
patching file linux-2.4.22/fs/devpts/inode.c
patching file linux-2.4.22/fs/devpts/root.c
patching file linux-2.4.22/fs/exec.c
patching file linux-2.4.22/fs/ext2/ialloc.c
patching file linux-2.4.22/fs/ext2/inode.c
patching file linux-2.4.22/fs/ext2/ioctl.c
patching file linux-2.4.22/fs/ext3/ialloc.c
patching file linux-2.4.22/fs/ext3/inode.c
patching file linux-2.4.22/fs/ext3/ioctl.c
patching file linux-2.4.22/fs/fat/file.c
patching file linux-2.4.22/fs/fat/inode.c
patching file linux-2.4.22/fs/hpfs/file.c
patching file linux-2.4.22/fs/intermezzo/vfs.c
patching file linux-2.4.22/fs/jfs/xattr.c
patching file linux-2.4.22/fs/namei.c
Hunk #4 succeeded at 1629 (offset 3 lines).
patching file linux-2.4.22/fs/nfsd/vfs.c
patching file linux-2.4.22/fs/open.c
Hunk #2 succeeded at 493 (offset 13 lines).
Hunk #3 succeeded at 524 (offset 13 lines).
Hunk #4 succeeded at 554 (offset 13 lines).
patching file linux-2.4.22/fs/proc/array.c
patching file linux-2.4.22/fs/proc/base.c
patching file linux-2.4.22/fs/quota.c
patching file linux-2.4.22/fs/reiserfs/inode.c
patching file linux-2.4.22/fs/reiserfs/ioctl.c
patching file linux-2.4.22/fs/udf/inode.c
patching file linux-2.4.22/fs/ufs/truncate.c
patching file linux-2.4.22/include/asm-alpha/unistd.h
patching file linux-2.4.22/include/asm-i386/unistd.h
patching file linux-2.4.22/include/asm-ppc/unistd.h
patching file linux-2.4.22/include/asm-sparc/unistd.h
patching file linux-2.4.22/include/asm-sparc64/unistd.h
patching file linux-2.4.22/include/asm-x86_64/ia32_unistd.h
patching file linux-2.4.22/include/asm-x86_64/unistd.h
patching file linux-2.4.22/include/linux/capability.h
patching file linux-2.4.22/include/linux/devpts_fs_info.h
patching file linux-2.4.22/include/linux/ext2_fs.h
patching file linux-2.4.22/include/linux/ext3_fs.h
patching file linux-2.4.22/include/linux/fs.h
Hunk #1 succeeded at 133 (offset 1 line).
Hunk #2 succeeded at 160 with fuzz 1 (offset 1 line).
Hunk #3 succeeded at 328 (offset 4 lines).
Hunk #4 succeeded at 373 (offset 4 lines).
Hunk #5 succeeded at 525 (offset 4 lines).
patching file linux-2.4.22/include/linux/reiserfs_fs.h
patching file linux-2.4.22/include/linux/sched.h
Hunk #5 succeeded at 575 (offset 1 line).
Hunk #6 succeeded at 640 (offset 1 line).
Hunk #7 succeeded at 1010 (offset 1 line).
patching file linux-2.4.22/include/linux/sys.h
patching file linux-2.4.22/include/linux/virtual.h
patching file linux-2.4.22/include/net/route.h
patching file linux-2.4.22/include/net/sock.h
patching file linux-2.4.22/include/net/tcp.h
patching file linux-2.4.22/ipc/util.c
patching file linux-2.4.22/ipc/util.h
patching file linux-2.4.22/kernel/Makefile
patching file linux-2.4.22/kernel/exit.c
patching file linux-2.4.22/kernel/fork.c
patching file linux-2.4.22/kernel/printk.c
patching file linux-2.4.22/kernel/sched.c
patching file linux-2.4.22/kernel/signal.c
patching file linux-2.4.22/kernel/sys.c
patching file linux-2.4.22/kernel/sysctl.c
Hunk #1 succeeded at 399 (offset 7 lines).
Hunk #2 succeeded at 816 (offset 7 lines).
patching file linux-2.4.22/kernel/timer.c
patching file linux-2.4.22/kernel/user.c
patching file linux-2.4.22/kernel/virtual.c
patching file linux-2.4.22/net/ipv4/af_inet.c
patching file linux-2.4.22/net/ipv4/devinet.c
patching file linux-2.4.22/net/ipv4/raw.c
patching file linux-2.4.22/net/ipv4/tcp_ipv4.c
patching file linux-2.4.22/net/ipv4/tcp_minisocks.c
patching file linux-2.4.22/net/ipv4/udp.c
patching file linux-2.4.22/net/ipv6/raw.c
patching file linux-2.4.22/net/ipv6/tcp_ipv6.c
patching file linux-2.4.22/net/ipv6/udp.c
patching file linux-2.4.22/net/socket.c
patching file linux-2.4.22/net/unix/af_unix.c
***************
*** 1,7 ****
  VERSION = 2
  PATCHLEVEL = 4
  SUBLEVEL = 22
- EXTRAVERSION =
  
  KERNELRELEASE=$(VERSION).$(PATCHLEVEL).$(SUBLEVEL)$(EXTRAVERSION)
  
--- 1,7 ----
  VERSION = 2
  PATCHLEVEL = 4
  SUBLEVEL = 22
+ EXTRAVERSION = -c17h
  
  KERNELRELEASE=$(VERSION).$(PATCHLEVEL).$(SUBLEVEL)$(EXTRAVERSION)
  

Reply via email to