LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 11-20-2003, 09:23 AM   #1
saint
Member
 
Registered: Sep 2001
Location: India
Distribution: Red Hat 9
Posts: 55

Rep: Reputation: 15
2.6-test9 compile problem - undefined reference to `ide_hwifs'


I tried to compile the linux-2.6.0-test9 kernel on a Red Hat 9 system. The compile gave an error. I am posting the error message below. Any help would be very welcome.

Code:
  LD      init/built-in.o
  LD      .tmp_vmlinux1
drivers/built-in.o(.text+0x384c2): In function `ide_match_hwif':
drivers/ide/setup-pci.c:59: undefined reference to `ide_hwifs'
drivers/built-in.o(.text+0x384c8):drivers/ide/setup-pci.c:59: undefined reference to `ide_hwifs'
drivers/built-in.o(.text+0x384f0):drivers/ide/setup-pci.c:71: undefined reference to `ide_hwifs'

 ---- REMOVED A LOT OF ERROR MESSAGES __

drivers/built-in.o(.text+0x399b0): In function `__ide_dma_off_quietly':
drivers/ide/ide-dma.c:507: undefined reference to `ide_toggle_bounce'
drivers/built-in.o(.text+0x39a70): In function `__ide_dma_on':
drivers/ide/ide-dma.c:568: undefined reference to `ide_toggle_bounce'
drivers/built-in.o(.text+0x39bc7): In function `__ide_dma_read':
drivers/ide/ide-dma.c:659: undefined reference to `ide_execute_command'
drivers/built-in.o(.text+0x39c67): In function `__ide_dma_write':
drivers/ide/ide-dma.c:690: undefined reference to `ide_execute_command'
drivers/built-in.o(.text+0x39ed2): In function `__ide_dma_verbose':
drivers/ide/ide-dma.c:825: undefined reference to `eighty_ninty_three'
make: *** [.tmp_vmlinux1] Error 1
Any help on what I am missing ?
 
Old 11-20-2003, 10:22 AM   #2
schatoor
Senior Member
 
Registered: Jul 2002
Location: a tiny place caled hendrik ido ambacht in the netherlands
Distribution: SuSE, debian, slackware, lfs
Posts: 1,358

Rep: Reputation: 45
Hi there.
First, what version of gcc do you have. Seing that you use RH 9, which is an modern distro, gcc should be fine.
Another thing could be that your ram is not good any more. memtest86 is an utility that test's your ram. I would recomend you try it.
 
Old 11-20-2003, 10:39 AM   #3
saint
Member
 
Registered: Sep 2001
Location: India
Distribution: Red Hat 9
Posts: 55

Original Poster
Rep: Reputation: 15
Thanks for your hints. however, the compile itself fails. I cannot build bzImage itself, so I think I am not setting some of the options correctly.
My gcc is gcc (GCC) 3.2.2 20030222
 
Old 11-20-2003, 12:17 PM   #4
schatoor
Senior Member
 
Registered: Jul 2002
Location: a tiny place caled hendrik ido ambacht in the netherlands
Distribution: SuSE, debian, slackware, lfs
Posts: 1,358

Rep: Reputation: 45
Yes I got that. Generally, when an kernel compilation fails, it can be an indication that the ram is bad, because the kernel compilation process makes extensive use of the ram.
The thing is, the kernel guy's make absolutely sure the code is alright. Under no circumstances should a kernel compilation fail. If it does, there is something seriously wrong.
And as I thought, your gcc version is very new. I really think you should suspect your ram.
 
Old 11-20-2003, 02:40 PM   #5
saint
Member
 
Registered: Sep 2001
Location: India
Distribution: Red Hat 9
Posts: 55

Original Poster
Rep: Reputation: 15
I think I had made some mistakes in making my selections. I took the original config file of my RedHat from "/boot/config-2.4.20-8" and copied it to the source directory as .config. Then I ran make oldconfig. It asked a few question and then when I recompiled it, everything went smoothly.

So, I guess I made some wrong choices somewhere. The modules are still being compiled, hopefully I should not get any errors. Thanks for your help.
 
Old 11-20-2003, 04:53 PM   #6
schatoor
Senior Member
 
Registered: Jul 2002
Location: a tiny place caled hendrik ido ambacht in the netherlands
Distribution: SuSE, debian, slackware, lfs
Posts: 1,358

Rep: Reputation: 45
Okey, my bad. Sorry.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
problem of undefined reference to `__ctype_b' nelnel Programming 3 08-01-2007 01:40 AM
Compile QT get Undefined reference jordban Linux - General 14 01-15-2005 06:58 PM
Glib-1.020 install problem Can't use an undefined value as a symbol reference jimdaworm Linux - Software 1 01-03-2004 05:32 AM
ncurses compile error: "undefined reference" Mr. Eek Linux From Scratch 1 05-12-2003 04:25 PM
Yet another 'undefined reference' problem faulpelz2 Linux - Software 3 04-04-2003 11:18 AM


All times are GMT -5. The time now is 07:56 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration