CONFIG_SYSCTL is not set
Hi folks,
By default, CONFIG_SYSCTL is not set.
And I get the following errors when linking:
fs/fs.o: In function `nfs_put_inode':
fs/fs.o(.text+0x399dc): undefined reference to nfs_debug' fs/fs.o: In function L1261':
fs/fs.o(.text.init+0x18fc): undefined reference to nfs_debug' net/network.a(sunrpc.o): In function rpc_create_client':sunrpc.o(.text+0x360): undefined reference to `rpc_debug'
All of these errors are a result of not having globals defined in net/sunrpc/sysctl.c. sysctl.o only gets built when CONFIG_SYSCTL=y.
With CONFIG_SYSCTL=y, I get a different linker error kernel/kernel.o(.data+0x3b4c): undefined reference to `sysrq_enabled'
(which willy already pointed out...See
http://puffin.external.hp.com/mailing-lists/parisc-linux/2000/05-May/0103.html)
This is very reproducible (going back and forth) in my build tree. I don't see how willy got around it.
Do we want the build to work with or without CONFIG_SYSCTL?
Quoted 1 line
From the
Documentation/Configure.help:
| As it is generally a good thing, you should say Y here unless | building a kernel for install/rescue disks or your system is very | limited in memory.
Quoted 2 lines · Philipp Rumpf
I wouldn't really consider this a bug, but if anyone does he should probably report it to whoever is working on that code in 2.3.
If anyone wants to build x86 install/rescue disks, I think they can't now. Either the Configure.help is wrong or the code is wrong.
I don't know how to submit a BUG.
Any pointers on where this bug should go?
thanks,
grant
Hi Grant,
You probably already worked this out, but mine builds fine with
CONFIG_SYSCTL=y
# CONFIG_MAGIC_SYSRQ is not set
Richard
Quoted 8 lines · Grant Grundler
With
CONFIG_SYSCTL=y, I get a different linker error kernel/kernel.o(.data+0x3b4c): undefined reference to `sysrq_enabled'(which willy already pointed out...See
http://puffin.external.hp.com/mailing-lists/parisc-linux/2000/05-May/0103.html)This is very reproducible (going back and forth) in my build tree. I don't see how willy got around it.
As a temporary hack, I changed arch/parisc/defconfig to enable CONFIG_SYSCTL and defined sysrq_enabled in arch/parisc/kernel/setup.c. The kernel will link this way at least, but it's not the "right answer".
-P
Quoted 8 lines · Grant Grundler
Quoted 2 lines · Philipp Rumpf
I wouldn't really consider this a bug, but if anyone does he should probably report it to whoever is working on that code in 2.3.
If anyone wants to build x86 install/rescue disks, I think they can't now. Either the Configure.help is wrong or the code is wrong.
I don't know how to submit a BUG.
Any pointers on where this bug should go?
You were right. It's just annoying behaviour not to compile at all, so I submitted a patch to Alan (obviously, RPC_DEBUG doesn't make sense if CONFIG_SYSCTL isn't defined).
So ac7 shouldn't have this problem.
Philipp