2002-10-01 06:10:32

by Corporal Pisang

[permalink] [raw]
Subject: 2.5.39 make modules_install error (netfilter)

Hi,

Final hurdle for me to get 2.5.39 compiled,

This is the error on make modules_install

if [ -r System.map ]; then /sbin/depmod -ae -F System.map 2.5.39; fi
depmod: *** Unresolved symbols in /lib/modules/2.5.39/kernel/net/ipv4/netfilter/ipt_owner.o
depmod: next_thread
depmod: find_task_by_pid
depmod: *** Unresolved symbols in /lib/modules/2.5.39/kernel/net/ipv6/netfilter/ip6t_owner.o
depmod: next_thread
depmod: find_task_by_pid

Regards,

-Ubaida-


2002-10-01 06:36:57

by Bjoern A. Zeeb

[permalink] [raw]
Subject: Re: 2.5.39 make modules_install error (netfilter)

On Tue, 1 Oct 2002, Corporal Pisang wrote:

Hi,

> Final hurdle for me to get 2.5.39 compiled,
>
> This is the error on make modules_install
>
> if [ -r System.map ]; then /sbin/depmod -ae -F System.map 2.5.39; fi
> depmod: *** Unresolved symbols in /lib/modules/2.5.39/kernel/net/ipv4/netfilter/ipt_owner.o
> depmod: next_thread
> depmod: find_task_by_pid
> depmod: *** Unresolved symbols in /lib/modules/2.5.39/kernel/net/ipv6/netfilter/ip6t_owner.o
> depmod: next_thread
> depmod: find_task_by_pid

think someone already posted at least parts of this one.

--- linux-20020930-175132/kernel/pid.c.orig Mon Sep 30 19:13:24 2002
+++ linux-20020930-175132/kernel/pid.c Mon Sep 30 21:13:30 2002
@@ -23,6 +23,7 @@
#include <linux/slab.h>
#include <linux/init.h>
#include <linux/bootmem.h>
+#include <linux/module.h>

#define PIDHASH_SIZE 4096
#define pid_hashfn(nr) ((nr >> 8) ^ nr) & (PIDHASH_SIZE - 1)
@@ -275,3 +276,5 @@
attach_pid(current, i, 0);
}
}
+
+EXPORT_SYMBOL(find_task_by_pid);
--- linux-20020930-175132/kernel/Makefile.orig Mon Sep 30 19:41:03 2002
+++ linux-20020930-175132/kernel/Makefile Mon Sep 30 20:38:38 2002
@@ -3,7 +3,8 @@
#

export-objs = signal.o sys.o kmod.o context.o ksyms.o pm.o exec_domain.o \
- printk.o platform.o suspend.o dma.o module.o cpufreq.o
+ printk.o platform.o suspend.o dma.o module.o cpufreq.o pid.o \
+ exit.o

obj-y = sched.o fork.o exec_domain.o panic.o printk.o \
module.o exit.o itimer.o time.o softirq.o resource.o \
--- linux-20020930-175132/kernel/exit.c.orig Mon Sep 30 20:37:53 2002
+++ linux-20020930-175132/kernel/exit.c Mon Sep 30 21:13:15 2002
@@ -911,3 +911,5 @@
}

#endif
+
+EXPORT_SYMBOL(next_thread);

--
Greetings
Bjoern A. Zeeb bzeeb at Zabbadoz dot NeT
56 69 73 69 74 http://www.zabbadoz.net/

2002-10-02 09:05:53

by Corporal Pisang

[permalink] [raw]
Subject: Re: 2.5.39 make modules_install error (netfilter)

On Tuesday 01 October 2002 2:40 pm, you were telling me that:
> think someone already posted at least parts of this one.
>
> --- linux-20020930-175132/kernel/pid.c.orig Mon Sep 30 19:13:24 2002
> +++ linux-20020930-175132/kernel/pid.c Mon Sep 30 21:13:30 2002
> @@ -23,6 +23,7 @@


yeap .. the patch works

thanks

--
-----------------------
-Ubaida-