Compile failed on fs.o for 2.4.15-pre4

Compile failed on fs.o for 2.4.15-pre4

Post by Preston Cro » Fri, 16 Nov 2001 06:00:17



After making the patch to setup.c so that it would compile, I ran into a
linking error.  I have a fairly standard uniprocessor PIII system.  I can
make my config file available to anyone that thinks it will help.

make[1]: Leaving directory `/usr/src/linux/arch/i386/lib'
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/char/char.o drivers/block/block.o drivers/misc/misc.o drivers/net/net.o drivers/media/media.o drivers/char/agp/agp.o drivers/char/drm/drm.o drivers/net/fc/fc.o drivers/ide/idedriver.o drivers/cdrom/driver.o drivers/pci/driver.o drivers/pnp/pnp.o drivers/video/video.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
fs/fs.o: In function `dput':
fs/fs.o(.text+0x10fb8): undefined reference to `atomic_dec_and_lock'
make: *** [vmlinux] Error 1

[Please CC responses to me]

--PC
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in

More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

 
 
 

Compile failed on fs.o for 2.4.15-pre4

Post by Preston Cro » Sat, 17 Nov 2001 02:50:14


Strange.  While adding a #include for <linux/spinlock.h> didn't work,
tossing in the #define for atomic_dec_and_lock() did the trick.

So now in fs/dcache.c, I have:

#include <linux/cache.h>
#include <linux/module.h>

#include <asm/uaccess.h>
#define atomic_dec_and_lock(atomic,lock) atomic_dec_and_test(atomic)

#define DCACHE_PARANOIA 1
/* #define DCACHE_DEBUG 1 */

I know that this isn't the right fix; hopefully that will be in -pre5.
Well, now that it compiles, it's time to boot...

[Please CC responses to me]

--PC
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in

More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

 
 
 

1. Kernel 2.4.15-pre4 compile error (gcc 2.95.3 and 3.0[12])

Please forgive me if this is already in the archives, my usual archive is
down (www.lib.uaa.alaska.edu) and I find MARC a bit hard to follow

When compiling 2.4.15-pre4 I get the following error

gcc -D__KERNEL__ -I/mnt/hda3/kernel/2.4.15-pre4/linux/include -Wall-
Wstrict-prototypes -Wno-trigraphs -O2 -fomit-frame-pointer
-fno-strict-aliasing -fno-common -pipe -mpreferred-stack-boundary=2
-march=i686 -malign-functions=4     -c -o setup.o setup.c
setup.c: In function `c_start':
setup.c:2791: subscripted value is neither array nor pointer
setup.c:2792: warning: control reaches end of non-void function
make[1]: *** [setup.o] Error 1

Ideas?

TIA
tabris
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in

More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

2. Worm Activity

3. 2.4.15-pre4 compile problem

4. tail -f a file

5. 2.4.15-pre7 Severe VM Bugs in 2.4.15-pre7

6. network config for an ISP

7. 2.4.15-pre4 - recovery after timeout (drivers/net/fealnx.c)

8. URGENT:add color to the text.

9. Linux 2.4.15-pre4 - merge with Alan

10. Merge BUG in 2.4.15-pre4 serial.c

11. Linux 2.4.15-pre4 - merge with Alan

12. acpi serial undefined symbol 2.4.15-pre4

13. Compile error with 2.4.15-pre3 when compiling with LVM