Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
configure script not accepting kernel version
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
alexwade
n00b
n00b


Joined: 22 Aug 2002
Posts: 47
Location: Orlando, FL

PostPosted: Tue Dec 17, 2002 4:49 am    Post subject: configure script not accepting kernel version Reply with quote

I am trying to compile PCTel Modem drivers on my system running kernel 2.4.19-gentoo-r10. When I run ./configure, I get this output:
Code:
checking for Linux kernel version >= 2.4.0...
./configure: line 3344: test: 2-gentoo: integer expression expected
configure: error: You should have linux kernel >= 2.4.0 installed
I know that I'm getting this output because the script's kernel version detection doesn't like the fact that there's anything after the "2.4.19" in the version string. What I would like to know is how can I edit this script (or do anything else) so that it accepts my kernel version string and i can compile the program.
Back to top
View user's profile Send private message
rac
Bodhisattva
Bodhisattva


Joined: 30 May 2002
Posts: 6553
Location: Japanifornia

PostPosted: Tue Dec 17, 2002 7:17 am    Post subject: Reply with quote

Can you post the part of configure.in that makes this test?
_________________
For every higher wall, there is a taller ladder
Back to top
View user's profile Send private message
alexwade
n00b
n00b


Joined: 22 Aug 2002
Posts: 47
Location: Orlando, FL

PostPosted: Tue Dec 17, 2002 11:54 pm    Post subject: Reply with quote

I fixed it by manually putting the kernel version into the script
Back to top
View user's profile Send private message
djrobx
n00b
n00b


Joined: 09 Jan 2003
Posts: 4

PostPosted: Mon Jan 13, 2003 3:42 am    Post subject: Reply with quote

I also had that problem. I got it to compile, but modprobe complains of it being compiled in GCC version 2 while the kernel is compiled in 3. After doing some digging, the PCTel driver apparnetly contains some preompiled modules that are linked in, so modprobe rejects it.

You can get it to load by doing

Code:
insmod -f pctel && insmod -f ptserial


but I'm not sure where to put that so that it loads correctly on startup. You can't put it in modules.autoload because of the -f parameter. Other documentation suggests rc.d/rc.local, which my gentoo install doesn't appear to have. Help?

-- Rob
Back to top
View user's profile Send private message
alexwade
n00b
n00b


Joined: 22 Aug 2002
Posts: 47
Location: Orlando, FL

PostPosted: Sun May 04, 2003 2:57 am    Post subject: Reply with quote

For those wondering exactly how I fixed the version, look at this topic: https://forums.gentoo.org/viewtopic.php?t=44466
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum