2000-12-16 05:27:47

by Mohammad A. Haque

[permalink] [raw]
Subject: test13pre2 - netfilter modiles compile failure

ld -m elf_i386 -r -o ip_nf_compat.o ipfwadm_core.o ip_fw_compat.o
ip_fw_compat_redir.o ip_fw_compat_masq.o ip_conntrack_standalone.o
ip_conntrack_core.o ip_conntrack_proto_generic.o
ip_conntrack_proto_tcp.o ip_conntrack_proto_udp.o
ip_conntrack_proto_icmp.o ip_nat_standalone.o ip_nat_rule.o
ip_nat_core.o ip_nat_proto_unknown.o ip_nat_proto_tcp.o
ip_nat_proto_udp.o ip_nat_proto_icmp.o
ip_conntrack_standalone.o: In function `init_module':
ip_conntrack_standalone.o(.text+0x6a4): multiple definition of
`init_module'
ip_fw_compat.o(.text+0x3dc): first defined here
ip_conntrack_standalone.o: In function `cleanup_module':
ip_conntrack_standalone.o(.text+0x6b0): multiple definition of
`cleanup_module'
ip_fw_compat.o(.text+0x3e8): first defined here
ip_nat_standalone.o: In function `init_module':
ip_nat_standalone.o(.text+0x78c): multiple definition of `init_module'
ip_fw_compat.o(.text+0x3dc): first defined here
ip_nat_standalone.o: In function `cleanup_module':
ip_nat_standalone.o(.text+0x798): multiple definition of
`cleanup_module'
ip_fw_compat.o(.text+0x3e8): first defined here
make[2]: *** [ip_nf_compat.o] Error 1
make[2]: Leaving directory
`/usr/src/linux-2.4.0-test13/net/ipv4/netfilter'

--

=====================================================================
Mohammad A. Haque http://www.haque.net/
[email protected]

"Alcohol and calculus don't mix. Project Lead
Don't drink and derive." --Unknown http://wm.themes.org/
[email protected]
=====================================================================


2000-12-16 06:23:19

by Barry K. Nathan

[permalink] [raw]
Subject: Re: test13pre2 - netfilter modiles compile failure

I got the same error with the ipchains-compatible netfilter compiled as
modules. Compiling into the kernel instead, I also get an error. I've
included the error and my .config below.

-Barry K. Nathan <[email protected]>

ld -m elf_i386 -r -o netfilter.o ipchains.o ip_nf_compat.o
ip_nf_compat.o: In function `ip_fw_ctl':
ip_nf_compat.o(.text+0xf00): multiple definition of `ip_fw_ctl'
ipchains.o(.text+0x1280): first defined here
ld: Warning: size of symbol `ip_fw_ctl' changed from 1098 to 449 in
ip_nf_compat.o
ip_nf_compat.o: In function `ipfw_input_check':
ip_nf_compat.o(.text+0x13a0): multiple definition of `ipfw_input_check'
ipchains.o(.text+0x19e0): first defined here
ld: Warning: size of symbol `ipfw_input_check' changed from 65 to 40 in
ip_nf_compat.o
ip_nf_compat.o: In function `ipfw_forward_check':
ip_nf_compat.o(.text+0x1400): multiple definition of `ipfw_forward_check'
ipchains.o(.text+0x1a90): first defined here
ld: Warning: size of symbol `ipfw_forward_check' changed from 68 to 40 in
ip_nf_compat.o
ip_nf_compat.o(.data+0x2c): multiple definition of `ipfw_ops'
ipchains.o(.data+0x4): first defined here
ip_nf_compat.o: In function `ipfw_output_check':
ip_nf_compat.o(.text+0x13d0): multiple definition of `ipfw_output_check'
ipchains.o(.text+0x1a30): first defined here
ld: Warning: size of symbol `ipfw_output_check' changed from 96 to 40 in
ip_nf_compat.o
ip_nf_compat.o: In function `ipfw_init_or_cleanup':
ip_nf_compat.o(.text+0x1560): multiple definition of
`ipfw_init_or_cleanup'
ipchains.o(.text+0x1ae0): first defined here
ld: Warning: size of symbol `ipfw_init_or_cleanup' changed from 359 to 382
in ip_nf_compat.o
make[3]: *** [netfilter.o] Error 1
make[3]: Leaving directory
`/home/barryn/lsoft/kernels/buildspace/linux-2.4.0test13pre2-ath/net/ipv4/netfilter'
make[2]: *** [first_rule] Error 2
make[2]: Leaving directory
`/home/barryn/lsoft/kernels/buildspace/linux-2.4.0test13pre2-ath/net/ipv4/netfilter'
make[1]: *** [_subdir_ipv4/netfilter] Error 2
make[1]: Leaving directory
`/home/barryn/lsoft/kernels/buildspace/linux-2.4.0test13pre2-ath/net'
make: *** [_dir_net] Error 2

#
# Automatically generated by make menuconfig: don't edit
#
CONFIG_X86=y
CONFIG_ISA=y
# CONFIG_SBUS is not set
CONFIG_UID16=y

#
# Code maturity level options
#
CONFIG_EXPERIMENTAL=y

#
# Loadable module support
#
CONFIG_MODULES=y
CONFIG_MODVERSIONS=y
CONFIG_KMOD=y

#
# Processor type and features
#
# CONFIG_M386 is not set
# CONFIG_M486 is not set
# CONFIG_M586 is not set
# CONFIG_M586TSC is not set
# CONFIG_M586MMX is not set
# CONFIG_M686 is not set
# CONFIG_M686FXSR is not set
# CONFIG_MPENTIUM4 is not set
# CONFIG_MK6 is not set
CONFIG_MK7=y
# CONFIG_MCRUSOE is not set
# CONFIG_MWINCHIPC6 is not set
# CONFIG_MWINCHIP2 is not set
# CONFIG_MWINCHIP3D is not set
CONFIG_X86_WP_WORKS_OK=y
CONFIG_X86_INVLPG=y
CONFIG_X86_CMPXCHG=y
CONFIG_X86_BSWAP=y
CONFIG_X86_POPAD_OK=y
CONFIG_X86_L1_CACHE_SHIFT=6
CONFIG_X86_TSC=y
CONFIG_X86_GOOD_APIC=y
CONFIG_X86_USE_3DNOW=y
CONFIG_X86_PGE=y
CONFIG_X86_USE_PPRO_CHECKSUM=y
# CONFIG_TOSHIBA is not set
# CONFIG_MICROCODE is not set
# CONFIG_X86_MSR is not set
# CONFIG_X86_CPUID is not set
CONFIG_NOHIGHMEM=y
# CONFIG_HIGHMEM4G is not set
# CONFIG_HIGHMEM64G is not set
# CONFIG_MATH_EMULATION is not set
CONFIG_MTRR=y
# CONFIG_SMP is not set
# CONFIG_X86_UP_IOAPIC is not set

#
# General setup
#
CONFIG_NET=y
# CONFIG_VISWS is not set
CONFIG_PCI=y
# CONFIG_PCI_GOBIOS is not set
# CONFIG_PCI_GODIRECT is not set
CONFIG_PCI_GOANY=y
CONFIG_PCI_BIOS=y
CONFIG_PCI_DIRECT=y
CONFIG_PCI_NAMES=y
# CONFIG_EISA is not set
# CONFIG_MCA is not set
# CONFIG_HOTPLUG is not set
# CONFIG_PCMCIA is not set
CONFIG_SYSVIPC=y
# CONFIG_BSD_PROCESS_ACCT is not set
CONFIG_SYSCTL=y
CONFIG_KCORE_ELF=y
# CONFIG_KCORE_AOUT is not set
# CONFIG_BINFMT_AOUT is not set
CONFIG_BINFMT_ELF=y
CONFIG_BINFMT_MISC=m
CONFIG_PM=y
# CONFIG_ACPI is not set
CONFIG_APM=m
# CONFIG_APM_IGNORE_USER_SUSPEND is not set
# CONFIG_APM_DO_ENABLE is not set
# CONFIG_APM_CPU_IDLE is not set
# CONFIG_APM_DISPLAY_BLANK is not set
# CONFIG_APM_RTC_IS_GMT is not set
# CONFIG_APM_ALLOW_INTS is not set
# CONFIG_APM_REAL_MODE_POWER_OFF is not set

#
# Memory Technology Devices (MTD)
#
# CONFIG_MTD is not set

#
# Parallel port support
#
CONFIG_PARPORT=m
CONFIG_PARPORT_PC=m
# CONFIG_PARPORT_PC_FIFO is not set
# CONFIG_PARPORT_PC_SUPERIO is not set
# CONFIG_PARPORT_AMIGA is not set
# CONFIG_PARPORT_MFC3 is not set
# CONFIG_PARPORT_ATARI is not set
# CONFIG_PARPORT_SUNBPP is not set
# CONFIG_PARPORT_OTHER is not set
CONFIG_PARPORT_1284=y

#
# Plug and Play configuration
#
# CONFIG_PNP is not set
# CONFIG_ISAPNP is not set

#
# Block devices
#
CONFIG_BLK_DEV_FD=y
# CONFIG_BLK_DEV_XD is not set
# CONFIG_PARIDE is not set
# CONFIG_BLK_CPQ_DA is not set
# CONFIG_BLK_CPQ_CISS_DA is not set
# CONFIG_BLK_DEV_DAC960 is not set
CONFIG_BLK_DEV_LOOP=m
# CONFIG_BLK_DEV_NBD is not set
# CONFIG_BLK_DEV_RAM is not set
# CONFIG_BLK_DEV_INITRD is not set

#
# Multi-device support (RAID and LVM)
#
CONFIG_MD=y
CONFIG_BLK_DEV_MD=y
# CONFIG_MD_LINEAR is not set
CONFIG_MD_RAID0=y
# CONFIG_MD_RAID1 is not set
# CONFIG_MD_RAID5 is not set
CONFIG_MD_BOOT=y
CONFIG_AUTODETECT_RAID=y
# CONFIG_BLK_DEV_LVM is not set
# CONFIG_LVM_PROC_FS is not set

#
# Networking options
#
CONFIG_PACKET=m
# CONFIG_PACKET_MMAP is not set
CONFIG_NETLINK=y
# CONFIG_RTNETLINK is not set
CONFIG_NETLINK_DEV=m
CONFIG_NETFILTER=y
CONFIG_NETFILTER_DEBUG=y
# CONFIG_FILTER is not set
CONFIG_UNIX=y
CONFIG_INET=y
# CONFIG_IP_MULTICAST is not set
# CONFIG_IP_ADVANCED_ROUTER is not set
# CONFIG_IP_PNP is not set
# CONFIG_NET_IPIP is not set
# CONFIG_NET_IPGRE is not set
CONFIG_INET_ECN=y
CONFIG_SYN_COOKIES=y

#
# IP: Netfilter Configuration
#
# CONFIG_IP_NF_CONNTRACK is not set
# CONFIG_IP_NF_QUEUE is not set
# CONFIG_IP_NF_IPTABLES is not set
CONFIG_IP_NF_COMPAT_IPCHAINS=y
CONFIG_IP_NF_NAT_NEEDED=y
# CONFIG_IPV6 is not set
# CONFIG_KHTTPD is not set
# CONFIG_ATM is not set
# CONFIG_IPX is not set
# CONFIG_ATALK is not set
# CONFIG_DECNET is not set
# CONFIG_BRIDGE is not set
# CONFIG_X25 is not set
# CONFIG_LAPB is not set
# CONFIG_LLC is not set
# CONFIG_NET_DIVERT is not set
# CONFIG_ECONET is not set
# CONFIG_WAN_ROUTER is not set
# CONFIG_NET_FASTROUTE is not set
# CONFIG_NET_HW_FLOWCONTROL is not set

#
# QoS and/or fair queueing
#
# CONFIG_NET_SCHED is not set

#
# Telephony Support
#
# CONFIG_PHONE is not set
# CONFIG_PHONE_IXJ is not set

#
# ATA/IDE/MFM/RLL support
#
CONFIG_IDE=y

#
# IDE, ATA and ATAPI Block devices
#
CONFIG_BLK_DEV_IDE=y
# CONFIG_BLK_DEV_HD_IDE is not set
# CONFIG_BLK_DEV_HD is not set
CONFIG_BLK_DEV_IDEDISK=y
CONFIG_IDEDISK_MULTI_MODE=y
# CONFIG_BLK_DEV_IDEDISK_VENDOR is not set
# CONFIG_BLK_DEV_IDEDISK_FUJITSU is not set
# CONFIG_BLK_DEV_IDEDISK_IBM is not set
# CONFIG_BLK_DEV_IDEDISK_MAXTOR is not set
# CONFIG_BLK_DEV_IDEDISK_QUANTUM is not set
# CONFIG_BLK_DEV_IDEDISK_SEAGATE is not set
# CONFIG_BLK_DEV_IDEDISK_WD is not set
# CONFIG_BLK_DEV_COMMERIAL is not set
# CONFIG_BLK_DEV_TIVO is not set
# CONFIG_BLK_DEV_IDECS is not set
CONFIG_BLK_DEV_IDECD=m
# CONFIG_BLK_DEV_IDETAPE is not set
# CONFIG_BLK_DEV_IDEFLOPPY is not set
# CONFIG_BLK_DEV_IDESCSI is not set
# CONFIG_BLK_DEV_CMD640 is not set
# CONFIG_BLK_DEV_CMD640_ENHANCED is not set
# CONFIG_BLK_DEV_ISAPNP is not set
# CONFIG_BLK_DEV_RZ1000 is not set
CONFIG_BLK_DEV_IDEPCI=y
# CONFIG_IDEPCI_SHARE_IRQ is not set
CONFIG_BLK_DEV_IDEDMA_PCI=y
# CONFIG_BLK_DEV_OFFBOARD is not set
CONFIG_IDEDMA_PCI_AUTO=y
CONFIG_BLK_DEV_IDEDMA=y
CONFIG_IDEDMA_PCI_WIP=y
# CONFIG_IDEDMA_NEW_DRIVE_LISTINGS is not set
# CONFIG_BLK_DEV_AEC62XX is not set
# CONFIG_AEC62XX_TUNING is not set
# CONFIG_BLK_DEV_ALI15X3 is not set
# CONFIG_WDC_ALI15X3 is not set
CONFIG_BLK_DEV_AMD7409=y
# CONFIG_AMD7409_OVERRIDE is not set
# CONFIG_BLK_DEV_CMD64X is not set
# CONFIG_BLK_DEV_CY82C693 is not set
# CONFIG_BLK_DEV_CS5530 is not set
# CONFIG_BLK_DEV_HPT34X is not set
# CONFIG_HPT34X_AUTODMA is not set
# CONFIG_BLK_DEV_HPT366 is not set
# CONFIG_BLK_DEV_PIIX is not set
# CONFIG_PIIX_TUNING is not set
# CONFIG_BLK_DEV_NS87415 is not set
# CONFIG_BLK_DEV_OPTI621 is not set
# CONFIG_BLK_DEV_PDC202XX is not set
# CONFIG_PDC202XX_BURST is not set
# CONFIG_BLK_DEV_OSB4 is not set
# CONFIG_BLK_DEV_SIS5513 is not set
# CONFIG_BLK_DEV_SLC90E66 is not set
# CONFIG_BLK_DEV_TRM290 is not set
# CONFIG_BLK_DEV_VIA82CXXX is not set
# CONFIG_IDE_CHIPSETS is not set
CONFIG_IDEDMA_AUTO=y
# CONFIG_IDEDMA_IVB is not set
# CONFIG_DMA_NONPCI is not set
CONFIG_BLK_DEV_IDE_MODES=y

#
# SCSI support
#
CONFIG_SCSI=m
CONFIG_BLK_DEV_SD=m
CONFIG_SD_EXTRA_DEVS=1
CONFIG_CHR_DEV_ST=m
CONFIG_BLK_DEV_SR=m
# CONFIG_BLK_DEV_SR_VENDOR is not set
CONFIG_SR_EXTRA_DEVS=1
CONFIG_CHR_DEV_SG=m
# CONFIG_SCSI_DEBUG_QUEUES is not set
# CONFIG_SCSI_MULTI_LUN is not set
CONFIG_SCSI_CONSTANTS=y
CONFIG_SCSI_LOGGING=y

#
# SCSI low-level drivers
#
# CONFIG_BLK_DEV_3W_XXXX_RAID is not set
# CONFIG_SCSI_7000FASST is not set
# CONFIG_SCSI_ACARD is not set
# CONFIG_SCSI_AHA152X is not set
# CONFIG_SCSI_AHA1542 is not set
# CONFIG_SCSI_AHA1740 is not set
CONFIG_SCSI_AIC7XXX=m
CONFIG_AIC7XXX_TCQ_ON_BY_DEFAULT=y
CONFIG_AIC7XXX_CMDS_PER_DEVICE=8
# CONFIG_AIC7XXX_PROC_STATS is not set
CONFIG_AIC7XXX_RESET_DELAY=5
# CONFIG_SCSI_ADVANSYS is not set
# CONFIG_SCSI_IN2000 is not set
# CONFIG_SCSI_AM53C974 is not set
# CONFIG_SCSI_MEGARAID is not set
# CONFIG_SCSI_BUSLOGIC is not set
# CONFIG_SCSI_CPQFCTS is not set
# CONFIG_SCSI_DMX3191D is not set
# CONFIG_SCSI_DTC3280 is not set
# CONFIG_SCSI_EATA is not set
# CONFIG_SCSI_EATA_DMA is not set
# CONFIG_SCSI_EATA_PIO is not set
# CONFIG_SCSI_FUTURE_DOMAIN is not set
# CONFIG_SCSI_GDTH is not set
# CONFIG_SCSI_GENERIC_NCR5380 is not set
# CONFIG_SCSI_IPS is not set
# CONFIG_SCSI_INITIO is not set
# CONFIG_SCSI_INIA100 is not set
# CONFIG_SCSI_PPA is not set
# CONFIG_SCSI_IMM is not set
# CONFIG_SCSI_NCR53C406A is not set
# CONFIG_SCSI_NCR53C7xx is not set
# CONFIG_SCSI_NCR53C8XX is not set
# CONFIG_SCSI_SYM53C8XX is not set
# CONFIG_SCSI_PAS16 is not set
# CONFIG_SCSI_PCI2000 is not set
# CONFIG_SCSI_PCI2220I is not set
# CONFIG_SCSI_PSI240I is not set
# CONFIG_SCSI_QLOGIC_FAS is not set
# CONFIG_SCSI_QLOGIC_ISP is not set
# CONFIG_SCSI_QLOGIC_FC is not set
# CONFIG_SCSI_QLOGIC_1280 is not set
# CONFIG_SCSI_SEAGATE is not set
# CONFIG_SCSI_SIM710 is not set
# CONFIG_SCSI_SYM53C416 is not set
# CONFIG_SCSI_DC390T is not set
# CONFIG_SCSI_T128 is not set
# CONFIG_SCSI_U14_34F is not set
# CONFIG_SCSI_ULTRASTOR is not set
# CONFIG_SCSI_DEBUG is not set

#
# IEEE 1394 (FireWire) support
#
# CONFIG_IEEE1394 is not set

#
# I2O device support
#
# CONFIG_I2O is not set
# CONFIG_I2O_PCI is not set
# CONFIG_I2O_BLOCK is not set
# CONFIG_I2O_LAN is not set
# CONFIG_I2O_SCSI is not set
# CONFIG_I2O_PROC is not set

#
# Network device support
#
CONFIG_NETDEVICES=y

#
# ARCnet devices
#
# CONFIG_ARCNET is not set
# CONFIG_DUMMY is not set
CONFIG_BONDING=m
# CONFIG_EQUALIZER is not set
# CONFIG_TUN is not set
CONFIG_ETHERTAP=m
# CONFIG_NET_SB1000 is not set

#
# Ethernet (10 or 100Mbit)
#
CONFIG_NET_ETHERNET=y
# CONFIG_NET_VENDOR_3COM is not set
# CONFIG_LANCE is not set
# CONFIG_NET_VENDOR_SMC is not set
# CONFIG_NET_VENDOR_RACAL is not set
# CONFIG_AT1700 is not set
# CONFIG_DEPCA is not set
# CONFIG_HP100 is not set
# CONFIG_NET_ISA is not set
CONFIG_NET_PCI=y
CONFIG_PCNET32=m
# CONFIG_ADAPTEC_STARFIRE is not set
# CONFIG_AC3200 is not set
# CONFIG_APRICOT is not set
# CONFIG_CS89x0 is not set
CONFIG_TULIP=m
# CONFIG_DE4X5 is not set
# CONFIG_DGRS is not set
# CONFIG_DM9102 is not set
# CONFIG_EEPRO100 is not set
# CONFIG_EEPRO100_PM is not set
# CONFIG_LNE390 is not set
# CONFIG_NATSEMI is not set
# CONFIG_NE2K_PCI is not set
# CONFIG_NE3210 is not set
# CONFIG_ES3210 is not set
# CONFIG_8139TOO is not set
# CONFIG_RTL8129 is not set
# CONFIG_SIS900 is not set
# CONFIG_EPIC100 is not set
# CONFIG_SUNDANCE is not set
# CONFIG_TLAN is not set
# CONFIG_VIA_RHINE is not set
# CONFIG_WINBOND_840 is not set
# CONFIG_HAPPYMEAL is not set
# CONFIG_NET_POCKET is not set

#
# Ethernet (1000 Mbit)
#
# CONFIG_ACENIC is not set
# CONFIG_HAMACHI is not set
# CONFIG_YELLOWFIN is not set
# CONFIG_SK98LIN is not set
# CONFIG_FDDI is not set
# CONFIG_HIPPI is not set
# CONFIG_PLIP is not set
CONFIG_PPP=m
# CONFIG_PPP_MULTILINK is not set
CONFIG_PPP_ASYNC=m
# CONFIG_PPP_SYNC_TTY is not set
CONFIG_PPP_DEFLATE=m
CONFIG_PPP_BSDCOMP=m
# CONFIG_PPPOE is not set
# CONFIG_SLIP is not set

#
# Wireless LAN (non-hamradio)
#
# CONFIG_NET_RADIO is not set

#
# Token Ring devices
#
# CONFIG_TR is not set
# CONFIG_NET_FC is not set
# CONFIG_RCPCI is not set
# CONFIG_SHAPER is not set

#
# Wan interfaces
#
# CONFIG_WAN is not set

#
# Amateur Radio support
#
# CONFIG_HAMRADIO is not set

#
# IrDA (infrared) support
#
# CONFIG_IRDA is not set

#
# ISDN subsystem
#
# CONFIG_ISDN is not set

#
# Old CD-ROM drivers (not SCSI, not IDE)
#
# CONFIG_CD_NO_IDESCSI is not set

#
# Input core support
#
# CONFIG_INPUT is not set

#
# Character devices
#
CONFIG_VT=y
CONFIG_VT_CONSOLE=y
CONFIG_SERIAL=m
# CONFIG_SERIAL_EXTENDED is not set
# CONFIG_SERIAL_NONSTANDARD is not set
CONFIG_UNIX98_PTYS=y
CONFIG_UNIX98_PTY_COUNT=256
CONFIG_PRINTER=m
# CONFIG_LP_CONSOLE is not set
# CONFIG_PPDEV is not set

#
# I2C support
#
CONFIG_I2C=m
CONFIG_I2C_ALGOBIT=m
# CONFIG_I2C_PHILIPSPAR is not set
# CONFIG_I2C_ELV is not set
# CONFIG_I2C_VELLEMAN is not set
CONFIG_I2C_ALGOPCF=m
# CONFIG_I2C_ELEKTOR is not set
CONFIG_I2C_CHARDEV=m

#
# Mice
#
# CONFIG_BUSMOUSE is not set
CONFIG_MOUSE=y
CONFIG_PSMOUSE=y
# CONFIG_82C710_MOUSE is not set
# CONFIG_PC110_PAD is not set

#
# Joysticks
#
# CONFIG_JOYSTICK is not set
# CONFIG_QIC02_TAPE is not set

#
# Watchdog Cards
#
CONFIG_WATCHDOG=y
# CONFIG_WATCHDOG_NOWAYOUT is not set
CONFIG_SOFT_WATCHDOG=m
# CONFIG_WDT is not set
# CONFIG_WDTPCI is not set
# CONFIG_PCWATCHDOG is not set
# CONFIG_ACQUIRE_WDT is not set
# CONFIG_60XX_WDT is not set
# CONFIG_MIXCOMWD is not set
# CONFIG_I810_TCO is not set
# CONFIG_INTEL_RNG is not set
CONFIG_NVRAM=m
CONFIG_RTC=m
# CONFIG_DTLK is not set
# CONFIG_R3964 is not set
# CONFIG_APPLICOM is not set

#
# Ftape, the floppy tape device driver
#
# CONFIG_FTAPE is not set
# CONFIG_AGP is not set
# CONFIG_DRM is not set

#
# Multimedia devices
#
# CONFIG_VIDEO_DEV is not set

#
# File systems
#
# CONFIG_QUOTA is not set
# CONFIG_AUTOFS_FS is not set
# CONFIG_AUTOFS4_FS is not set
# CONFIG_ADFS_FS is not set
# CONFIG_ADFS_FS_RW is not set
# CONFIG_AFFS_FS is not set
CONFIG_HFS_FS=m
# CONFIG_BFS_FS is not set
CONFIG_FAT_FS=m
CONFIG_MSDOS_FS=m
# CONFIG_UMSDOS_FS is not set
CONFIG_VFAT_FS=m
# CONFIG_EFS_FS is not set
# CONFIG_JFFS_FS is not set
# CONFIG_CRAMFS is not set
# CONFIG_RAMFS is not set
CONFIG_ISO9660_FS=m
CONFIG_JOLIET=y
CONFIG_MINIX_FS=m
# CONFIG_NTFS_FS is not set
# CONFIG_NTFS_RW is not set
# CONFIG_HPFS_FS is not set
CONFIG_PROC_FS=y
# CONFIG_DEVFS_FS is not set
# CONFIG_DEVFS_MOUNT is not set
# CONFIG_DEVFS_DEBUG is not set
CONFIG_DEVPTS_FS=y
# CONFIG_QNX4FS_FS is not set
# CONFIG_QNX4FS_RW is not set
# CONFIG_ROMFS_FS is not set
CONFIG_EXT2_FS=y
# CONFIG_SYSV_FS is not set
# CONFIG_SYSV_FS_WRITE is not set
# CONFIG_UDF_FS is not set
# CONFIG_UDF_RW is not set
# CONFIG_UFS_FS is not set
# CONFIG_UFS_FS_WRITE is not set

#
# Network File Systems
#
# CONFIG_CODA_FS is not set
CONFIG_NFS_FS=m
CONFIG_NFS_V3=y
# CONFIG_ROOT_NFS is not set
CONFIG_NFSD=m
CONFIG_NFSD_V3=y
CONFIG_SUNRPC=m
CONFIG_LOCKD=m
CONFIG_LOCKD_V4=y
# CONFIG_SMB_FS is not set
# CONFIG_NCP_FS is not set
# CONFIG_NCPFS_PACKET_SIGNING is not set
# CONFIG_NCPFS_IOCTL_LOCKING is not set
# CONFIG_NCPFS_STRONG is not set
# CONFIG_NCPFS_NFS_NS is not set
# CONFIG_NCPFS_OS2_NS is not set
# CONFIG_NCPFS_SMALLDOS is not set
# CONFIG_NCPFS_NLS is not set
# CONFIG_NCPFS_EXTRAS is not set

#
# Partition Types
#
CONFIG_PARTITION_ADVANCED=y
# CONFIG_ACORN_PARTITION is not set
# CONFIG_OSF_PARTITION is not set
# CONFIG_AMIGA_PARTITION is not set
# CONFIG_ATARI_PARTITION is not set
CONFIG_MAC_PARTITION=y
CONFIG_MSDOS_PARTITION=y
CONFIG_BSD_DISKLABEL=y
# CONFIG_SOLARIS_X86_PARTITION is not set
# CONFIG_UNIXWARE_DISKLABEL is not set
# CONFIG_SGI_PARTITION is not set
# CONFIG_ULTRIX_PARTITION is not set
# CONFIG_SUN_PARTITION is not set
CONFIG_NLS=y

#
# Native Language Support
#
CONFIG_NLS_DEFAULT="iso8859-1"
CONFIG_NLS_CODEPAGE_437=m
# CONFIG_NLS_CODEPAGE_737 is not set
# CONFIG_NLS_CODEPAGE_775 is not set
# CONFIG_NLS_CODEPAGE_850 is not set
# CONFIG_NLS_CODEPAGE_852 is not set
# CONFIG_NLS_CODEPAGE_855 is not set
# CONFIG_NLS_CODEPAGE_857 is not set
# CONFIG_NLS_CODEPAGE_860 is not set
# CONFIG_NLS_CODEPAGE_861 is not set
# CONFIG_NLS_CODEPAGE_862 is not set
# CONFIG_NLS_CODEPAGE_863 is not set
# CONFIG_NLS_CODEPAGE_864 is not set
# CONFIG_NLS_CODEPAGE_865 is not set
# CONFIG_NLS_CODEPAGE_866 is not set
# CONFIG_NLS_CODEPAGE_869 is not set
# CONFIG_NLS_CODEPAGE_874 is not set
# CONFIG_NLS_CODEPAGE_932 is not set
# CONFIG_NLS_CODEPAGE_936 is not set
# CONFIG_NLS_CODEPAGE_949 is not set
# CONFIG_NLS_CODEPAGE_950 is not set
CONFIG_NLS_ISO8859_1=m
# CONFIG_NLS_ISO8859_2 is not set
# CONFIG_NLS_ISO8859_3 is not set
# CONFIG_NLS_ISO8859_4 is not set
# CONFIG_NLS_ISO8859_5 is not set
# CONFIG_NLS_ISO8859_6 is not set
# CONFIG_NLS_ISO8859_7 is not set
# CONFIG_NLS_ISO8859_8 is not set
# CONFIG_NLS_ISO8859_9 is not set
# CONFIG_NLS_ISO8859_14 is not set
CONFIG_NLS_ISO8859_15=m
# CONFIG_NLS_KOI8_R is not set
CONFIG_NLS_UTF8=m

#
# Console drivers
#
CONFIG_VGA_CONSOLE=y
CONFIG_VIDEO_SELECT=y
# CONFIG_MDA_CONSOLE is not set

#
# Frame-buffer support
#
# CONFIG_FB is not set

#
# Sound
#
CONFIG_SOUND=m
# CONFIG_SOUND_CMPCI is not set
CONFIG_SOUND_EMU10K1=m
# CONFIG_SOUND_FUSION is not set
# CONFIG_SOUND_CS4281 is not set
# CONFIG_SOUND_ES1370 is not set
# CONFIG_SOUND_ES1371 is not set
# CONFIG_SOUND_ESSSOLO1 is not set
# CONFIG_SOUND_MAESTRO is not set
# CONFIG_SOUND_SONICVIBES is not set
# CONFIG_SOUND_TRIDENT is not set
# CONFIG_SOUND_MSNDCLAS is not set
# CONFIG_SOUND_MSNDPIN is not set
# CONFIG_SOUND_VIA82CXXX is not set
# CONFIG_SOUND_OSS is not set
# CONFIG_SOUND_TVMIXER is not set

#
# USB support
#
CONFIG_USB=m
# CONFIG_USB_DEBUG is not set
CONFIG_USB_DEVICEFS=y
# CONFIG_USB_BANDWIDTH is not set
# CONFIG_USB_UHCI is not set
# CONFIG_USB_UHCI_ALT is not set
CONFIG_USB_OHCI=m
# CONFIG_USB_AUDIO is not set
# CONFIG_USB_BLUETOOTH is not set
# CONFIG_USB_STORAGE is not set
CONFIG_USB_ACM=m
# CONFIG_USB_PRINTER is not set
# CONFIG_USB_DC2XX is not set
# CONFIG_USB_MDC800 is not set
# CONFIG_USB_SCANNER is not set
# CONFIG_USB_MICROTEK is not set
# CONFIG_USB_IBMCAM is not set
# CONFIG_USB_OV511 is not set
# CONFIG_USB_DSBR is not set
# CONFIG_USB_DABUSB is not set
# CONFIG_USB_PLUSB is not set
# CONFIG_USB_PEGASUS is not set
# CONFIG_USB_NET1080 is not set
# CONFIG_USB_USS720 is not set

#
# USB Serial Converter support
#
# CONFIG_USB_SERIAL is not set
# CONFIG_USB_RIO500 is not set

#
# Kernel hacking
#
CONFIG_MAGIC_SYSRQ=y

2000-12-16 06:56:14

by Linus Torvalds

[permalink] [raw]
Subject: Re: test13pre2 - netfilter modiles compile failure

In article <[email protected]>,
Barry K. Nathan <[email protected]> wrote:
>I got the same error with the ipchains-compatible netfilter compiled as
>modules. Compiling into the kernel instead, I also get an error. I've
>included the error and my .config below.

Try removing "$(ip_conntrack-objs) $(iptable_nat-objs)" from the
ip_nf_compat-objs line in net/ipv4/netfilter/Makefile..

Linus

2000-12-16 07:00:34

by Andrew Morton

[permalink] [raw]
Subject: Re: test13pre2 - netfilter modiles compile failure

"Barry K. Nathan" wrote:
>
> I got the same error with the ipchains-compatible netfilter compiled as
> modules.

This works for me:

--- linux-2.4.0-test13-pre2/net/ipv4/netfilter/Makefile Sat Dec 16 14:23:48 2000
+++ linux-akpm/net/ipv4/netfilter/Makefile Sat Dec 16 15:01:23 2000
@@ -61,6 +61,3 @@

ipchains.o: $(ipchains-objs)
$(LD) -r -o $@ $(ipchains-objs)
-
-ip_nf_compat.o: $(ip_nf_compat-objs)
- $(LD) -r -o $@ $(ip_nf_compat-objs)

2000-12-16 08:37:12

by Barry K. Nathan

[permalink] [raw]
Subject: Re: test13pre2 - netfilter modiles compile failure

Linus Torvalds wrote:
> In article <[email protected]>,
> Barry K. Nathan <[email protected]> wrote:
> >I got the same error with the ipchains-compatible netfilter compiled as
> >modules. Compiling into the kernel instead, I also get an error. I've
> >included the error and my .config below.
>
> Try removing "$(ip_conntrack-objs) $(iptable_nat-objs)" from the
> ip_nf_compat-objs line in net/ipv4/netfilter/Makefile..

Ok, I tried that, and I tried Andrew Morton's patch as well. Both patches
fix the module case, but not the in-kernel case. With Linus' patch, the
in-kernel case fails with the error message in my previous mail. With
Andrew's patch, it fails like this:

ld -m elf_i386 -r -o netfilter.o ipchains.o ip_nf_compat.o
ld: cannot open ip_nf_compat.o: No such file or directory
make[3]: *** [netfilter.o] Error 1
make[3]: Leaving directory
`/home/barryn/lsoft/kernels/buildspace/linux-2.4.0test13pre2bkn-alt-ath/net/ipv4/netfilter'
make[2]: *** [first_rule] Error 2
make[2]: Leaving directory
`/home/barryn/lsoft/kernels/buildspace/linux-2.4.0test13pre2bkn-alt-ath/net/ipv4/netfilter'
make[1]: *** [_subdir_ipv4/netfilter] Error 2
make[1]: Leaving directory
`/home/barryn/lsoft/kernels/buildspace/linux-2.4.0test13pre2bkn-alt-ath/net'
make: *** [_dir_net] Error 2

The only difference in my .config, between the working module case and the
failing in-kernel case, is whether CONFIG_IP_NF_COMPAT_IPCHAINS is set to
y or m. I included one of the .configs (although I forget which one) in my
previous email.

-Barry K. Nathan <[email protected]>

2000-12-16 08:55:13

by Linus Torvalds

[permalink] [raw]
Subject: Re: test13pre2 - netfilter modiles compile failure



On Sat, 16 Dec 2000, Barry K. Nathan wrote:
>
> Ok, I tried that, and I tried Andrew Morton's patch as well. Both patches
> fix the module case, but not the in-kernel case. With Linus' patch, the
> in-kernel case fails with the error message in my previous mail.

Ok, the guy who made the netfilter Makefile was probably on some really
interesting and probably highly illegal drugs when he wrote it. My fairly
direct conversion to new-style Makefiles failed because there are some
semantic differences that don't translate well.

The first question that pops to mind is, of course, "Where can _I_ get
some of thos drugs?".

The second question is "Hmm.. ipfwadm_core.o seems to show up in multiple
places, I wonder why?"

I suspect that you should remove "ipfwadm_core.o" too from
"ip_nf_compat-objs", because it's already part of "ipfwadm-objs", and we
don't want to link it in twice.

So "ip_nf_compat-objs" should really just be

ip_nf_compat-objs := ip_fw_compat.o ip_fw_compat_redir.o ip_fw_compat_masq.o

which looks much saner at least for the built-in case (ie no duplicate
object files in the multi-lists, and the multi-lists have sane entries).

Does that work for you?

Linus

2000-12-16 09:14:00

by Linus Torvalds

[permalink] [raw]
Subject: Re: test13pre2 - netfilter modiles compile failure



On Sat, 16 Dec 2000, Linus Torvalds wrote:
>
> So "ip_nf_compat-objs" should really just be
>
> ip_nf_compat-objs := ip_fw_compat.o ip_fw_compat_redir.o ip_fw_compat_masq.o
>
> which looks much saner at least for the built-in case (ie no duplicate
> object files in the multi-lists, and the multi-lists have sane entries).

This makes it work when compiled into the kernel.

However, it also makes it fail spectacularly when modular, because it
appears that what the Makefile tried to do was to have some group of
object-files be a library that is compiled into all the modules, and the
above change will basically remove it from the "ip_nf_compat" module -
making that module not see the routines it wants to see.

There are two solutions for this:

- the DRM "true library" solution, as shown by drivers/char/drm/Makefile.

This is closest to what the code tried to do before, and might be the
right solution for the "ip_nf_compat" module. However, it does result
in the same code being duplicated in multiple modules. Not very nice.

- export more symbols (and mark the object files that export them as
"export-objs"), so that they are visible across module boundaries.
This is probably worth doing for at least the symbols

register_firewall(), ip_fw_masq_timeouts() and
unregister_firewall()

so that "ipchains" and "ipfwadm" could just cleanly be separate modules
on top of the "ip_fw_compat" module.

Anyway, these kinds of things are really up to the netfilter people.

Rusty? Help me out, and I won't ever call "netfilter" a heap of stinking
dung again. Do we have a deal?

Linus

2000-12-16 09:24:54

by Barry K. Nathan

[permalink] [raw]
Subject: Re: test13pre2 - netfilter modiles compile failure

Linus Torvalds wrote:
> Does that work for you?

It compiles in the module case [note: I haven't been doing a
modules_install or actually testing the results of my compiles] but it
gives tons of errors in the in-kernel case (these might be word-wrapped in
silly places, but it should give you the picture):

ld -m elf_i386 -T
/home/barryn/lsoft/kernels/buildspace/linux-2.4.0test13pre2bkn-ath/arch/i386/vmlinux.lds
-e stext arch/i386/kernel/head.o arch/i386/kernel/init_task.o init/main.o
init/version.o \
--start-group \
arch/i386/kernel/kernel.o arch/i386/mm/mm.o kernel/kernel.o
mm/mm.o fs/fs.o ipc/ipc.o \
drivers/block/block.o drivers/char/char.o drivers/misc/misc.o
drivers/net/net.o drivers/media/media.o drivers/ide/idedriver.o
drivers/cdrom/driver.o drivers/pci/driver.o drivers/video/video.o
drivers/md/mddev.o \
net/network.o \
/home/barryn/lsoft/kernels/buildspace/linux-2.4.0test13pre2bkn-ath/arch/i386/lib/lib.a
/home/barryn/lsoft/kernels/buildspace/linux-2.4.0test13pre2bkn-ath/lib/lib.a
/home/barryn/lsoft/kernels/buildspace/linux-2.4.0test13pre2bkn-ath/arch/i386/lib/lib.a
\
--end-group \
-o vmlinux
net/network.o: In function `fw_in':
net/network.o(.text+0x2e84d): undefined reference to `ip_ct_gather_frags'
net/network.o(.text+0x2e93f): undefined reference to
`ip_conntrack_confirm'
net/network.o: In function `fw_confirm':
net/network.o(.text+0x2ea6b): undefined reference to
`ip_conntrack_confirm'
net/network.o: In function `do_masquerade':
net/network.o(.text+0x2f387): undefined reference to `ip_conntrack_in'
net/network.o(.text+0x2f3b0): undefined reference to `ip_conntrack_get'
net/network.o(.text+0x2f3cd): undefined reference to `ip_nat_lock'
net/network.o(.text+0x2f3e9): undefined reference to `ip_nat_lock'
net/network.o(.text+0x2f412): undefined reference to `ip_nat_lock'
net/network.o(.text+0x2f4d5): undefined reference to `ip_nat_setup_info'
net/network.o(.text+0x2f4e5): undefined reference to `ip_nat_lock'
net/network.o(.text+0x2f508): undefined reference to `ip_nat_lock'
net/network.o(.text+0x2f51d): undefined reference to `place_in_hashes'
net/network.o(.text+0x2f530): undefined reference to `ip_nat_lock'
net/network.o(.text+0x2f553): undefined reference to `ip_nat_lock'
net/network.o(.text+0x2f571): undefined reference to `do_bindings'
net/network.o: In function `check_for_masq_error':
net/network.o(.text+0x2f5a0): undefined reference to `ip_conntrack_get'
net/network.o(.text+0x2f5b7): undefined reference to
`icmp_reply_translation'
net/network.o(.text+0x2f5d1): undefined reference to
`icmp_reply_translation'
net/network.o: In function `check_for_demasq':
net/network.o(.text+0x2f5f6): undefined reference to `find_proto'
net/network.o(.text+0x2f62b): undefined reference to `icmp_error_track'
net/network.o(.text+0x2f648): undefined reference to
`icmp_reply_translation'
net/network.o(.text+0x2f664): undefined reference to
`icmp_reply_translation'
net/network.o(.text+0x2f67e): undefined reference to `get_tuple'
net/network.o(.text+0x2f6b4): undefined reference to
`ip_conntrack_find_get'
net/network.o(.text+0x2f6dd): undefined reference to `ip_conntrack_in'
net/network.o(.text+0x2f71d): undefined reference to `ip_conntrack_get'
net/network.o(.text+0x2f73b): undefined reference to `do_bindings'
net/network.o: In function `masq_procinfo':
net/network.o(.text+0x2f935): undefined reference to `ip_conntrack_lock'
net/network.o(.text+0x2f954): undefined reference to `ip_conntrack_lock'
net/network.o(.text+0x2f982): undefined reference to `ip_conntrack_lock'
net/network.o(.text+0x2f98a): undefined reference to `ip_conntrack_lock'
net/network.o(.text+0x2f990): undefined reference to
`ip_conntrack_htable_size'
net/network.o(.text+0x2f9a8): undefined reference to `ip_conntrack_hash'
net/network.o(.text+0x2f9b6): undefined reference to `ip_conntrack_lock'
net/network.o(.text+0x2f9da): undefined reference to `ip_conntrack_hash'
net/network.o(.text+0x2f9ea): undefined reference to `ip_conntrack_lock'
net/network.o(.text+0x2fa1e): undefined reference to `ip_conntrack_hash'
net/network.o(.text+0x2fa2a): undefined reference to `ip_conntrack_lock'
net/network.o(.text+0x2fa35): undefined reference to
`ip_conntrack_htable_size'
net/network.o(.text+0x2fa65): undefined reference to `ip_conntrack_lock'
net/network.o: In function `masq_cleanup':
net/network.o(.text+0x2fa91): undefined reference to `ip_nat_cleanup'
net/network.o(.text+0x2fa96): undefined reference to
`ip_conntrack_cleanup'
net/network.o: In function `masq_init':
net/network.o(.text.init+0xf22): undefined reference to
`ip_conntrack_init'
net/network.o(.text.init+0xf2d): undefined reference to `ip_nat_init'
net/network.o(.text.init+0xf61): undefined reference to
`ip_conntrack_cleanup'
make: *** [vmlinux] Error 1

-Barry K. Nathan <[email protected]>

2000-12-16 11:30:02

by Harald Welte

[permalink] [raw]
Subject: Re: test13pre2 - netfilter modiles compile failure

On Sat, Dec 16, 2000 at 12:42:53AM -0800, Linus Torvalds wrote:
>
> - the DRM "true library" solution, as shown by drivers/char/drm/Makefile.
>
> This is closest to what the code tried to do before, and might be the
> right solution for the "ip_nf_compat" module. However, it does result
> in the same code being duplicated in multiple modules. Not very nice.

mmh... but this is no real problem, because the ipchains and ipfwadm
backwards compat modules are mutually exclusive.

> - export more symbols (and mark the object files that export them as
> "export-objs"), so that they are visible across module boundaries.
> This is probably worth doing for at least the symbols
>
> register_firewall(), ip_fw_masq_timeouts() and
> unregister_firewall()
>
> so that "ipchains" and "ipfwadm" could just cleanly be separate modules
> on top of the "ip_fw_compat" module.

mmh.. but the ip_fw_compat layer without one of [ipchains, ipfwadm] doesn't
make sense at all. And ip_fw_compat is never going to be used more than once
because of the exclusiveness i've described above.

> Anyway, these kinds of things are really up to the netfilter people.
>

As no other netfilter core team member responded yet, I'm going to provide
a patch for the 'true library' solution.

> Linus

--
Live long and prosper
- Harald Welte / [email protected] http://www.gnumonks.org
============================================================================
GCS/E/IT d- s-: a-- C+++ UL++++$ P+++ L++++$ E--- W- N++ o? K- w--- O- M-
V-- PS+ PE-- Y+ PGP++ t++ 5-- !X !R tv-- b+++ DI? !D G+ e* h+ r% y+(*)

2000-12-16 13:42:11

by Harald Welte

[permalink] [raw]
Subject: Re: test13pre2 - netfilter modiles compile failure

On Sat, Dec 16, 2000 at 11:57:05AM +0100, Harald Welte wrote:
>
> As no other netfilter core team member responded yet, I'm going to provide
> a patch for the 'true library' solution.

well... the 'true library' doesn't make sense, because of the exclusiveness.
In any case there's only one instance of ip_fw_compat inside the kernel:

- ipchains compiled in (ipfwadm option vanishes in 'make menuconfig')
- ipfwadm compiled in (ipchains option vanishes in 'make menuconfig')
- ipchains module loaded: you can't load ipfwadm module
- ipfwadm module loaded: you can't load ipchains module

anyway... here is a patch, which makes the stuff compile and link in all
the combinations I've tried so far. (Please leave the comments, because
we could use them from our patch-o-matic system)

--- linux/net/ipv4/netfilter/Makefile Sat Dec 16 11:59:05 2000
+++ linux-fwcompat/net/ipv4/netfilter/Makefile Sat Dec 16 15:03:02 2000
@@ -14,15 +14,38 @@
# Multipart objects.
list-multi := ip_conntrack.o iptable_nat.o ipfwadm.o ipchains.o

-ip_conntrack-objs := ip_conntrack_standalone.o ip_conntrack_core.o ip_conntrack_proto_generic.o ip_conntrack_proto_tcp.o ip_conntrack_proto_udp.o ip_conntrack_proto_icmp.o
-iptable_nat-objs := ip_nat_standalone.o ip_nat_rule.o ip_nat_core.o ip_nat_proto_unknown.o ip_nat_proto_tcp.o ip_nat_proto_udp.o ip_nat_proto_icmp.o
-ip_nf_compat-objs := ipfwadm_core.o ip_fw_compat.o ip_fw_compat_redir.o ip_fw_compat_masq.o $(ip_conntrack-objs) $(iptable_nat-objs)
-ipfwadm-objs := ipfwadm_core.o
-ipchains-objs := ipchains_core.o
+# objects for the conntrack and NAT core (used by standalone and backw. compat)
+ip_nf_conntrack-objs := ip_conntrack_core.o ip_conntrack_proto_generic.o ip_conntrack_proto_tcp.o ip_conntrack_proto_udp.o ip_conntrack_proto_icmp.o
+ip_nf_nat-objs := ip_nat_core.o ip_nat_proto_unknown.o ip_nat_proto_tcp.o ip_nat_proto_udp.o ip_nat_proto_icmp.o

+# objects for the standalone - connection tracking / NAT
+ip_conntrack-objs := ip_conntrack_standalone.o $(ip_nf_conntrack-objs)
+iptable_nat-objs := ip_nat_standalone.o ip_nat_rule.o $(ip_nf_nat-objs)
+
+# objects for backwards compatibility mode
+ip_nf_compat-objs := ip_fw_compat.o ip_fw_compat_redir.o ip_fw_compat_masq.o $(ip_nf_conntrack-objs) $(ip_nf_nat-objs)
+
+ipfwadm-objs := $(ip_nf_compat-objs) ipfwadm_core.o
+ipchains-objs := $(ip_nf_compat-objs) ipchains_core.o
+
+# connection tracking
obj-$(CONFIG_IP_NF_CONNTRACK) += ip_conntrack.o
+
+# connection tracking helpers
obj-$(CONFIG_IP_NF_FTP) += ip_conntrack_ftp.o
+
+# NAT helpers
+obj-$(CONFIG_IP_NF_FTP) += ip_nat_ftp.o
+
+# generic IP tables
obj-$(CONFIG_IP_NF_IPTABLES) += ip_tables.o
+
+# the three instances of ip_tables
+obj-$(CONFIG_IP_NF_FILTER) += iptable_filter.o
+obj-$(CONFIG_IP_NF_MANGLE) += iptable_mangle.o
+obj-$(CONFIG_IP_NF_NAT) += iptable_nat.o
+
+# matches
obj-$(CONFIG_IP_NF_MATCH_LIMIT) += ipt_limit.o
obj-$(CONFIG_IP_NF_MATCH_MARK) += ipt_mark.o
obj-$(CONFIG_IP_NF_MATCH_MAC) += ipt_mac.o
@@ -31,11 +54,8 @@
obj-$(CONFIG_IP_NF_MATCH_TOS) += ipt_tos.o
obj-$(CONFIG_IP_NF_MATCH_STATE) += ipt_state.o
obj-$(CONFIG_IP_NF_MATCH_UNCLEAN) += ipt_unclean.o
-obj-$(CONFIG_IP_NF_NAT) += iptable_nat.o
-obj-$(CONFIG_IP_NF_FTP) += ip_nat_ftp.o
-obj-$(CONFIG_IP_NF_FILTER) += iptable_filter.o
-obj-$(CONFIG_IP_NF_MANGLE) += iptable_mangle.o

+# targets
obj-$(CONFIG_IP_NF_TARGET_REJECT) += ipt_REJECT.o
obj-$(CONFIG_IP_NF_TARGET_MIRROR) += ipt_MIRROR.o
obj-$(CONFIG_IP_NF_TARGET_TOS) += ipt_TOS.o
@@ -44,8 +64,10 @@
obj-$(CONFIG_IP_NF_TARGET_REDIRECT) += ipt_REDIRECT.o
obj-$(CONFIG_IP_NF_TARGET_LOG) += ipt_LOG.o

-obj-$(CONFIG_IP_NF_COMPAT_IPCHAINS) += ipchains.o ip_nf_compat.o
-obj-$(CONFIG_IP_NF_COMPAT_IPFWADM) += ipfwadm.o ip_nf_compat.o
+# backwards compatibility
+obj-$(CONFIG_IP_NF_COMPAT_IPCHAINS) += ipchains.o
+obj-$(CONFIG_IP_NF_COMPAT_IPFWADM) += ipfwadm.o
+
obj-$(CONFIG_IP_NF_QUEUE) += ip_queue.o

include $(TOPDIR)/Rules.make
@@ -61,6 +83,3 @@

ipchains.o: $(ipchains-objs)
$(LD) -r -o $@ $(ipchains-objs)
-
-ip_nf_compat.o: $(ip_nf_compat-objs)
- $(LD) -r -o $@ $(ip_nf_compat-objs)

--
Live long and prosper
- Harald Welte / [email protected] http://www.gnumonks.org
============================================================================
GCS/E/IT d- s-: a-- C+++ UL++++$ P+++ L++++$ E--- W- N++ o? K- w--- O- M-
V-- PS+ PE-- Y+ PGP++ t++ 5-- !X !R tv-- b+++ DI? !D G+ e* h+ r% y+(*)

2000-12-16 18:22:30

by Linus Torvalds

[permalink] [raw]
Subject: Re: test13pre2 - netfilter modiles compile failure



On Sat, 16 Dec 2000, Harald Welte wrote:
>
> well... the 'true library' doesn't make sense, because of the exclusiveness.
> In any case there's only one instance of ip_fw_compat inside the kernel:

The patch looks fine, and thanks for the commentary on why it was done
this way.

The other module problem (the fact that nfsd and nfs didn't resolve the
symbols in lockd, and couldn't be used as modules for that reason) seems
to be due to the "EXPORT_NO_SYMBOLS" in fs/lockd/svc.c. Thanks to Keith
Owens for debugging that one (which looks like a potential bug in "ld",
actually).

Can anybody else find build irregularities with the new Makefiles? Please
holler..

Thanks,
Linus

2000-12-17 03:14:44

by Dax Kelson

[permalink] [raw]
Subject: test13pre2 - ieee1394 compile failure

Linus Torvalds said once upon a time (Sat, 16 Dec 2000):

> Can anybody else find build irregularities with the new Makefiles? Please
> holler..

I've been having problems building Firewire support since test12-pre3, I'm
still having problems with test13-pre2 (although different problems).

You can read about my test12-pre3+ problems here:

http://lists.insecure.org/linux-kernel/2000/Dec/0186.html

My current test13-pre2 problems:

ld -m elf_i386 -T /usr/src/linux/arch/i386/vmlinux.lds -e stext
arch/i386/kernel/head.o arch/i386/kernel/init_task.o init/main.o
init/version.o \
--start-group \
arch/i386/kernel/kernel.o arch/i386/mm/mm.o kernel/kernel.o
mm/mm.o fs/fs.o ipc/ipc.o \
drivers/block/block.o drivers/char/char.o drivers/misc/misc.o
drivers/net/net.o drivers/media/media.o drivers/char/agp/agp.o
drivers/char/drm/drm.o drivers/ide/idedriver.o drivers/scsi/scsidrv.o
drivers/ieee1394/ieee1394.a drivers/cdrom/driver.o
drivers/sound/sounddrivers.o drivers/pci/driver.o drivers/pnp/pnp.o
drivers/video/video.o drivers/usb/usbdrv.o drivers/input/inputdrv.o
drivers/i2c/i2c.o \
net/network.o \
/usr/src/linux/arch/i386/lib/lib.a /usr/src/linux/lib/lib.a
/usr/src/linux/arch/i386/lib/lib.a \
--end-group \
-o vmlinux
ld: cannot open drivers/ieee1394/ieee1394.a: No such file or directory

>From my .config:

#
# IEEE 1394 (FireWire) support
#
CONFIG_IEEE1394=y
# CONFIG_IEEE1394_PCILYNX is not set
CONFIG_IEEE1394_OHCI1394=y
CONFIG_IEEE1394_VIDEO1394=m
CONFIG_IEEE1394_RAWIO=m
# CONFIG_IEEE1394_VERBOSEDEBUG is not set


Dax Kelson