[2.4.22] Error: fs/fs.o: undefined reference to `atomic_dec_and_lock'

From: Ryan Reich
Date: Sun Nov 30 2003 - 20:29:31 EST


I'm building a kernel with everything compiled in to serve as a boot image to
install Mandrake on my laptop, and I get the following error:

gcc -E -C -P -I/usr/src/structural/system/linux-2.4.22/include -imacros
/usr/src/structural/system/linux-2.4.22/include/linux/config.h -imacros
/usr/src/structural/system/linux-2.4.22/include/asm-i386/segment.h -imacros
/usr/src/structural/system/linux-2.4.22/include/asm-i386/page_offset.h -Ui386
arch/i386/vmlinux.lds.S >arch/i386/vmlinux.lds
ld -m elf_i386 -T /usr/src/structural/system/linux-2.4.22/arch/i386/vmlinux.lds
-e stext arch/i386/kernel/head.o arch/i386/kernel/init_task.o init/main.o
init/version.o init/do_mounts.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/char/char.o drivers/block/block.o drivers/misc/misc.o
drivers/net/net.o drivers/char/agp/agp.o drivers/char/drm/drm.o
drivers/ide/idedriver.o drivers/scsi/scsidrv.o drivers/cdrom/driver.o
drivers/sound/sounddrivers.o drivers/pci/driver.o drivers/pcmcia/pcmcia.o
drivers/video/video.o drivers/usb/usbdrv.o drivers/media/media.o
drivers/hotplug/vmlinux-obj.o \
net/network.o \
grsecurity/grsec.o \
/usr/src/structural/system/linux-2.4.22/arch/i386/lib/lib.a
/usr/src/structural/system/linux-2.4.22/lib/lib.a
/usr/src/structural/system/linux-2.4.22/arch/i386/lib/lib.a \
--end-group \
-o vmlinux
fs/fs.o: In function `dput':
fs/fs.o(.text+0x15f1c): undefined reference to `atomic_dec_and_lock'
make: *** [vmlinux] Error 1

Ryan Reich
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/