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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
11-20-2003, 09:23 AM
|
#1
|
|
Member
Registered: Sep 2001
Location: India
Distribution: Red Hat 9
Posts: 55
Rep:
|
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 ?
|
|
|
|
11-20-2003, 10:22 AM
|
#2
|
|
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:
|
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.
|
|
|
|
11-20-2003, 10:39 AM
|
#3
|
|
Member
Registered: Sep 2001
Location: India
Distribution: Red Hat 9
Posts: 55
Original Poster
Rep:
|
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
|
|
|
|
11-20-2003, 12:17 PM
|
#4
|
|
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:
|
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.
|
|
|
|
11-20-2003, 02:40 PM
|
#5
|
|
Member
Registered: Sep 2001
Location: India
Distribution: Red Hat 9
Posts: 55
Original Poster
Rep:
|
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.
|
|
|
|
11-20-2003, 04:53 PM
|
#6
|
|
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:
|
Okey, my bad. Sorry.
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 05:43 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|