2.4.15-pre3 compile failure
make[3]: Entering directory `/home/barryn/lsoft/kernels/2.4/build/linux-2.4.15-pre3-iserv/fs/proc'
gcc -D__KERNEL__ -I/home/barryn/lsoft/kernels/2.4/build/linux-2.4.15-pre3-iserv/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fomit-frame-pointer -fno-strict-aliasing -fno-common -pipe -mpreferred-stack-boundary=2 -march=i686 -c -o proc_misc.o proc_misc.cproc_misc.c: In function `proc_misc_init':
proc_misc.c:573: `proc_ksyms_operations' undeclared (first use in this function)proc_misc.c:573: (Each undeclared identifier is reported only once proc_misc.c:573: for each function it appears in.)
make[3]: *** [proc_misc.o] Error 1
make[3]: Leaving directory `/home/barryn/lsoft/kernels/2.4/build/linux-2.4.15-pre3-iserv/fs/proc'
make[2]: *** [first_rule] Error 2
make[2]: Leaving directory `/home/barryn/lsoft/kernels/2.4/build/linux-2.4.15-pre3-iserv/fs/proc'
make[1]: *** [_subdir_proc] Error 2
make[1]: Leaving directory `/home/barryn/lsoft/kernels/2.4/build/linux-2.4.15-pre3-iserv/fs'
make: *** [_dir_fs] Error 2
grep ^C .config follows. Perhaps most notable is that this kernel is being built without module support.
-Barry K. Nathan <[email protected]>
CONFIG_X86=yCONFIG_ISA=yCONFIG_UID16=yCONFIG_EXPERIMENTAL=yCONFIG_M686=yCONFIG_X86_WP_WORKS_OK=yCONFIG_X86_INVLPG=yCONFIG_X86_CMPXCHG=yCONFIG_X86_XADD=yCONFIG_X86_BSWAP=yCONFIG_X86_POPAD_OK=yCONFIG_RWSEM_XCHGADD_ALGORITHM=yCONFIG_X86_L1_CACHE_SHIFT=5CONFIG_X86_TSC=yCONFIG_X86_GOOD_APIC=yCONFIG_X86_PGE=yCONFIG_X86_USE_PPRO_CHECKSUM=yCONFIG_NOHIGHMEM=yCONFIG_MTRR=yCONFIG_X86_UP_APIC=yCONFIG_X86_UP_IOAPIC=yCONFIG_X86_LOCAL_APIC=yCONFIG_X86_IO_APIC=yCONFIG_NET=yCONFIG_PCI=yCONFIG_PCI_GOANY=yCONFIG_PCI_BIOS=yCONFIG_PCI_DIRECT=yCONFIG_PCI_NAMES=yCONFIG_HOTPLUG=yCONFIG_SYSVIPC=yCONFIG_SYSCTL=yCONFIG_KCORE_ELF=yCONFIG_BINFMT_ELF=yCONFIG_PM=yCONFIG_APM=yCONFIG_BLK_DEV_FD=yCONFIG_BLK_DEV_LOOP=yCONFIG_PACKET=yCONFIG_NETLINK=yCONFIG_RTNETLINK=yCONFIG_NETFILTER=yCONFIG_UNIX=yCONFIG_INET=yCONFIG_IP_ADVANCED_ROUTER=yCONFIG_RTNETLINK=yCONFIG_NETLINK=yCONFIG_IP_ROUTE_VERBOSE=yCONFIG_INET_ECN=yCONFIG_SYN_COOKIES=yCONFIG_IP_NF_COMPAT_IPCHAINS=yCONFIG_IP_NF_NAT_NEEDED=yCONFIG_IDE=yCONFIG_BLK_DEV_IDE=yCONFIG_BLK_DEV_IDEDISK=yCONFIG_IDEDISK_MULTI_MODE=yCONFIG_BLK_DEV_IDECD=yCONFIG_BLK_DEV_IDEPCI=yCONFIG_IDEPCI_SHARE_IRQ=yCONFIG_BLK_DEV_IDEDMA_PCI=yCONFIG_BLK_DEV_ADMA=yCONFIG_IDEDMA_PCI_AUTO=yCONFIG_BLK_DEV_IDEDMA=yCONFIG_BLK_DEV_SIS5513=yCONFIG_IDEDMA_AUTO=yCONFIG_BLK_DEV_IDE_MODES=yCONFIG_NETDEVICES=yCONFIG_DUMMY=yCONFIG_NET_ETHERNET=yCONFIG_NET_PCI=yCONFIG_PCNET32=yCONFIG_PPP=yCONFIG_PPP_ASYNC=yCONFIG_PPP_DEFLATE=yCONFIG_VT=yCONFIG_VT_CONSOLE=yCONFIG_SERIAL=yCONFIG_UNIX98_PTYS=yCONFIG_UNIX98_PTY_COUNT=256CONFIG_FAT_FS=yCONFIG_MSDOS_FS=yCONFIG_VFAT_FS=yCONFIG_TMPFS=yCONFIG_ISO9660_FS=yCONFIG_JOLIET=yCONFIG_MINIX_FS=yCONFIG_PROC_FS=yCONFIG_DEVPTS_FS=yCONFIG_EXT2_FS=yCONFIG_MSDOS_PARTITION=yCONFIG_NLS=yCONFIG_NLS_DEFAULT="iso8859-1"CONFIG_NLS_CODEPAGE_437=yCONFIG_NLS_CODEPAGE_850=yCONFIG_NLS_ISO8859_1=yCONFIG_NLS_ISO8859_15=yCONFIG_NLS_UTF8=yCONFIG_VGA_CONSOLE=yCONFIG_USB=yCONFIG_USB_DEVICEFS=yCONFIG_USB_OHCI=yCONFIG_USB_SERIAL=yCONFIG_USB_SERIAL_PL2303=y
Quoted 3 lines · Barry K. Nathan
proc_misc.c: In function `proc_misc_init':
proc_misc.c:573: `proc_ksyms_operations' undeclared (first use in this function)proc_misc.c:573: (Each undeclared identifier is reported only once proc_misc.c:573: for each function it appears in.)
Hm, this was a bug in 2.4.13-ac8. I guess Linus merged it into pre3. I sent Alan a patch, here it is:
fs/proc/proc_misc.c +2 -0
@@ -619,9 +619,11 @@ entry =create_proc_entry ("mounts" ,0 ,NULL );if (entry) entry->proc_fops = &proc_mounts_operations; +#ifdef CONFIG_MODULES entry =create_proc_entry ("ksyms" ,0 ,NULL );if (entry) entry->proc_fops = &proc_ksyms_operations; +#endif proc_root_kcore =create_proc_entry ("kcore" ,S_IRUSR ,NULL );if (proc_root_kcore) { proc_root_kcore->proc_fops = &proc_kcore_operations;
Robert Love