Messages in this thread Patch in this message | | | From | "Christian Groessler" <> | Date | Tue, 11 Aug 1998 23:47:49 +0100 | Subject | compile error 2.1.115 without sysctl support |
| |
Hi, the following happened when I tried to compile 2.1.115 on Alpha (should happen on other targets too):
--------------- ld -static -T arch/alpha/vmlinux.lds arch/alpha/kernel/head.o init/main.o init/version.o \ arch/alpha/kernel/kernel.o arch/alpha/mm/mm.o kernel/kernel.o mm/mm.o fs/fs.o ipc/ipc.o arch/alpha/math-emu/math-emu.o \ fs/filesystems.a \ net/network.a \ drivers/block/block.a drivers/char/char.a drivers/misc/misc.a drivers/net/net.a drivers/scsi/scsi.a drivers/cdrom/cdrom.a drivers/pci/pci.a drivers/video/video.a \ /usr/src/linux-2.1.115/arch/alpha/lib/lib.a /usr/src/linux-2.1.115/lib/lib.a /usr/src/linux-2.1.115/arch/alpha/lib/lib.a \ -o vmlinux fs/filesystems.a(proc.o): In function `init_proc_fs': procfs_syms.c(__ksymtab+0x0): undefined reference to `proc_sys_root' make: *** [vmlinux] Error 1 ---------------
I think that proc_sys_root should completely disappear, when CONFIG_SYSCTL isn't set? If yes, then here's a suggested fix:
--------------- --- fs/proc/procfs_syms.c.org Sun Jul 26 01:43:15 1998 +++ fs/proc/procfs_syms.c Tue Aug 11 23:30:39 1998 @@ -11,9 +11,12 @@ extern int (* dispatch_scsi_info_ptr) (int ino, char *buffer, char **start, off_t offset, int length, int inout); extern struct inode_operations proc_scsi_inode_operations; -extern struct proc_dir_entry proc_sys_root;
+#ifdef CONFIG_SYSCTL +extern struct proc_dir_entry proc_sys_root; EXPORT_SYMBOL(proc_sys_root); +#endif + EXPORT_SYMBOL(proc_register); EXPORT_SYMBOL(proc_unregister); EXPORT_SYMBOL(create_proc_entry); --------------- regards, chris
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.altern.org/andrebalsa/doc/lkml-faq.html
| |