Messages in this thread | | | Date | Tue, 2 Apr 1996 11:23:32 +0200 | From | "W. Friess" <> | Subject | Cannot compile 1.3.77-81 |
| |
Greetings to all!
Since (I think) 1.3.77 I can no longer compile the kernel with my special configuration. Compiling the distribution kernel leads to error messages about undeclared symbols in net/netsyms.c (shown for the 1.3.81 kernel):
make[2]: Entering directory `/usr/src/linux/net' gcc -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -fno-strength-reduce -pipe -m486 -malign-loops=2 -malign-jumps=2 -malign-functions=2 -DCPU=586 -c -o netsyms.o netsyms.c netsyms.c:65: `sock_setsockopt' undeclared here (not in a function) netsyms.c:65: initializer element for `net_syms.symbol[3].addr' is not constant netsyms.c:66: `sock_getsockopt' undeclared here (not in a function) netsyms.c:66: initializer element for `net_syms.symbol[4].addr' is not constant netsyms.c:68: `sock_alloc_send_skb' undeclared here (not in a function) netsyms.c:68: initializer element for `net_syms.symbol[6].addr' is not constant make[2]: *** [netsyms.o] Error 1 make[2]: Leaving directory `/usr/src/linux/net' make[1]: *** [first_rule] Error 2 make[1]: Leaving directory `/usr/src/linux/net' make: *** [linuxsubdirs] Error 2
I can fix this one by including
#include <net/sock.h> in netsyms.c, but then I run into a linker error:
ld -m elf_i386 -Ttext 0x100000 -e stext arch/i386/kernel/head.o init/main.o init/version.o \ arch/i386/kernel/kernel.o arch/i386/mm/mm.o kernel/kernel.o mm/mm.o fs/fs.o ipc/ipc.o net/network.a \ fs/filesystems.a \ drivers/block/block.a drivers/char/char.a drivers/net/net.a drivers/scsi/scsi.a drivers/pci/pci.a \ /usr/src/linux/arch/i386/lib/lib.a /usr/src/linux/lib/lib.a /usr/src/linux/arch/i386/lib/lib.a -o vmlinux drivers/net/net.a(loopback.o): In function `loopback_xmit': loopback.o(.text+0x78): undefined reference to `eth_type_trans' drivers/net/net.a(loopback.o): In function `loopback_init': loopback.o(.text+0xed): undefined reference to `eth_header' loopback.o(.text+0x10e): undefined reference to `eth_rebuild_header' make: *** [vmlinux] Error 1
which I do not understand, since the functions mentioned _are_ compiled into the archive net/net.a. I do not know if the error is really kernel related, or if my compiler configuration can be responsible for it. In any case, it appears on my Pentium 133 PCI/SCSI box as well as on my old 486 VLB (with the configuration appended). Other configurations compile well.
My compiler configuration is gcc 2.7.2(no-sr-bug), binutils 2.6.0.10 (or 2.6.0.2), ld.so.1.7.14, make 3.74 with direntfix. Currently I run 1.3.76.
Any help is appreciated!
Best regards, Wolfgang.
/usr/src/linux/.config: # # Automatically generated make config: don't edit #
# # Loadable module support # CONFIG_MODULES=y # CONFIG_MODVERSIONS is not set CONFIG_KERNELD=y
# # General setup # # CONFIG_MATH_EMULATION is not set CONFIG_NET=y # CONFIG_MAX_16M is not set CONFIG_PCI=y CONFIG_PCI_OPTIMIZE=y CONFIG_SYSVIPC=y CONFIG_BINFMT_AOUT=y CONFIG_BINFMT_ELF=y CONFIG_KERNEL_ELF=y # CONFIG_M386 is not set # CONFIG_M486 is not set CONFIG_M586=y # CONFIG_M686 is not set
# # Floppy, IDE, and other block devices # CONFIG_BLK_DEV_FD=m CONFIG_BLK_DEV_IDE=y
# # Please see drivers/block/README.ide for help/info on IDE drives # # CONFIG_BLK_DEV_HD_IDE is not set # CONFIG_BLK_DEV_IDECD is not set # CONFIG_BLK_DEV_IDETAPE is not set # CONFIG_BLK_DEV_IDE_PCMCIA is not set # CONFIG_BLK_DEV_CMD640 is not set # CONFIG_BLK_DEV_RZ1000 is not set CONFIG_BLK_DEV_TRITON=y # CONFIG_IDE_CHIPSETS is not set CONFIG_BLK_DEV_RAM=m # CONFIG_BLK_DEV_LOOP is not set # CONFIG_BLK_DEV_XD is not set # CONFIG_BLK_DEV_MD is not set
# # Networking options # # CONFIG_FIREWALL is not set # CONFIG_NET_ALIAS is not set # CONFIG_INET is not set
# # # # CONFIG_IPX is not set # CONFIG_ATALK is not set # CONFIG_AX25 is not set # CONFIG_NETLINK is not set
# # SCSI support # CONFIG_SCSI=y
# # SCSI support type (disk, tape, CDrom) # CONFIG_BLK_DEV_SD=y CONFIG_CHR_DEV_ST=m CONFIG_BLK_DEV_SR=m CONFIG_CHR_DEV_SG=m
# # Some SCSI devices (e.g. CD jukebox) support multiple LUNs # # CONFIG_SCSI_MULTI_LUN is not set # CONFIG_SCSI_CONSTANTS is not set # CONFIG_SCSI_AUTO_BIOSP is not set
# # SCSI low-level drivers # # CONFIG_SCSI_ADVANSYS is not set # CONFIG_SCSI_AHA152X is not set # CONFIG_SCSI_AHA1542 is not set # CONFIG_SCSI_AHA1740 is not set CONFIG_SCSI_AIC7XXX=y # CONFIG_SCSI_BUSLOGIC is not set # CONFIG_SCSI_EATA_DMA is not set # CONFIG_SCSI_EATA_PIO is not set # CONFIG_SCSI_U14_34F is not set # CONFIG_SCSI_FUTURE_DOMAIN is not set # CONFIG_SCSI_GENERIC_NCR5380 is not set # CONFIG_SCSI_NCR53C7xx is not set # CONFIG_SCSI_IN2000 is not set # CONFIG_SCSI_PAS16 is not set # CONFIG_SCSI_QLOGIC is not set # CONFIG_SCSI_SEAGATE is not set # CONFIG_SCSI_T128 is not set # CONFIG_SCSI_ULTRASTOR is not set # CONFIG_SCSI_7000FASST is not set # CONFIG_SCSI_EATA is not set # CONFIG_SCSI_NCR53C406A is not set # CONFIG_SCSI_PPA is not set # CONFIG_SCSI_AM53C974 is not set
# # Network device support # CONFIG_NETDEVICES=y # CONFIG_DUMMY is not set # CONFIG_SLIP is not set # CONFIG_PPP is not set # CONFIG_SCC is not set # CONFIG_PLIP is not set # CONFIG_EQUALIZER is not set # CONFIG_FRAD is not set # CONFIG_NET_ALPHA is not set CONFIG_NET_VENDOR_SMC=y CONFIG_WD80x3=m CONFIG_ULTRA=m # CONFIG_SMC9194 is not set # CONFIG_LANCE is not set # CONFIG_NET_VENDOR_3COM is not set # CONFIG_NET_ISA is not set # CONFIG_NET_EISA is not set # CONFIG_NET_POCKET is not set # CONFIG_TR is not set # CONFIG_ARCNET is not set
# # ISDN subsystem # # CONFIG_ISDN is not set
# # CD-ROM drivers (not for SCSI or IDE/ATAPI drives) # # CONFIG_CD_NO_IDESCSI is not set
# # Filesystems # # CONFIG_QUOTA is not set CONFIG_MINIX_FS=m # CONFIG_EXT_FS is not set CONFIG_EXT2_FS=y # CONFIG_XIA_FS is not set CONFIG_FAT_FS=m CONFIG_MSDOS_FS=m CONFIG_VFAT_FS=m CONFIG_UMSDOS_FS=m CONFIG_PROC_FS=y CONFIG_ISO9660_FS=m # CONFIG_HPFS_FS is not set CONFIG_SYSV_FS=m
# # Character devices # CONFIG_SERIAL=y # CONFIG_CYCLADES is not set # CONFIG_STALDRV is not set CONFIG_PRINTER=m # CONFIG_BUSMOUSE is not set # CONFIG_PSMOUSE is not set # CONFIG_MS_BUSMOUSE is not set # CONFIG_ATIXL_BUSMOUSE is not set # CONFIG_UMISC is not set # CONFIG_QIC02_TAPE is not set CONFIG_FTAPE=m
# # Set IObase/IRQ/DMA for ftape in ./drivers/char/ftape/Makefile # # CONFIG_APM is not set # CONFIG_WATCHDOG is not set
# # Sound # # CONFIG_SOUND is not set
# # Kernel hacking # # CONFIG_PROFILE is not set
| |