LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 08-29-2002, 05:57 PM   #16
SparceMatrix
Member
 
Registered: Aug 2002
Distribution: SME Server, CentOS
Posts: 219

Original Poster
Rep: Reputation: 30

In the course of struggling with this problem, I have created a new custom kernel. This was already happening when I tried using the GUI tool Linux Kernel Configurator, which is a kind of graphical front end for editing a .Config file much like 'make xconfig'. I finally figured out what it did and did some studying (LDP Documentation and Linux Programming Unleashed again) on compiling a custom kernel, which is something I wanted to do anyway. In a sense, the module I wanted to make adustments to is part of the kernel too, so I guess there was no avoiding it. It can also be compiled into the kernel statically.

So I compiled this new kernel. The kernel compilation was configured so that my adjusted module was to be added as a module. The source code for the module that I made small adustments to compiled with no problems and can be loaded with 'insmod' with no problem. And, I can make further adjustments to the source code and use 'make modules' and 'make_install' to apply the changes.

This part of the problem is SOLVED.

Also, the Hello World modules are loading just fine now. The mysterious 'version 2.4.18-5custom' that shows up in the errors is the aborted kernel that was started when I used the Linux Kernel Configurator. The Makefile in the /build directory adds 'custom' to the version name for the kernel to keep the new compilation from overwriting the old kernel.

So, this part of the problem is also SOLVED.

I am also having some other odd version problems elsewhere, but that can be for another thread. And, shouldn't I be able to compile this module without making a new kernel? But, unless anyone else has anything to add,

PROBLEM SOLVED

Thanks to Mara and all who tuned in to help.
 
Old 08-30-2002, 12:38 PM   #17
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
You should be able to compile the module for any kernel (2.4.x in your case) when you have source of this kernel.
 
Old 09-02-2002, 12:12 PM   #18
SparceMatrix
Member
 
Registered: Aug 2002
Distribution: SME Server, CentOS
Posts: 219

Original Poster
Rep: Reputation: 30
I need to add a few points to this particular problem, because the issue has come up again. I am able to compile the module that was the original source of this inquiry, but only in the 2.4.18-5custom kernel. This was satisfactory, because it was mostly experimental. But now, I am back in my main 2.4.18-5 kernel and I am trying to compile and install another module and I am getting the same "unresolved symbols" errors.

In a way, this is a good thing, because it forces the issue back to the kernel and maybe some headers. The module I was first trying to compile was not the problem.

So what is going on? Something that comes to mind is that when I use my Red Hat Upgrade Agent, I am finding that my kernel upgrade is to 2.4.18 with no '-', or build number, or whatever they call that number. Has my kernel library been damaged or misplaced or something?
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
why there is so many errors to compile a module ,help me! qqrilxk Programming 3 03-30-2005 08:57 PM
module compile - orinoco BashTin Linux - Newbie 2 02-09-2005 08:14 AM
how to compile a module with a newer version of the linux kernel? fvarela Programming 2 07-29-2004 02:00 AM
Compile A Single Module leohuang Linux - General 4 05-02-2004 06:20 AM
Module versus a Re-Compile Zachary Linux - Newbie 3 08-29-2002 06:25 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 12:39 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration