LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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
  Search this Thread
Old 06-13-2008, 07:18 PM   #1
brain:proxy
LQ Newbie
 
Registered: Jun 2008
Posts: 7

Rep: Reputation: 0
Compile failure - VIA C3 -


I am brand new to slack, but have used other flavors in the past. Compiling is fairly new to me also.

I'm trying to compile my own kernel with some specific drivers. However, I'm failing "make menuconfig" (see below) I have searched and searched and most answers are install the headers and suchm which I think I have done.

I installed a source package and a headers package using "installpkg"

I started using the instructions here, because I want to install unRAID, (slackware based) on a full distro. Here are the instructions. I need to use the 2.5.24.4 kernel.

Thanks for the help!

Here is my /usr/src and and /user/src/linux

Code:
root@brainNAS:/usr/src# ls -al
total 61621
drwxr-xr-x  4 root root      248 Jun 13 14:13 ./
drwxr-xr-x 17 root root      528 Mar 26 08:09 ../
-rw-r--r--  1 root root  2337790 Mar 26 08:09 kernel-headers-2.6.24.4_smp-x86-1.tgz
-rw-r--r--  1 root root 60696230 Apr 30 13:00 kernel-source-2.6.24.4_unraid-noarch-1.tgz
lrwxrwxrwx  1 root root       14 Jun 13 14:13 linux -> linux-2.6.24.4/
drwxr-xr-x 20 root root      920 Jun 13 14:13 linux-2.6.24.4/
drwxr-xr-x  7 root root      168 Oct 28  2003 rpm/
Code:
root@brainNAS:/usr/src/linux# ls -al
total 949
drwxr-xr-x 20 root root    920 Jun 13 14:13 ./
drwxr-xr-x  4 root root    248 Jun 13 14:13 ../
-rw-r--r--  1 root root  29267 Apr 30 12:11 .config
-rw-r--r--  1 root root  29256 Apr 30 12:09 .config.old
-rw-r--r--  1 root root    628 Mar 24 11:49 .gitignore
-rw-r--r--  1 root root   3657 Mar 24 11:49 .mailmap
-rw-r--r--  1 root root  18693 Mar 24 11:49 COPYING
-rw-r--r--  1 root root  92230 Mar 24 11:49 CREDITS
drwxr-xr-x 70 root root   6744 Mar 24 11:49 Documentation/
-rw-r--r--  1 root root   1596 Mar 24 11:49 Kbuild
-rw-r--r--  1 root root  93957 Mar 24 11:49 MAINTAINERS
-rw-r--r--  1 root root  53162 Mar 24 11:49 Makefile
-rw-r--r--  1 root root 429166 Mar 26 08:07 Module.symvers
-rw-r--r--  1 root root  16930 Mar 24 11:49 README
-rw-r--r--  1 root root   3119 Mar 24 11:49 REPORTING-BUGS
drwxr-xr-x 27 root root    688 Mar 26 08:07 arch/
drwxr-xr-x  2 root root    496 Mar 26 08:09 block/
-rw-r--r--  1 root root  29267 Apr 30 11:42 config-unraid
-rw-r--r--  1 root root  29477 Apr 30 12:11 config-unraid-smp
-rw-r--r--  1 root root  82725 Apr 30 12:09 config.bak
drwxr-xr-x  3 root root   1560 Mar 26 08:09 crypto/
drwxr-xr-x 76 root root   1928 Mar 26 08:09 drivers/
drwxr-xr-x 62 root root   3624 Mar 26 08:09 fs/
drwxr-xr-x 43 root root   1168 Jun 13 14:13 include/
drwxr-xr-x  2 root root    416 Mar 26 08:09 init/
drwxr-xr-x  2 root root    336 Mar 26 08:09 ipc/
drwxr-xr-x  5 root root   2896 Mar 26 08:09 kernel/
drwxr-xr-x  6 root root   2952 Mar 26 08:09 lib/
drwxr-xr-x  2 root root   1600 Mar 26 08:09 mm/
drwxr-xr-x 42 root root   1224 Mar 26 08:09 net/
drwxr-xr-x  3 root root    120 Mar 24 11:49 samples/
drwxr-xr-x  9 root root   1824 Mar 26 08:09 scripts/
drwxr-xr-x  4 root root    320 Mar 26 08:09 security/
drwxr-xr-x 20 root root    648 Mar 26 08:09 sound/
drwxr-xr-x  2 root root    192 Mar 26 08:09 usr/
And here is the error.

Code:
root@brainNAS:/usr/src/linux# make clean
root@brainNAS:/usr/src/linux# make menuconfig
  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-slackware-linux/4.2.3/include/syslimits.h:7,
                 from /usr/lib/gcc/i486-slackware-linux/4.2.3/include/limits.h:11,
                 from scripts/basic/fixdep.c:115:
/usr/lib/gcc/i486-slackware-linux/4.2.3/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@brainNAS:/usr/src/linux#
 
Old 06-13-2008, 09:23 PM   #2
brain:proxy
LQ Newbie
 
Registered: Jun 2008
Posts: 7

Original Poster
Rep: Reputation: 0
So where is this file?

Code:
sys/types.h: No such file or directory
This should be in /usr/include/sys/? Or /usr/src/linux/include/sys?

I have installed the kernel-header package, but these files, in that location, do not exist, even when I look at the package contents.
 
Old 06-13-2008, 10:03 PM   #3
C-Sniper
Member
 
Registered: Dec 2006
Distribution: Slackware
Posts: 507

Rep: Reputation: 33
have you tried reinstalling the kernel headers from the disc? they should be in the standard .tgz format so it shouldn't be too hard to reinstall them.
 
Old 06-13-2008, 10:14 PM   #4
brain:proxy
LQ Newbie
 
Registered: Jun 2008
Posts: 7

Original Poster
Rep: Reputation: 0
Solved.

For posterity, here was the issue.

I was missing:

glibc
ncurses

I had the installer select the dev packages, so I am not sure why these wouldn't have been installed.

Any thoughts? Bad DVD?
 
Old 06-13-2008, 10:20 PM   #5
C-Sniper
Member
 
Registered: Dec 2006
Distribution: Slackware
Posts: 507

Rep: Reputation: 33
Possibly, i had a DVD once for 12.0 that didn't have everything on it (it would say it couldn't install the package) but they were never as serious as glibc. bad luck maybe?
 
Old 06-13-2008, 10:39 PM   #6
brain:proxy
LQ Newbie
 
Registered: Jun 2008
Posts: 7

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by C-Sniper View Post
Possibly, i had a DVD once for 12.0 that didn't have everything on it (it would say it couldn't install the package) but they were never as serious as glibc. bad luck maybe?
I installed like, 8 times. =) And the first time I installed, I was actually able to compile out of the gate.

Also, cfdisk worked every time!
 
Old 06-13-2008, 10:54 PM   #7
C-Sniper
Member
 
Registered: Dec 2006
Distribution: Slackware
Posts: 507

Rep: Reputation: 33
lol well then i have absolutely no clue. but glad to hear you solved it.
 
  


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
module compile failure micder Slackware 6 04-02-2008 10:59 PM
Compile Failure RHEL 4.0 U3 wnevis Linux - Software 1 03-14-2006 09:49 PM
module compile failure hqking Linux - General 1 09-02-2005 04:53 PM
module compile failure hqking Linux - Wireless Networking 8 08-19-2005 04:22 AM
smpeg compile failure Obi Perrin Linux - Software 3 08-24-2004 03:06 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 02:52 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