Skip to contentSkip to conversation

error compiling linux-2.6.6

PATCH In review Artemio 6 participants 12 messages May 29, 2004 – May 30, 2004

lore
Share & tools
lore

Artemio

author
#0 lore raw

Hello all!

I am trying to compile a clean, non-patched 2.6.6 kernel from right from kernel.org, using gcc 3.3.2. I have tried both gcc 3.3.2 in uclibc i386 root distribution and gcc 3.3.2-6mdk in mandrake 10.0. With both gcc's, at the end of all, I get:

[make output]
LD .tmp_vmlinux1
drivers/built-in.o(.text+0x6ef62): In function `hpsb_alloc_packet':
: undefined reference to alloc_skb' drivers/built-in.o(.text+0x6f68f): In function hpsb_packet_sent':
: undefined reference to skb_unlink' drivers/built-in.o(.text+0x6f82d): In function hpsb_send_packet':
: undefined reference to skb_queue_tail' drivers/built-in.o(.text+0x70199): In function abort_requests':
: undefined reference to skb_dequeue' drivers/built-in.o(.text+0x7025b): In function queue_packet_complete':
: undefined reference to skb_queue_tail' drivers/built-in.o(.text+0x702bf): In function hpsbpkt_thread':
: undefined reference to skb_dequeue' drivers/built-in.o(.text+0x6f006): In function hpsb_free_packet':
: undefined reference to `__kfree_skb'
make: *** [.tmp_vmlinux1] Error 1
[/make output]

Could someone please tell me what to do? :-/

I'd really appreciate any help.

Thanks and good luck!

Artemio.

Signature · 2 lines
A-Man ::: new music from Artemio ::: http://a-man.artemio.net
[local time 14:21:11 (GMT +3) 29 May 2004] [system uptime 1 hr 09 min]
#1 lore raw

PATCH 1/1 let IEEE1394 select NET

Quoted 1 line · Artemio

Hello all!

Hi Artemio!

Quoted 24 lines

I am trying to compile a clean, non-patched 2.6.6 kernel from right from kernel.org, using gcc 3.3.2. I have tried both gcc 3.3.2 in uclibc i386 root distribution and gcc 3.3.2-6mdk in mandrake 10.0. With both gcc's, at the end of all, I get:

[make output]
LD .tmp_vmlinux1
drivers/built-in.o(.text+0x6ef62): In function `hpsb_alloc_packet':
: undefined reference to alloc_skb' drivers/built-in.o(.text+0x6f68f): In function hpsb_packet_sent':
: undefined reference to skb_unlink' drivers/built-in.o(.text+0x6f82d): In function hpsb_send_packet':
: undefined reference to skb_queue_tail' drivers/built-in.o(.text+0x70199): In function abort_requests':
: undefined reference to skb_dequeue' drivers/built-in.o(.text+0x7025b): In function queue_packet_complete':
: undefined reference to skb_queue_tail' drivers/built-in.o(.text+0x702bf): In function hpsbpkt_thread':
: undefined reference to skb_dequeue' drivers/built-in.o(.text+0x6f006): In function hpsb_free_packet':
: undefined reference to `__kfree_skb'
make: *** [.tmp_vmlinux1] Error 1
[/make output]

Quoted 4 lines

Could someone please tell me what to do? :-/

I'd really appreciate any help.
...

Thanks for this report.

FireWire support requires Networking support.

The following patch lets FireWire support automatically select Networking support:

drivers/ieee1394/Kconfig renamed from drivers/ieee1394/Kconfig.old +1 -0
@@ -4,6 +4,7 @@
 
 config IEEE1394
 	tristate "IEEE 1394 (FireWire) support"
+	select NET
 	help
 	  IEEE 1394 describes a high performance serial bus, which is also
 	  known as FireWire(tm) or i.Link(tm) and is used for connecting all
Quoted 1 line

Artemio.

cu
Adrian

Signature · 4 lines
       "Is there not promise of rain?" Ling Tan asked suddenly out
        of the darkness. There had been need of rain for many days.
       "Only a promise," Lao Er said.
                                       Pearl S. Buck - Dragon Seed
#2 lore raw

Re: [2.6 patch] let IEEE1394 select NET

Quoted 2 lines · Adrian Bunk

The following patch lets FireWire support automatically select Networking support:

And so we get another fscking symbol which has a non-obvious way to turn it off.

Signature · 4 lines
Russell King
 Linux kernel    2.6 ARM Linux   - http://www.arm.linux.org.uk/
 maintainer of:  2.6 PCMCIA      - http://pcmcia.arm.linux.org.uk/
                 2.6 Serial core
#3 lore raw

Re: [2.6 patch] let IEEE1394 select NET

Quoted 6 lines · Russell King
Quoted 2 lines · Adrian Bunk

The following patch lets FireWire support automatically select Networking support:

And so we get another fscking symbol which has a non-obvious way to turn it off.

Alternatively, the following patch would also solve this issue:

drivers/ieee1394/Kconfig renamed from drivers/ieee1394/Kconfig.old +1 -0
@@ -4,6 +4,7 @@
 
 config IEEE1394
 	tristate "IEEE 1394 (FireWire) support"
+	depends on NET
 	help
 	  IEEE 1394 describes a high performance serial bus, which is also
 	  known as FireWire(tm) or i.Link(tm) and is used for connecting all

cu
Adrian

Signature · 4 lines
       "Is there not promise of rain?" Ling Tan asked suddenly out
        of the darkness. There had been need of rain for many days.
       "Only a promise," Lao Er said.
                                       Pearl S. Buck - Dragon Seed
#4 lore raw

Re: [2.6 patch] let IEEE1394 select NET

In reply to Russell King
Quoted 8 lines · Russell King
Quoted 1 line · Adrian Bunk

The following patch lets FireWire support automatically select Networking support:

And so we get another fscking symbol which has a non-obvious way to turn it off.

Is it possible to make xconfig and menuconfig show what has an option selected?

--Andy

#5 lore raw

Re: [2.6 patch] let IEEE1394 select NET

On Sat, 29 May 2004 16:55:24 -0700 Andy Lutomirski <[email protected]> wrote:

| Russell King wrote:
| 
| > On Sat, May 29, 2004 at 02:14:08PM +0200, Adrian Bunk wrote:
| > 
| >>The following patch lets FireWire support automatically select 
| >>Networking support:
| > 
| > 
| > And so we get another fscking symbol which has a non-obvious way to
| > turn it off.
| > 
| 
| Is it possible to make xconfig and menuconfig show what has an option selected?

It's possible to "Show all options" and several other gui options in xconfig. I don't know of similar options in menuconfig.

The xconfig options are useful for debugging where options are defined, what controls them, etc.

--
~Randy

author
#6 lore raw
In reply to Artemio

I am continuing my tries...

GCC 2.96, linux-2.6.6.

<make_output>
LD .tmp_vmlinux1
drivers/built-in.o: In function `hpsb_alloc_packet':
drivers/built-in.o(.text+0x76921): undefined reference to alloc_skb' drivers/built-in.o: In function hpsb_free_packet':
drivers/built-in.o(.text+0x769cc): undefined reference to __kfree_skb' drivers/built-in.o: In function hpsb_packet_sent':
drivers/built-in.o(.text+0x770a2): undefined reference to skb_unlink' drivers/built-in.o: In function hpsb_send_packet':
drivers/built-in.o(.text+0x77250): undefined reference to skb_queue_tail' drivers/built-in.o: In function abort_requests':
drivers/built-in.o(.text+0x77cd6): undefined reference to skb_dequeue' drivers/built-in.o: In function queue_packet_complete':
drivers/built-in.o(.text+0x77d9b): undefined reference to skb_queue_tail' drivers/built-in.o: In function hpsbpkt_thread':
drivers/built-in.o(.text+0x77e00): undefined reference to `skb_dequeue'
make: *** [.tmp_vmlinux1] Error 1
</make_output>

Am I doing something wrong? :-(

Artemio.

Signature · 2 lines
A-Man ::: new music from Artemio ::: http://a-man.artemio.net
[local time 16:19:25 (GMT +3) 29 May 2004] [system uptime 3 hr 07 min]
#7 lore raw
Quoted 6 lines · you

I am continuing my tries...

GCC 2.96, linux-2.6.6.
...

Am I doing something wrong? :-(

YES, you are using a very BUGGY gcc version!
Try 2.95.x (x >= 3) or go to 3.x.x.

I'm using GCC 3.3.3 without any problem.

Quoted 3 lines

Artemio.

Bye

Signature · 2 lines
	Paolo Ornati
	Linux v2.6.7-rc1-mm1
#8 lore raw
Quoted 9 lines · Paolo Ornati
Quoted 6 lines · you

I am continuing my tries...

GCC 2.96, linux-2.6.6.
...

Am I doing something wrong? :-(

YES, you are using a very BUGGY gcc version!

It's an unofficial gcc version, but it's not necessary more buggy than other versions of gcc.

And Documentation/Changes in Linux 2.6.6 also tells that your statement is wrong:

<-- snip -->

...
The Red Hat gcc 2.96 compiler subtree can also be used to build this tree. You should ensure you use gcc-2.96-74 or later. gcc-2.96-54 will not build the kernel correctly.
...

<-- snip -->

Quoted 2 lines

Try 2.95.x (x >= 3) or go to 3.x.x.
...

His problem is as far as I can see in no way related to the gcc version he's using.

Quoted 1 line

Bye

cu
Adrian

Signature · 4 lines
       "Is there not promise of rain?" Ling Tan asked suddenly out
        of the darkness. There had been need of rain for many days.
       "Only a promise," Lao Er said.
                                       Pearl S. Buck - Dragon Seed
#9 lore raw
Quoted 3 lines · Adrian Bunk

His problem is as far as I can see in no way related to the gcc version he's using.

Sorry,
;-)

Bye

Signature · 2 lines
	Paolo Ornati
	Linux v2.6.6
author
#10 lore raw

Re: error compiling linux-2.6.6 and 2.6.7-cr1

In reply to Artemio

I just patched the kernel up to 2.6.7-rc 1 but got the same error, both on gcc 3.3.2 and gcc 2.96.

...

Artemio.

Signature · 2 lines
A-Man ::: new music from Artemio ::: http://a-man.artemio.net
[local time 15:43:39 (GMT +3) 29 May 2004] [system uptime 2 hr 31 min]
#11 lore raw

Re: error compiling linux-2.6.6 and 2.6.7-cr1

Quoted 2 lines · Artemio

I just patched the kernel up to 2.6.7-rc 1 but got the same error, both on gcc 3.3.2 and gcc 2.96.

Sorry if my answer was to technical.

Workaround for your problem:

Enable:

Device Drivers
Networking support
Networking support

Quoted 1 line

Artemio.

cu
Adrian

Signature · 4 lines
       "Is there not promise of rain?" Ling Tan asked suddenly out
        of the darkness. There had been need of rain for many days.
       "Only a promise," Lao Er said.
                                       Pearl S. Buck - Dragon Seed