LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
LinkBack Search this Thread
Old 04-10-2004, 11:11 AM   #1
cb9fl
Member
 
Registered: Oct 2003
Posts: 64

Rep: Reputation: 15
Problem running make menuconfig


I reloaded my computer with Slack 9.1 and copied a working 2.6.3 kernel and ran lilo. If I run uname -r I get 2.6.3. After reloading I ran the dropline installer and let it install everything.

I downloaded the kernel 2.6.5 source and decompressed it in /usr/src and created a symlink as /usr/src/linux. When I run make menuconfig I get the following and get dumped back out to the command line.

HOSTCC scripts/basic/fixdep
In file included from /usr/include/bits/posix1_lim.h:126,
from /usr/include/limits.h:144,
from /usr/lib/gcc-lib/i486-slackware-linux/3.2.3/include/limits.h:132,
from /usr/lib/gcc-lib/i486-slackware-linux/3.2.3/include/syslimits.h:7,
from /usr/lib/gcc-lib/i486-slackware-linux/3.2.3/include/limits.h:11,
from scripts/basic/fixdep.c:105:
/usr/include/bits/local_lim.h:36:26: linux/limits.h: No such file or directory
In file included from /usr/include/netinet/in.h:212,
from scripts/basic/fixdep.c:107:
/usr/include/bits/socket.h:305:24: asm/socket.h: No such file or directory
scripts/basic/fixdep.c: In function `use_config':
scripts/basic/fixdep.c:193: `PATH_MAX' undeclared (first use in this function)
scripts/basic/fixdep.c:193: (Each undeclared identifier is reported only once
scripts/basic/fixdep.c:193: for each function it appears in.)
scripts/basic/fixdep.c:193: warning: unused variable `s'
scripts/basic/fixdep.c: In function `parse_dep_file':
scripts/basic/fixdep.c:289: `PATH_MAX' undeclared (first use in this function)
scripts/basic/fixdep.c:289: warning: unused variable `s'
make[1]: *** [scripts/basic/fixdep] Error 1
make: *** [scripts_basic] Error 2




I'm trying to get nvidia drivers working and am getting unknown module errors. I was planning on just compiling a new kernel.
 
Old 04-10-2004, 11:51 AM   #2
hp_tux
Member
 
Registered: Mar 2004
Location: Germany
Distribution: mainly Slackware 9.1, SuSE, Debian, Mandrake, ...
Posts: 87

Rep: Reputation: 15
Hello,

well, it seems that some header files in "/usr/include" are missing. I have created the following symlinks in "/usr/include":
Code:
asm -> /usr/include/asm-i386/
asm-generic -> /usr/src/linux/include/asm-generic/
asm-i386 -> /usr/src/linux/include/asm-i386/
linux -> /usr/src/linux/include/linux/
Maybe there is a better way to solve this problem, but for me it works...

cu

hp_tux
 
Old 04-10-2004, 12:08 PM   #3
trey85stang
Senior Member
 
Registered: Sep 2003
Posts: 1,068

Rep: Reputation: 41
let me get this straight. you run 2.6.3 kernel... and are trying to compile nvidia drivers against the 2.6.5 source???

im pretty sure you need to compile agaist the source for the kernel you are running...
 
Old 04-10-2004, 12:32 PM   #4
cb9fl
Member
 
Registered: Oct 2003
Posts: 64

Original Poster
Rep: Reputation: 15
I'm running 2.6.3 but I'm going to compile a new kernel based on 2.6.5 and then work on installing the nvidia drivers.
 
Old 04-10-2004, 04:36 PM   #5
cb9fl
Member
 
Registered: Oct 2003
Posts: 64

Original Poster
Rep: Reputation: 15
I think I've solved the problem. I installed the kernel source and header files for 2.4.22 from the slackware CD.

When you compile a new kernel do the existing header files for 2.4.22 get overwritten with the files from 2.6.5?
 
Old 04-14-2004, 12:50 AM   #6
m0ose
LQ Newbie
 
Registered: Apr 2004
Posts: 2

Rep: Reputation: 0
Talking fix

I searched far and wide on google and other sites. What I found is allot of people have this question and very few have the answer. This may cure your troubles. I found it on
<a href="
http://lists.samba.org/archive/samba...ch/064442.html
">
http://lists.samba.org/archive/samba...ch/064442.html
</a>

----original----
I found the fix...

Basically the problem is that the compile is looking for headers that are
usually distributed with the kernel sources

by grabbing the latest kernel, untaring it in /usr/src, and creating the
following links:

/usr/include/linux -> /usr/src/linux/include/linux
/usr/include/asm -> /usr/src/linux/include/asm-i386

everything worked.

Commands from start to beginning might look something like this:

cd /usr/src
wget http://www.kernel.org/pub/linux/kern...2.4.18.tar.bz2
bzip2 -dc linux-2.4.18.tar.bz2 | tar xvf -
cd /usr/include
ln -s /usr/src/linux/include/linux linux
ln -s /usr/src/linux/include/asm-i386 asm

Daniel Watrous
dwatrous at maintainfit.com

--------

now its on to some other problem
I try compileing the kernel and it says

timer.c:35: conflicting types for `xtime'
/usr/src/linux-2.4.5/include/linux/sched.h:540: previous declaration of `xtime'

how do I fix this?
 
Old 04-14-2004, 06:31 AM   #7
hp_tux
Member
 
Registered: Mar 2004
Location: Germany
Distribution: mainly Slackware 9.1, SuSE, Debian, Mandrake, ...
Posts: 87

Rep: Reputation: 15
Hello,

Quote:
cd /usr/include
ln -s /usr/src/linux/include/linux linux
ln -s /usr/src/linux/include/asm-i386 asm
hmm, I had posted this solution already in this thread!

cu

hp_tux
 
Old 04-30-2004, 12:49 PM   #8
masyva
LQ Newbie
 
Registered: Apr 2004
Location: World
Posts: 1

Rep: Reputation: 0
Thanks you hp_tux, your first post regarding the links helped me out a lot!
 
Old 12-07-2004, 01:49 AM   #9
houston1981
LQ Newbie
 
Registered: Jun 2004
Location: Campbelltown, AUS
Distribution: SuSe 9.2
Posts: 14

Rep: Reputation: 0
Ohhhhh man thanks Tux and Moose,..

Finnally a solution that actually worked for me...
you guys rock hard
 
  


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 Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
make menuconfig problem Tylr Slackware 3 08-13-2005 02:13 AM
Problems running make menuconfig Menestrel Debian 1 06-06-2005 12:35 AM
kernel make menuconfig problem matrixon Linux - Newbie 1 02-28-2005 12:38 PM
Make menuconfig problem nontoxic Slackware 6 03-12-2004 12:51 PM
make menuconfig problem zLinuxz Linux - General 5 12-01-2002 12:58 AM


All times are GMT -5. The time now is 09:55 PM.

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