Do you have a question? Post it now! No Registration Necessary
Subject
- Posted on
kernel 2.4.26 and qos + htb
- 04-03-2006
- Sebastian
April 3, 2006, 9:46 pm

Hi
I try to compile kernel 2.4.26 with qos and htb enabled for mips
platform. However, it fails during linking and throws errors like this:
net/network.o(.text.init+0x598): In function `net_dev_init':
: undefined reference to `pktsched_init'
net/network.o(__ksymtab+0x860): undefined reference to `psched_time_base'
net/network.o(__ksymtab+0x868): undefined reference to `psched_time_mark'
net/network.o(__ksymtab+0x870): undefined reference to `pfifo_qdisc_ops'
net/network.o(__ksymtab+0x878): undefined reference to `bfifo_qdisc_ops'
net/network.o(__ksymtab+0x880): undefined reference to `register_qdisc'
net/network.o(__ksymtab+0x888): undefined reference to `unregister_qdisc'
net/network.o(__ksymtab+0x890): undefined reference to `qdisc_get_rtab'
net/network.o(__ksymtab+0x898): undefined reference to `qdisc_put_rtab'
net/network.o(__ksymtab+0x8a0): undefined reference to `qdisc_copy_stats'
net/network.o(__ksymtab+0x8a8): undefined reference to
`register_tcf_proto_ops'
net/network.o(__ksymtab+0x8b0): undefined reference to
`unregister_tcf_proto_ops'
Is that mean that I maybe forgot about setting some other options? I
also tried to alternate the Makefile in net/sched directory in order to
get the modules I want and then it compiles and links without errors. In
that case is it good when I compile kernel with the modified Makefile?
Or maybe it is somthing wrong with the kernel itself?
The options that I want to have enabled are as follows:
#
# QoS and/or fair queueing
#
CONFIG_NET_SCHED=y
CONFIG_NET_SCH_HTB=y
CONFIG_NET_QOS=y
CONFIG_NET_CLS=y
CONFIG_NET_CLS_TCINDEX=y
CONFIG_NET_CLS_ROUTE4=y
CONFIG_NET_CLS_ROUTE=y
CONFIG_NET_CLS_FW=y
Thanks in advance for any help.
Sebastian.
I try to compile kernel 2.4.26 with qos and htb enabled for mips
platform. However, it fails during linking and throws errors like this:
net/network.o(.text.init+0x598): In function `net_dev_init':
: undefined reference to `pktsched_init'
net/network.o(__ksymtab+0x860): undefined reference to `psched_time_base'
net/network.o(__ksymtab+0x868): undefined reference to `psched_time_mark'
net/network.o(__ksymtab+0x870): undefined reference to `pfifo_qdisc_ops'
net/network.o(__ksymtab+0x878): undefined reference to `bfifo_qdisc_ops'
net/network.o(__ksymtab+0x880): undefined reference to `register_qdisc'
net/network.o(__ksymtab+0x888): undefined reference to `unregister_qdisc'
net/network.o(__ksymtab+0x890): undefined reference to `qdisc_get_rtab'
net/network.o(__ksymtab+0x898): undefined reference to `qdisc_put_rtab'
net/network.o(__ksymtab+0x8a0): undefined reference to `qdisc_copy_stats'
net/network.o(__ksymtab+0x8a8): undefined reference to
`register_tcf_proto_ops'
net/network.o(__ksymtab+0x8b0): undefined reference to
`unregister_tcf_proto_ops'
Is that mean that I maybe forgot about setting some other options? I
also tried to alternate the Makefile in net/sched directory in order to
get the modules I want and then it compiles and links without errors. In
that case is it good when I compile kernel with the modified Makefile?
Or maybe it is somthing wrong with the kernel itself?
The options that I want to have enabled are as follows:
#
# QoS and/or fair queueing
#
CONFIG_NET_SCHED=y
CONFIG_NET_SCH_HTB=y
CONFIG_NET_QOS=y
CONFIG_NET_CLS=y
CONFIG_NET_CLS_TCINDEX=y
CONFIG_NET_CLS_ROUTE4=y
CONFIG_NET_CLS_ROUTE=y
CONFIG_NET_CLS_FW=y
Thanks in advance for any help.
Sebastian.

Re: kernel 2.4.26 and qos + htb

I did 'make mrproper' before. All config files I have saved. The linker
is rather ok. But with few options is something wrong... because
although I set one of the specific options - it does not seem to be
included, I mean, the selected feature is not being compiled (and next
during linking there are undeclared references). Is it maybe because of
lack of support for that options in kernel...?
Sebastian.

Re: kernel 2.4.26 and qos + htb

It sounds like something very strange is going on.
Are you configuring your kernel options using 'make config' or 'make xconfig'
etc?
You might be getting things wrong if you're editing .config by hand.
Once the correct options are enabled in .config, it should be very simple to see
which ones should get compiled.
All the missing objects you listed seem to be in the core sched files.
These should be compiled from the first line in sched/Makefile:
obj-$(CONFIG_NET_SCHED) += sch_api.o sch_fifo.o sch_blackhole.o
Regards,
--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| Damion de Soto --------------------------------------------------
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| Damion de Soto --------------------------------------------------
We've slightly trimmed the long signature. Click to see the full one.
Site Timeline
- » Looking for Embedded Linux Guru to Architect next generation video conferencing system
- — Next thread in » Embedded Linux
-
- » MCS51 emulator/simulator for UNIX
- — Previous thread in » Embedded Linux
-
- » Crosscompiling for ARM: reloc type R_ARM_ABS32 is not supported for PIC - ...
- — Newest thread in » Embedded Linux
-
- » [CHARTER] handvest nl.hobby.elektronica [maandelijks bericht, maart 2021]
- — The site's Newest Thread. Posted in » Electronics (Dutch)
-