LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
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 12-18-2003, 06:03 PM   #1
Maranza
Member
 
Registered: Dec 2003
Distribution: Kubuntu Edgy
Posts: 38

Rep: Reputation: 15
Exclamation Can't compile some kernels!


I installed mdk9.2, which comes with a modified 2.4.22 kernel. I needed pppoATM support so i downloaded the 2.4.23 (standard) kernel source and successfully compiled and run it. Then i noticed that i have no supermount support so i re-compiled the 2.4.22mdk to have atm support. Everything went okay. But the drivers that i needed the modified kernel for (i'm not compiling kernel for fun, you know!) are made for a 2.4.16 kernel (they are binaries, i can't find anything better) and neither kernel 22 nor 23 could use those drivers. I read that the 19 and 20 kernel could handle the drivers... So i tried with 2.4.19mdk, but failed in bzImage. I tried the 2.4.19 and failed again. Finally i tried with a 2.4.20 and make bzImage failed again (on ide-cd.o!). Seems like i can't compile any kernel older than the 2.4.22...
what could be the problem?
 
Old 12-18-2003, 06:38 PM   #2
/bin/bash
Senior Member
 
Registered: Jul 2003
Location: Indiana
Distribution: Mandrake Slackware-current QNX4.25
Posts: 1,802

Rep: Reputation: 46
What driver do you have that requires 2.4.16 kernel?

I would not recommend you go backwards with your kernel.
 
Old 12-18-2003, 07:04 PM   #3
Maranza
Member
 
Registered: Dec 2003
Distribution: Kubuntu Edgy
Posts: 38

Original Poster
Rep: Reputation: 15
I've got an Itex based ADSL PCI card and the latest drivers are for 2.4.16 (binary). Some people reported that it can work up to 19 or 20, but that's all, the 2.4.22mdk is not a good kernel, because they have changed something in the ATM code.

So i HAVE to get an older kernel. I'm not choosing anything. Eventually i'll go crazy, dump that PCI shit and buy an ethernet ADSL modem, but that's not an option now.

I've re-compiled a 2.4.19 kernel to give you some info about the compile process...

Last interesting lines of the make bzImage output:
gcc -D__KERNEL__ -I/usr/src/linux-2.4.19/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=athlon -nostdinc -I /usr/lib/gcc-lib/i586-mandrake-linux-gnu/3.3.1/include -DKBUILD_BASENAME=semaphore -c -o semaphore.o semaphore.c
semaphore.c:265:1: missing terminating " character
semaphore.c:290:1: missing terminating " character
make[1]: *** [semaphore.o] Error 1
make[1]: Leaving directory `/usr/src/linux-2.4.19/arch/i386/kernel'
make: *** [_dir_arch/i386/kernel] Error 2

i know a little C and line 265 of semaphore.c looks like this:
----------
functionname(
"
the string has been opened
on another line, but you can do that in c right?
", anotherargument)
-----------
which i suppose is perfectly legal c.

and here you can find my config file...
http://space.virgilio.it/r.pelizzi@virgilio.it/config
if you'd be so kind to take a look at that.
I'm not good at compiling kernels, but i compiled 2.4.22mdk and 2.4.23 with pretty much the same options and everything went fine...

help me plz
 
Old 12-19-2003, 03:58 PM   #4
/bin/bash
Senior Member
 
Registered: Jul 2003
Location: Indiana
Distribution: Mandrake Slackware-current QNX4.25
Posts: 1,802

Rep: Reputation: 46
Have uou tried a pre-built kernel? If you go back to Mandrake-9.0 you can get a 2.4.19 kernel. Since the driver is a binary you are not going to compile it against the kernel sources so you don't really need to build your own kernel.

Here is a link if you want to try it.
ftp://mandrake.mirrors.pair.com/mand...-1mdk.i586.rpm

Sorry you have to login anonymous to download it.

Last edited by /bin/bash; 12-19-2003 at 04:10 PM.
 
  


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
Which kernels best to compile binaries against? WoofDeF Debian 3 06-24-2005 02:47 AM
ntop compile/post-compile problem? tjb Linux - Software 3 12-28-2004 05:22 PM
4 different kernels? ampex189 Linux - General 4 03-26-2004 03:16 AM
RH 8 kernels and their relation to 'stock' kernels psweetma Linux - Distributions 1 03-29-2003 11:46 PM
Kernels EyeGuy Linux - Software 11 11-16-2001 06:17 PM


All times are GMT -5. The time now is 12:27 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration