Skip to contentSkip to conversation

In function sysctl_check_lookup: undef ref to sysctl_head_next

PATCH In review Avuton Olrich 3 participants 4 messages Oct 19, 2007 – Oct 20, 2007

lore
Share & tools
lore
#0 lore raw

Good Day,

My randconfig just caught an error on:
kernel/built-in.o: In function `sysctl_check_lookup':
sysctl_check.c:(.text+0x17db1): undefined reference to sysctl_head_next' sysctl_check.c:(.text+0x17dc7): undefined reference to sysctl_head_finish'

Git bisect was unsuccessful due to too many unrelated errors trying to track down the issue. I also couldn't track down the offending function. Any idea of the issue?

Against this config: http://avuton.googlepages.com/sysctl-head-next.config

git master: 4fa4d23fa20de67df919030c1216295664866ad7

Thanks,

Signature · 3 lines
avuton
--
 Anyone who quotes me in their sig is an idiot. -- Rusty Russell.
#1 lore raw
Quoted 7 lines · On Thu, 18 Oct 2007 21:27:16 -0700 Avuton Olrich wrote:

Good Day,

My randconfig just caught an error on:
kernel/built-in.o: In function `sysctl_check_lookup':
sysctl_check.c:(.text+0x17db1): undefined reference to sysctl_head_next' sysctl_check.c:(.text+0x17dc7): undefined reference to sysctl_head_finish'

Quoted 7 lines

Git bisect was unsuccessful due to too many unrelated errors trying to track down the issue. I also couldn't track down the offending function. Any idea of the issue?

Against this config: http://avuton.googlepages.com/sysctl-head-next.config

git master: 4fa4d23fa20de67df919030c1216295664866ad7

Eric,

Please have a look at this one.

.config file link is above.

# CONFIG_SYSCTL_SYSCALL is not set
# CONFIG_PROC_SYSCTL is not set

Thanks,
---
~Randy

#2 lore raw

PATCH 1/1 sysctl: Don't compile sysctl_check when !CONFIG_SYSCTL

Quoted 17 lines · Randy Dunlap
Quoted 7 lines · On Thu, 18 Oct 2007 21:27:16 -0700 Avuton Olrich wrote:

Good Day,

My randconfig just caught an error on:
kernel/built-in.o: In function `sysctl_check_lookup':
sysctl_check.c:(.text+0x17db1): undefined reference to sysctl_head_next' sysctl_check.c:(.text+0x17dc7): undefined reference to sysctl_head_finish'

Quoted 7 lines

Git bisect was unsuccessful due to too many unrelated errors trying to track down the issue. I also couldn't track down the offending function. Any idea of the issue?

Against this config: http://avuton.googlepages.com/sysctl-head-next.config

git master: 4fa4d23fa20de67df919030c1216295664866ad7

Quoted 9 lines

Eric,

Please have a look at this one.

.config file link is above.

# CONFIG_SYSCTL_SYSCALL is not set
# CONFIG_PROC_SYSCTL is not set

Weird I thought I had written the makefile so this would be handled. Oh well this should fix it.

Sorry about that.

---
 kernel/Makefile |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
kernel/Makefile +2 -1
index 05c3e6d..79f017e 100644
@@ -9,8 +9,9 @@ obj-y     = sched.o fork.o exec_domain.o panic.o printk.o profile.o \
 	    rcupdate.o extable.o params.o posix-timers.o \
 	    kthread.o wait.o kfifo.o sys_ni.o posix-cpu-timers.o mutex.o \
 	    hrtimer.o rwsem.o latency.o nsproxy.o srcu.o \
-	    utsname.o sysctl_check.o notifier.o
+	    utsname.o notifier.o
 
+obj-$(CONFIG_SYSCTL) += sysctl_check.o
 obj-$(CONFIG_STACKTRACE) += stacktrace.o
 obj-y += time/
 obj-$(CONFIG_DEBUG_MUTEXES) += mutex-debug.o
Signature · 1 line
1.5.3.rc6.17.g1911
Acked-by on v1 1/1
#3 lore raw

Re: [PATCH] sysctl: Don't compile sysctl_check when !CONFIG_SYSCTL

Quoted 45 lines · On Fri, 19 Oct 2007 18:23:25 -0600 Eric W. Biederman wrote:
Quoted 17 lines · Randy Dunlap
Quoted 7 lines · On Thu, 18 Oct 2007 21:27:16 -0700 Avuton Olrich wrote:

Good Day,

My randconfig just caught an error on:
kernel/built-in.o: In function `sysctl_check_lookup':
sysctl_check.c:(.text+0x17db1): undefined reference to sysctl_head_next' sysctl_check.c:(.text+0x17dc7): undefined reference to sysctl_head_finish'

Quoted 7 lines

Git bisect was unsuccessful due to too many unrelated errors trying to track down the issue. I also couldn't track down the offending function. Any idea of the issue?

Against this config: http://avuton.googlepages.com/sysctl-head-next.config

git master: 4fa4d23fa20de67df919030c1216295664866ad7

Quoted 9 lines

Eric,

Please have a look at this one.

.config file link is above.

# CONFIG_SYSCTL_SYSCALL is not set
# CONFIG_PROC_SYSCTL is not set

Weird I thought I had written the makefile so this would be handled. Oh well this should fix it.

Sorry about that.

---
 kernel/Makefile |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
kernel/Makefile +0 -0
index 05c3e6d..79f017e 100644

kernel/Makefile obj-y = sched.o fork.o exec_domain.o panic.o printk.o profile.o \ · line 17

Quoted 10 lines
kernel/Makefile +2 -1
@@ -9,8 +9,9 @@ obj-y     = sched.o fork.o exec_domain.o panic.o printk.o profile.o \
 	    rcupdate.o extable.o params.o posix-timers.o \
 	    kthread.o wait.o kfifo.o sys_ni.o posix-cpu-timers.o mutex.o \
 	    hrtimer.o rwsem.o latency.o nsproxy.o srcu.o \
-	    utsname.o sysctl_check.o notifier.o
+	    utsname.o notifier.o
 
+obj-$(CONFIG_SYSCTL) += sysctl_check.o
 obj-$(CONFIG_STACKTRACE) += stacktrace.o
 obj-y += time/
 obj-$(CONFIG_DEBUG_MUTEXES) += mutex-debug.o

---
~Randy