Linux - GeneralThis 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.
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.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I tried to "make menuconfig" to continue compiling my kernel, but the console said:
Code:
scripts/basic/fixdep.c:107:23: error: sys/types.h: No such file or directory
scripts/basic/fixdep.c:108:22: error: sys/stat.h: No such file or directory
scripts/basic/fixdep.c:109:22: error: sys/mman.h: No such file or directory
scripts/basic/fixdep.c:110:20: error: unistd.h: No such file or directory
scripts/basic/fixdep.c:111:19: error: fcntl.h: No such file or directory
scripts/basic/fixdep.c:112:20: error: string.h: No such file or directory
scripts/basic/fixdep.c:113:20: error: stdlib.h: No such file or directory
scripts/basic/fixdep.c:114:19: error: stdio.h: No such file or directory
In file included from /usr/lib/gcc/i486-linux-gnu/4.1.2/include/syslimits.h:7,
from /usr/lib/gcc/i486-linux-gnu/4.1.2/include/limits.h:11,
from scripts/basic/fixdep.c:115:
/usr/lib/gcc/i486-linux-gnu/4.1.2/include/limits.h:122:61: error: limits.h: No s
uch file or directory
scripts/basic/fixdep.c:116:19: error: ctype.h: No such file or directory
scripts/basic/fixdep.c:117:23: error: arpa/inet.h: No such file or directory
scripts/basic/fixdep.c: In function 'usage':
scripts/basic/fixdep.c:131: warning: implicit declaration of function 'fprintf'
scripts/basic/fixdep.c:131: warning: incompatible implicit declaration of built-
in function 'fprintf'
scripts/basic/fixdep.c:131: error: 'stderr' undeclared (first use in this functi
on)
scripts/basic/fixdep.c:131: error: (Each undeclared identifier is reported only
once
scripts/basic/fixdep.c:131: error: for each function it appears in.)
scripts/basic/fixdep.c:132: warning: implicit declaration of function 'exit'
scripts/basic/fixdep.c:132: warning: incompatible implicit declaration of built-
in function 'exit'
scripts/basic/fixdep.c: In function 'print_cmdline':
scripts/basic/fixdep.c:140: warning: implicit declaration of function 'printf'
scripts/basic/fixdep.c:140: warning: incompatible implicit declaration of built-
in function 'printf'
scripts/basic/fixdep.c: At top level:
scripts/basic/fixdep.c:143: error: 'NULL' undeclared here (not in a function)
scripts/basic/fixdep.c: In function 'grow_config':
scripts/basic/fixdep.c:156: warning: implicit declaration of function 'realloc'
scripts/basic/fixdep.c:156: warning: assignment makes pointer from integer witho
ut a cast
scripts/basic/fixdep.c:158: warning: implicit declaration of function 'perror'
scripts/basic/fixdep.c:158: warning: incompatible implicit declaration of built-
in function 'exit'
scripts/basic/fixdep.c: In function 'is_defined_config':
scripts/basic/fixdep.c:174: warning: implicit declaration of function 'memcmp'
scripts/basic/fixdep.c: In function 'define_config':
scripts/basic/fixdep.c:187: warning: implicit declaration of function 'memcpy'
scripts/basic/fixdep.c:187: warning: incompatible implicit declaration of built-
in function 'memcpy'
scripts/basic/fixdep.c: In function 'use_config':
scripts/basic/fixdep.c:206: error: 'PATH_MAX' undeclared (first use in this func
tion)
scripts/basic/fixdep.c:214: warning: incompatible implicit declaration of built-
in function 'memcpy'
scripts/basic/fixdep.c:220: warning: implicit declaration of function 'tolower'
scripts/basic/fixdep.c:222: warning: incompatible implicit declaration of built-
in function 'printf'
scripts/basic/fixdep.c:206: warning: unused variable 's'
scripts/basic/fixdep.c: At top level:
scripts/basic/fixdep.c:225: error: expected declaration specifiers or '...' befo
re 'size_t'
scripts/basic/fixdep.c: In function 'parse_config_file':
scripts/basic/fixdep.c:227: error: 'len' undeclared (first use in this function)
scripts/basic/fixdep.c:233: warning: implicit declaration of function 'ntohl'
scripts/basic/fixdep.c:244: warning: implicit declaration of function 'isalnum'
scripts/basic/fixdep.c: In function 'strrcmp':
scripts/basic/fixdep.c:261: warning: implicit declaration of function 'strlen'
scripts/basic/fixdep.c:261: warning: incompatible implicit declaration of built-
in function 'strlen'
scripts/basic/fixdep.c: In function 'do_config_file':
scripts/basic/fixdep.c:272: error: storage size of 'st' isn't known
scripts/basic/fixdep.c:276: warning: implicit declaration of function 'open'
scripts/basic/fixdep.c:276: error: 'O_RDONLY' undeclared (first use in this func
tion)
scripts/basic/fixdep.c:278: warning: incompatible implicit declaration of built-
in function 'fprintf'
scripts/basic/fixdep.c:278: error: 'stderr' undeclared (first use in this functi
on)
scripts/basic/fixdep.c:280: warning: incompatible implicit declaration of built-
in function 'exit'
scripts/basic/fixdep.c:282: warning: implicit declaration of function 'fstat'
scripts/basic/fixdep.c:284: warning: implicit declaration of function 'close'
scripts/basic/fixdep.c:287: warning: implicit declaration of function 'mmap'
scripts/basic/fixdep.c:287: error: 'PROT_READ' undeclared (first use in this fun
ction)
scripts/basic/fixdep.c:287: error: 'MAP_PRIVATE' undeclared (first use in this f
unction)
scripts/basic/fixdep.c:287: warning: assignment makes pointer from integer witho
ut a cast
scripts/basic/fixdep.c:294: error: too many arguments to function 'parse_config_
file'
scripts/basic/fixdep.c:296: warning: implicit declaration of function 'munmap'
scripts/basic/fixdep.c:272: warning: unused variable 'st'
scripts/basic/fixdep.c: At top level:
scripts/basic/fixdep.c:301: error: expected declaration specifiers or '...' befo
re 'size_t'
scripts/basic/fixdep.c: In function 'parse_dep_file':
scripts/basic/fixdep.c:304: error: 'len' undeclared (first use in this function)
scripts/basic/fixdep.c:306: error: 'PATH_MAX' undeclared (first use in this func
tion)
scripts/basic/fixdep.c:308: warning: implicit declaration of function 'strchr'
scripts/basic/fixdep.c:308: warning: incompatible implicit declaration of built-
in function 'strchr'
scripts/basic/fixdep.c:310: warning: incompatible implicit declaration of built-
in function 'fprintf'
scripts/basic/fixdep.c:310: error: 'stderr' undeclared (first use in this functi
on)
scripts/basic/fixdep.c:311: warning: incompatible implicit declaration of built-
in function 'exit'
scripts/basic/fixdep.c:313: warning: incompatible implicit declaration of built-
in function 'memcpy'
scripts/basic/fixdep.c:314: warning: incompatible implicit declaration of built-
in function 'printf'
scripts/basic/fixdep.c:306: warning: unused variable 's'
scripts/basic/fixdep.c: In function 'print_deps':
scripts/basic/fixdep.c:343: error: storage size of 'st' isn't known
scripts/basic/fixdep.c:347: error: 'O_RDONLY' undeclared (first use in this func
tion)
scripts/basic/fixdep.c:349: warning: incompatible implicit declaration of built-
in function 'fprintf'
scripts/basic/fixdep.c:349: error: 'stderr' undeclared (first use in this functi
on)
scripts/basic/fixdep.c:351: warning: incompatible implicit declaration of built- in function 'exit'
scripts/basic/fixdep.c:355: warning: incompatible implicit declaration of built- in function 'fprintf'
scripts/basic/fixdep.c:359: error: 'PROT_READ' undeclared (first use in this fun ction)
scripts/basic/fixdep.c:359: error: 'MAP_PRIVATE' undeclared (first use in this f unction)
scripts/basic/fixdep.c:359: warning: assignment makes pointer from integer witho ut a cast
scripts/basic/fixdep.c:366: error: too many arguments to function 'parse_dep_fil e'
scripts/basic/fixdep.c:343: warning: unused variable 'st'
scripts/basic/fixdep.c: In function 'traps':
scripts/basic/fixdep.c:378: warning: incompatible implicit declaration of built- in function 'fprintf'
scripts/basic/fixdep.c:378: error: 'stderr' undeclared (first use in this functi on)
scripts/basic/fixdep.c:380: warning: incompatible implicit declaration of built- in function 'exit'
make[1]: *** [scripts/basic/fixdep] Error 1
make: *** [scripts_basic] Error 2
root@mepis1:/usr/src/linux#
Judging by how many times it said "no such file or directory," I assume there's something I don't have that I need?
I also tried "make xconfig," but it doesn't work either. It says:
Code:
root@mepis1:/usr/src/linux# make xconfig
HOSTCC scripts/basic/fixdep
scripts/basic/fixdep.c:107:23: error: sys/types.h: No such file or directory
scripts/basic/fixdep.c:108:22: error: sys/stat.h: No such file or directory
scripts/basic/fixdep.c:109:22: error: sys/mman.h: No such file or directory
scripts/basic/fixdep.c:110:20: error: unistd.h: No such file or directory
scripts/basic/fixdep.c:111:19: error: fcntl.h: No such file or directory
scripts/basic/fixdep.c:112:20: error: string.h: No such file or directory
scripts/basic/fixdep.c:113:20: error: stdlib.h: No such file or directory
scripts/basic/fixdep.c:114:19: error: stdio.h: No such file or directory
In file included from /usr/lib/gcc/i486-linux-gnu/4.1.2/include/syslimits.h:7,
from /usr/lib/gcc/i486-linux-gnu/4.1.2/include/limits.h:11,
from scripts/basic/fixdep.c:115:
/usr/lib/gcc/i486-linux-gnu/4.1.2/include/limits.h:122:61: error: limits.h: No such file or directory
scripts/basic/fixdep.c:116:19: error: ctype.h: No such file or directory
scripts/basic/fixdep.c:117:23: error: arpa/inet.h: No such file or directory
scripts/basic/fixdep.c: In function 'usage':
scripts/basic/fixdep.c:131: warning: implicit declaration of function 'fprintf'
scripts/basic/fixdep.c:131: warning: incompatible implicit declaration of built-in function 'fprintf'
scripts/basic/fixdep.c:131: error: 'stderr' undeclared (first use in this function)
scripts/basic/fixdep.c:131: error: (Each undeclared identifier is reported only once
scripts/basic/fixdep.c:131: error: for each function it appears in.)
scripts/basic/fixdep.c:132: warning: implicit declaration of function 'exit'
scripts/basic/fixdep.c:132: warning: incompatible implicit declaration of built-in function 'exit'
scripts/basic/fixdep.c: In function 'print_cmdline':
scripts/basic/fixdep.c:140: warning: implicit declaration of function 'printf'
scripts/basic/fixdep.c:140: warning: incompatible implicit declaration of built-in function 'printf'
scripts/basic/fixdep.c: At top level:
scripts/basic/fixdep.c:143: error: 'NULL' undeclared here (not in a function)
scripts/basic/fixdep.c: In function 'grow_config':
scripts/basic/fixdep.c:156: warning: implicit declaration of function 'realloc'
scripts/basic/fixdep.c:156: warning: assignment makes pointer from integer without a cast
scripts/basic/fixdep.c:158: warning: implicit declaration of function 'perror'
scripts/basic/fixdep.c:158: warning: incompatible implicit declaration of built-in function 'exit'
scripts/basic/fixdep.c: In function 'is_defined_config':
scripts/basic/fixdep.c:174: warning: implicit declaration of function 'memcmp'
scripts/basic/fixdep.c: In function 'define_config':
scripts/basic/fixdep.c:187: warning: implicit declaration of function 'memcpy'
scripts/basic/fixdep.c:187: warning: incompatible implicit declaration of built-in function 'memcpy'
scripts/basic/fixdep.c: In function 'use_config':
scripts/basic/fixdep.c:206: error: 'PATH_MAX' undeclared (first use in this function)
scripts/basic/fixdep.c:214: warning: incompatible implicit declaration of built-in function 'memcpy'
scripts/basic/fixdep.c:220: warning: implicit declaration of function 'tolower'
scripts/basic/fixdep.c:222: warning: incompatible implicit declaration of built-in function 'printf'
scripts/basic/fixdep.c:206: warning: unused variable 's'
scripts/basic/fixdep.c: At top level:
scripts/basic/fixdep.c:225: error: expected declaration specifiers or '...' before 'size_t'
scripts/basic/fixdep.c: In function 'parse_config_file':
scripts/basic/fixdep.c:227: error: 'len' undeclared (first use in this function)
scripts/basic/fixdep.c:233: warning: implicit declaration of function 'ntohl'
scripts/basic/fixdep.c:244: warning: implicit declaration of function 'isalnum'
scripts/basic/fixdep.c: In function 'strrcmp':
scripts/basic/fixdep.c:261: warning: implicit declaration of function 'strlen'
scripts/basic/fixdep.c:261: warning: incompatible implicit declaration of built-in function 'strlen'
scripts/basic/fixdep.c: In function 'do_config_file':
scripts/basic/fixdep.c:272: error: storage size of 'st' isn't known
scripts/basic/fixdep.c:276: warning: implicit declaration of function 'open'
scripts/basic/fixdep.c:276: error: 'O_RDONLY' undeclared (first use in this function)
scripts/basic/fixdep.c:278: warning: incompatible implicit declaration of built-in function 'fprintf'
scripts/basic/fixdep.c:278: error: 'stderr' undeclared (first use in this function)
scripts/basic/fixdep.c:280: warning: incompatible implicit declaration of built-in function 'exit'
scripts/basic/fixdep.c:282: warning: implicit declaration of function 'fstat'
scripts/basic/fixdep.c:284: warning: implicit declaration of function 'close'
scripts/basic/fixdep.c:287: warning: implicit declaration of function 'mmap'
scripts/basic/fixdep.c:287: error: 'PROT_READ' undeclared (first use in this function)
scripts/basic/fixdep.c:287: error: 'MAP_PRIVATE' undeclared (first use in this function)
scripts/basic/fixdep.c:287: warning: assignment makes pointer from integer without a cast
scripts/basic/fixdep.c:294: error: too many arguments to function 'parse_config_file'
scripts/basic/fixdep.c:296: warning: implicit declaration of function 'munmap'
scripts/basic/fixdep.c:272: warning: unused variable 'st'
scripts/basic/fixdep.c: At top level:
scripts/basic/fixdep.c:301: error: expected declaration specifiers or '...' before 'size_t'
scripts/basic/fixdep.c: In function 'parse_dep_file':
scripts/basic/fixdep.c:304: error: 'len' undeclared (first use in this function)
scripts/basic/fixdep.c:306: error: 'PATH_MAX' undeclared (first use in this function)
scripts/basic/fixdep.c:308: warning: implicit declaration of function 'strchr'
scripts/basic/fixdep.c:308: warning: incompatible implicit declaration of built-in function 'strchr'
scripts/basic/fixdep.c:310: warning: incompatible implicit declaration of built-in function 'fprintf'
scripts/basic/fixdep.c:310: error: 'stderr' undeclared (first use in this function)
scripts/basic/fixdep.c:311: warning: incompatible implicit declaration of built-in function 'exit'
scripts/basic/fixdep.c:313: warning: incompatible implicit declaration of built-in function 'memcpy'
scripts/basic/fixdep.c:314: warning: incompatible implicit declaration of built-in function 'printf'
scripts/basic/fixdep.c:306: warning: unused variable 's'
scripts/basic/fixdep.c: In function 'print_deps':
scripts/basic/fixdep.c:343: error: storage size of 'st' isn't known
scripts/basic/fixdep.c:347: error: 'O_RDONLY' undeclared (first use in this function)
scripts/basic/fixdep.c:349: warning: incompatible implicit declaration of built-in function 'fprintf'
scripts/basic/fixdep.c:349: error: 'stderr' undeclared (first use in this function)
scripts/basic/fixdep.c:351: warning: incompatible implicit declaration of built-in function 'exit'
scripts/basic/fixdep.c:355: warning: incompatible implicit declaration of built-in function 'fprintf'
scripts/basic/fixdep.c:359: error: 'PROT_READ' undeclared (first use in this function)
scripts/basic/fixdep.c:359: error: 'MAP_PRIVATE' undeclared (first use in this function)
scripts/basic/fixdep.c:359: warning: assignment makes pointer from integer without a cast
scripts/basic/fixdep.c:366: error: too many arguments to function 'parse_dep_file'
scripts/basic/fixdep.c:343: warning: unused variable 'st'
scripts/basic/fixdep.c: In function 'traps':
scripts/basic/fixdep.c:378: warning: incompatible implicit declaration of built-in function 'fprintf'
scripts/basic/fixdep.c:378: error: 'stderr' undeclared (first use in this function)
scripts/basic/fixdep.c:380: warning: incompatible implicit declaration of built-in function 'exit'
make[1]: *** [scripts/basic/fixdep] Error 1
make: *** [scripts_basic] Error 2
root@mepis1:/usr/src/linux#
Last edited by newbiesforever; 01-19-2009 at 05:59 PM.
I've had odd-ball failures when I've run out of space on the un-tar. Easy enough to check and re-extract it in need.
Just went and had a look at that other thread - ugh; that how-to is seriously old. Have a look at the README in your source tree for a reasonable walk-through.
For a Debian based distro, you might be better off using their tools - I see the reasonable entry here on the Mepis wiki.
Just went and had a look at that other thread - ugh; that how-to is seriously old. Have a look at the README in your source tree for a reasonable walk-through.
I've had odd-ball failures when I've run out of space on the un-tar. Easy enough to check and re-extract it in need.
Just went and had a look at that other thread - ugh; that how-to is seriously old. Have a look at the README in your source tree for a reasonable walk-through.
For a Debian based distro, you might be better off using their tools - I see the reasonable entry here on the Mepis wiki.
I wonder if that MEPIS wiki is entirely current itself, Syg, because it calls for qt3. I went to Synaptic to get it (or at least see if I had it), and Synaptic says qt4 is available. But I'll try qt3.
Last edited by newbiesforever; 01-19-2009 at 09:26 PM.
You were right, Syg--this MEPIS wiki is more helpful. Well, I'm trying it again, and something's changed for the better. Either I downloaded something that was missing, or, as you suggested, something went wrong the first time I unpacked the tarball. I've gotten "make oldconfig" to run. It's asking questions that I have no clue about, but the MEPIS wiki says to press Enter for all of them.
Something I learned while doing "make oldconfig": This part must be done as root, which the MEPIS wiki doesn't specify. I tried twice to do it from my account, and it failed, saying only "could not write oldconfig" or something to that effect.
... Wow. I'm not intimidated by the sheer length of this, but if I go through it line by line, it's going to take a while--possibly a few hours.
In case I need it later, where does the "oldconfig" get stored?
Last edited by newbiesforever; 01-20-2009 at 12:23 AM.
If you couldn't write the .config except as root, it means that you had already created a .config file while logged into root. Just change the owner on the file and it'll be OK.
Normally you will want to take the default (press enter key) while doing a make oldconfig, unless you know that you have the new hardware being specified or want to use the new functions offered. As a newbie, it's a good bet that you don't. Normally I kind of half pay attention, myself.
I meant that when I go through the "make menuconfig" or "make xconfig" line by line, it could take hours. Sorry for being unclear. (When I had that thought, I was forgetting that xconfig is supposed to have graphics.) Well, I could have just held the Enter key during oldconfig, but I'm inquisitive, and had to read some lines.
"make xconfig" is pretty good, in that it allows you to do a search (CTL-F). It's helped me track down several items that I couldn't find, otherwise. One or two of them were even worthwhile finding. LOL
Don't want to have to repeat myself, but you're all ignoring the errors themselves and trying to diagnose that there _are_ errors.
These are all compiler errors. They all stem from missing header files. They only stem from missing header files. These are not specific to the kernel sources; the kernel sources would not use headers with the same name as standard headers- look at the lines from the top, to 'In file included...'- these are errors finding those headers. The rest are from using functions and vars in those headers; they're not defined anymore.
Re-build either gcc, or, in case you still think you have a different error, look at the dirs where headers are kept:
/usr/local/include
/usr/lib/gcc-lib/target/version/include
/usr/target/include
/usr/include
and _see_ they're not there.
@Quakeboy02 - You shouldn't be able to write .config as anything but root, its root for a pretty good reason- that is your kernel config afterall. Not to mention he was as root anyway, so ownership is a non-issue
Rebuild Gcc? That's another can of worms--I would have no idea how to rebuild it, unless it's something I can download. Pretty much the same thing for the kernel headers. I just looked in Synaptic, and it says I have them (both the MEPIS-specific and the non-MEPIS-specific). I'll try reinstalling them...
EDIT: I guess that didn't work, because James is right--the headers are not in those folders. But I do have them--they're in /usr/src.
Last edited by newbiesforever; 01-20-2009 at 11:27 AM.
Okay, thats odd- see, the header files would be those directories, thats where the compiler wants to get them. By rebuild, thats all I meant- a reinstall. It just looks like a misconfig somewhere- I don't know how MEPIS specifically does it, but since it is debian based, try a quick
Code:
apt-get purge gcc
apt-get install gcc
and see if that puts everything back where it ought to be- Its the best I can suggest really... although, does MEPIS do similar things to Ubuntu in kernel building (Since some versions of MEPIS take code from ubuntu specifically) - in which case, I think certain extra packages need building- I can't remember what I needed for ubuntu, but I remember needing some; sorry I can't be specific.
@Quakeboy02 - You shouldn't be able to write .config as anything but root, its root for a pretty good reason- that is your kernel config afterall. Not to mention he was as root anyway, so ownership is a non-issue
You do not have to be root in order to be able to write to the .config file *that is within your kernel source tree*. End of story.
As to the headers, you're may be right. I haven't taken the time to look.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.