* Re: Compile failed on fs.o for 2.4.15-pre4
@ 2001-11-15 15:36 Preston Crow
0 siblings, 0 replies; 4+ messages in thread
From: Preston Crow @ 2001-11-15 15:36 UTC (permalink / raw)
To: linux-kernel
I wrote:
> 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.
> fs/fs.o: In function `dput':
> fs/fs.o(.text+0x10fb8): undefined reference to `atomic_dec_and_lock'
> make: *** [vmlinux] Error 1
Dick Johnson replied:
> Assuming that your version is similar to mine....
>
> In ...linux/fs/dcache.c add ...
> #include <linux/spinlock.h>
I tried that. The error is coming from fs/dcache.c, and it does look like
including that file is a good idea, but no matter where I put the #include
directive, I still get the same error.
[Please CC responses to me]
--PC
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Compile failed on fs.o for 2.4.15-pre4
@ 2001-11-15 17:43 Preston Crow
0 siblings, 0 replies; 4+ messages in thread
From: Preston Crow @ 2001-11-15 17:43 UTC (permalink / raw)
To: linux-kernel
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
^ permalink raw reply [flat|nested] 4+ messages in thread
* Compile failed on fs.o for 2.4.15-pre4
@ 2001-11-14 20:55 Preston Crow
2001-11-14 21:08 ` Richard B. Johnson
0 siblings, 1 reply; 4+ messages in thread
From: Preston Crow @ 2001-11-14 20:55 UTC (permalink / raw)
To: linux-kernel
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
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: Compile failed on fs.o for 2.4.15-pre4
2001-11-14 20:55 Preston Crow
@ 2001-11-14 21:08 ` Richard B. Johnson
0 siblings, 0 replies; 4+ messages in thread
From: Richard B. Johnson @ 2001-11-14 21:08 UTC (permalink / raw)
To: Preston Crow; +Cc: linux-kernel
On Wed, 14 Nov 2001, Preston Crow wrote:
> 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]
Assuming that your version is similar to mine....
In ...linux/fs/dcache.c add ...
#include <linux/spinlock.h>
Cheers,
Dick Johnson
Penguin : Linux version 2.4.1 on an i686 machine (799.53 BogoMips).
I was going to compile a list of innovations that could be
attributed to Microsoft. Once I realized that Ctrl-Alt-Del
was handled in the BIOS, I found that there aren't any.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2001-11-15 17:43 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-11-15 15:36 Compile failed on fs.o for 2.4.15-pre4 Preston Crow
-- strict thread matches above, loose matches on Subject: below --
2001-11-15 17:43 Preston Crow
2001-11-14 20:55 Preston Crow
2001-11-14 21:08 ` Richard B. Johnson
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®