Compiling kernel for HDD install


Recommended Posts

Hi there.  I'm not a complete linux newb, but I've never compiled my own kernel.

 

I have an old VIA EPIA C3 ITX that I would like to experiment with.  I really want unRAID to work, but I'd also like a complete distro as well.

 

The generic kernel and the unRAID doesn't support the C3 CPU, so I need to recompile to add the needed drivers in.  I've installed slackware using the huge.s kernel and its running fine.

 

I am trying to use the instructions http://lime-technology.com/forum/index.php?topic=2073.0 or here http://www.thetechguide.com/howto/unraid-on-hard-drive.html

 

I've tried a combination of the 2.  I even got a kernel to compile at one point, but I was using the 2.6.24.5 source on accident.

 

So, here I am. 

 

  • I have a fresh slackware 12.1 install
  • I have source for 2.6.24.4
  • I also have the source for 2.6.24.5
  • I have unraid downloaded and the .config file and the MD drivers in the correct areas.

 

Here are the items I need compiled

  • Support for C3 (Cyrix III) CPU
  • VIA RHINE NIC
  • SIL3114 (silicon image) SATA controller
  • VIA IDE drivers
  • VIA CLE266 video
  • EXT3


  •  
    I am happy to do this myself, I would prefer it.  But when I go to 'make menuconfig' I get this (using 2.6.24.4 source):
     

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#

 

Thanks for the help!

 

 

 

 

Link to comment

Most information I've found indicated that I don't have the source or the headers installed.

 

I have downloaded the 2.6.24.4 source and placed it in the /usr/src directory, symlink to linux, etc.

 

The modules I downloaded and installed with the installpkg command.

 

I am at a loss.

 

I can provide remote access if someone wants to take a look =)

Link to comment

I'll do a 'ps' first thing int he morning.  I've done a reinstall just to start fresh so I only have the 2.6.24.5 source there now.

 

The 2.6.24.5 source was installed as a package during the slack install.

 

The 2.6.24.4 source I downloaded from kernel.org and expanded into the /usr/src/ directory - I couldn't find a package for 2.6.24.4 to "installl" per se.

 

Slackware is completely new to me, as I have been sheltered in my time with debian and apt =)

Link to comment

 

The 2.6.24.4 source I downloaded from kernel.org and expanded into the /usr/src/ directory - I couldn't find a package for 2.6.24.4 to "installl" per se.

 

 

Re-read my how-to that's on my site.  This line will download the appropriate kernel source:

 

wget http://downloads.thetechguide.com/unraid/kernel-source-2.6.24.4_unraid-noarch-1.tgz

 

Follow the section that walks you through compiling your own kernel.  It doesn't walk you through editing the .config file, but you can find other how-tos that will help with that if need be.

Link to comment

Hello again.

 

Josetann, I followed your howto from the beginning, except for the initial install, which wasn't that different from yours (I had the *.5 source installed).

 

Again, sadly, "make menuconfig" gave the same error.

 

If it helps I can reinstall again.

 

here is an 'ls' from the /usr/src and /usr/src/linux directories.

 

root@brainNAS:/usr/src# ls -al
total 66626
drwxr-xr-x  6 root root      544 Jun 13 13:13 ./
drwxr-xr-x 16 root root      496 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  2336946 Apr 30 11:55 kernel-headers-2.6.24.5-x86-2.tgz
-rw-r--r--  1 root root   754833 Apr 30 18:01 kernel-modules-2.6.24.4_unRAID-i486-1.tgz
-rw-r--r--  1 root root 60696230 Apr 30 13:00 kernel-source-2.6.24.4_unraid-noarch-1.tgz
-rw-r--r--  1 root root  1775522 Apr 30 17:59 kernel-unRAID-2.6.24.4-i486-1.tgz
lrwxrwxrwx  1 root root       14 Jun 13 13:13 linux -> linux-2.6.24.4/
drwxr-xr-x 20 root root      920 Jun 13 13:14 linux-2.6.24.4/
-rw-r--r--  1 root root   244148 Apr  9 13:46 linux-2.6.24.4.tar.gz
drwxr-xr-x 20 root root      832 Jun 12 17:10 linux-2.6.24.5/
drwxr-xr-x 20 root root      832 Jun 12 17:06 linux-2.6.24.5-unraid-special/
drwxr-xr-x  7 root root      168 Oct 28  2003 rpm/

 

root@brainNAS:/usr/src/linux# ls -al
total 950
drwxr-xr-x 20 root root    920 Jun 13 13:14 ./
drwxr-xr-x  6 root root    544 Jun 13 13: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 13: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/

 

 

Link to comment

So, for the sake of simplicity, I reran the install instructions exactly as I saw here: http://www.thetechguide.com/howto/unraid-on-hard-drive.html

 

I have a question about this line:

 

Now we've copied over the unRAID drivers and the .config file we need to compile the kernel.

 

Have we?  I mean, the .config is in the directory, but I'm not sure about the drivers.

 

Regardless, I still can't compile.  Very frustrating. =(

 

I am sure there is some assumption that I am missing here, but I am not seeing it.  What is frustrating is that at ONE time, I got it to compile once when I started this project on Wednesday.  Not sure what the issue is.

 

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/

 

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/

 

Thanks for the help!

 

Link to comment

So, this line interested me:

 

scripts/basic/fixdep.c:107:23: error: sys/types.h: No such file or directory

 

From google, that should be in the includes directory which I guess should have been installed.

 

However, there is no /usr/includes/sys/ directory anywhere.

 

Nor one in /usr/src/linux/includes.

 

I opened up the kernel-header file and there isn't one in there, either.

 

Quite confused now.

 

OK.... I don't recognize that source.... you should get it from kernel.org.

 

Clean out /usr/src ... delete all of it....

 

cd to /usr/src  and get this source and untar it:

 

  http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.24.4.tar.gz

 

symlink linux to linux-2.6.24.4

 

cd linux

 

make clean

make menuconfig.

 

 

Will do.

Link to comment

B:P,

How about trying the instructions below.  They are a subset of the instructions from josetann's site as it was on 4/9.  This isn't the full set of instructions, so it won't give you a full unRAID setup, but hopefully you'll be able to compile the kernel which will be a start.  The older instructions require the user to do more of the work, but starting from closer to scratch might be a starting point.

 

cd /usr/src
wget http://downloads.thetechguide.com/unraid/kernel-source-2.6.24.4_smp-noarch-1.tgz
wget http://downloads.thetechguide.com/unraid/kernel-headers-2.6.24.4_smp-x86-1.tgz
wget http://downloads.thetechguide.com/unraid/kernel-modules-2.6.24.4-i486-1.tgz
wget http://downloads.thetechguide.com/unraid/linux-2.6.24.4.tar.gz

 

Note, these file names are slightly different than what's referenced on the site now.  Hopefully, josetann has left them up there.  Actually, what might be even kinder to his bandwidth is to find the first three from an alternate Slackware package site.  The last one you should get from josetann's site as it is unRAID specific.

 

Next,

 

installpkg kernel-source*
installpkg kernel-headers*
installpkg kernel-modules*

tar xzf linux-2.6.24.4.tar.gz

cd /usr/src/linux
make clean
make menuconfig

 

After updating the .config file via make menuconfig, just follow the rest of the instructions for compiling the kernel and seeing if the system boots.

 

Link to comment

BubbaQ - I cleaned out the /usr/src and reinstalled, still the same, sadly

 

root@brainNAS:/usr/src/linux# cd ..
root@brainNAS:/usr/src# rm -R *
root@brainNAS:/usr/src# ls -alh
total 512
drwxr-xr-x  2 root root  48 Jun 13 18:51 ./
drwxr-xr-x 17 root root 528 Apr 30 11:55 ../
root@brainNAS:/usr/src# wget http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.24.4.tar.gz
--2008-06-13 18:52:02--  http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.24.4.tar.gz
Resolving www.kernel.org... 204.152.191.37, 204.152.191.5
Connecting to www.kernel.org|204.152.191.37|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 59085633 (56M) [application/x-gzip]
Saving to: `linux-2.6.24.4.tar.gz'

100%[=========================================================================>] 59,085,633   763K/s   in 64s

2008-06-13 18:53:07 (896 KB/s) - `linux-2.6.24.4.tar.gz' saved [59085633/59085633]

root@brainNAS:/usr/src# tar xzf linux-2.6.24.4.tar.gz
root@brainNAS:/usr/src# ln -s linux-2.6.24.4 linux
root@brainNAS:/usr/src# cd linux
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#

Link to comment

So, I looked at the install script for the headers.

 

( cd usr/include ; rm -rf asm )
( cd usr/include ; ln -sf asm-x86 asm )

 

Not much there.  How does "installpkg" know where to put things?

 

Its this a borked install?

 

The packaging system used by Slackware is pretty straightforward.  A package is a compressed file tree, and installpkg just puts the contents into the root file system according to the file tree.  Since symbolic links might not work as expected (not knowing what already exists in the file system), packages usually/often remove the symlinks and creates a script to recreate them.  That's why there might not be much in the install script and a lot of packages won't even have an install script (i.e., either if it didn't have symbolic links or if the creator just said leave them in the compressed files).

 

Link to comment

Holy crap that was it my friend =)

 

Where did you find that, I've been googling for days now =)

 

And I installed the dev packages, I wonder why this was omitted?

 

I then find out the ncurse libs were missing.

 

After I installed those, SUCCESS.

 

I find it odd that these weren't installed by default.  Makes me think my install DVD or HDD may be suspect.

 

I want to thank you all.  I hope that I can compile from here with issues I can resolve myself.

 

You guys have a big fan now!

Link to comment

See that is what I get for mixing HOWTOs =)

 

I want to thank you guys for your help so far.  I feel I'm really close =)

 

But I am stuck again. 

 

BubbaQ I followed your instructions as close as I could. I have what appears to be a bootable kernel. 

 

The difference is, that I wasn't able to boot from the USB (unRAID kernel doesn't like C3) and configure the system prior to using the kernel I just made.  So I just mounted it and hope for the best.

 

My problem now, is that emhttp doesn't start automatically. If I manually start it, I get a segmentation fault.  Here is my /var/log/messages from the event:

 

Jun 14 13:10:49 brainNAS emhttp: unRAID System Management Utility version 4.3
Jun 14 13:10:49 brainNAS emhttp: Copyright (C) 2005-2008, Lime Technology, LLC
Jun 14 13:10:49 brainNAS emhttp: Unregistered
Jun 14 13:10:49 brainNAS emhttp: shcmd (1): mkdir -m 700 /boot/config/shares
Jun 14 13:10:49 brainNAS emhttp: Device inventory:
Jun 14 13:10:49 brainNAS emhttp: pci-0000:00:11.1-ide-0:0 (hda) ata-WDC_WD1200JB-00CRA1_WD-WMA8C2505480
Jun 14 13:10:49 brainNAS emhttp: pci-0000:00:14.0-scsi-0:0:0:0 (sda) ata-ST3250823AS_3ND1AQ77
Jun 14 13:10:49 brainNAS emhttp: pci-0000:00:14.0-scsi-1:0:0:0 (sdb) ata-ST3250823AS_4ND1NXPS
Jun 14 13:10:49 brainNAS emhttp: shcmd (2): rmmod md-mod >>/var/log/go 2>&1
Jun 14 13:10:49 brainNAS emhttp: shcmd (3): modprobe md-mod super=/boot/config/super.dat slots=0,0,0,0,0
,0 >>/var/log/go 2>&1
Jun 14 13:10:49 brainNAS emhttp: mdState not found
Jun 14 13:10:49 brainNAS kernel: emhttp[1121]: segfault at 00000000 eip b7cf0c21 esp bf91d5cc error 4
Jun 14 13:11:19 brainNAS sshd[1143]: Accepted password for root from 10.10.10.11 port 54229 ssh2
Jun 14 13:12:09 brainNAS emhttp: unRAID System Management Utility version 4.3
Jun 14 13:12:09 brainNAS emhttp: Copyright (C) 2005-2008, Lime Technology, LLC
Jun 14 13:12:09 brainNAS emhttp: Unregistered
Jun 14 13:12:09 brainNAS emhttp: Device inventory:
Jun 14 13:12:09 brainNAS emhttp: pci-0000:00:11.1-ide-0:0 (hda) ata-WDC_WD1200JB-00CRA1_WD-WMA8C2505480
Jun 14 13:12:09 brainNAS emhttp: pci-0000:00:14.0-scsi-0:0:0:0 (sda) ata-ST3250823AS_3ND1AQ77
Jun 14 13:12:09 brainNAS emhttp: pci-0000:00:14.0-scsi-1:0:0:0 (sdb) ata-ST3250823AS_4ND1NXPS
Jun 14 13:12:09 brainNAS emhttp: shcmd (1): rmmod md-mod >>/var/log/go 2>&1
Jun 14 13:12:09 brainNAS emhttp: shcmd (2): modprobe md-mod super=/boot/config/super.dat slots=0,0,0,0,0
,0 >>/var/log/go 2>&1
[b]Jun 14 13:12:09 brainNAS emhttp: mdState not found[/b]
Jun 14 13:12:09 brainNAS kernel: emhttp[1160]: segfault at 00000000 eip b7cbac21 esp bfb5696c error 4
/var/log/messages lines 1579-1622/1622 (END)

 

This guys seems important.  I made sure the unRAID drivers were included.

 

Jun 14 13:12:09 brainNAS emhttp: mdState not found

 

Here is my directory setup:

 

drwxr-xr-x  2 root root    4096 2008-06-14 13:26 ./
drwxr-xr-x 21 root root    4096 2008-06-14 00:54 ../
lrwxrwxrwx  1 root root      37 2008-06-12 17:21 README.initrd -> /usr/doc/mkinitrd-1.3.2/README.initrd
-rw-r--r--  1 root root  797846 2008-06-14 12:33 System.map
-rw-r--r--  1 root root 1282875 2008-04-30 12:14 System.map-huge-2.6.24.5
-rw-r--r--  1 root root  797846 2008-06-14 12:15 System.old
-rw-r--r--  1 root root     512 2008-06-12 17:32 boot.0300
-rw-r--r--  1 root root     168 2008-06-12 17:32 boot_message.txt
lrwxrwxrwx  1 root root      17 2008-06-14 13:26 config -> /mnt/uraid/config/
-rw-r--r--  1 root root   82208 2008-04-30 12:10 config-huge-2.6.24.5
-rw-r--r--  1 root root    5040 2008-04-01 00:39 diag1.img
-rw-------  1 root root   91136 2008-06-14 13:09 map
-rw-r--r--  1 root root   15754 2008-02-21 16:08 slack.bmp
-rw-r--r--  1 root root 1730136 2008-06-14 12:33 vmlinuz
-rw-r--r--  1 root root 4205208 2008-04-30 12:14 vmlinuz-huge-2.6.24.5
-rw-r--r--  1 root root 1730136 2008-06-14 12:15 vmlinuz.old
root@brainNAS:/mnt/uraid/config# cd ..
root@brainNAS:/mnt/uraid# ls -al
total 29640
drwxr-xr-x  3 root root     4096 1969-12-31 16:00 ./
drwxr-xr-x 11 root root     4096 2008-06-14 13:03 ../
-rwxr-xr-x  1 root root  1569272 2008-04-04 22:08 bzimage*
-rwxr-xr-x  1 root root 28595716 2008-04-04 22:09 bzroot*
drwxr-xr-x  3 root root     4096 2008-06-14 13:10 config/
-r-xr-xr-x  1 root root    10835 2008-06-04 19:48 ldlinux.sys*
-rwxr-xr-x  1 root root     5124 2008-03-18 12:35 license.txt*
-rwxr-xr-x  1 root root    99256 2008-03-18 12:35 memtest*
-rwxr-xr-x  1 root root    33404 2008-03-18 12:35 menu.c32*
-rwxr-xr-x  1 root root     4053 2008-04-04 22:28 readme.txt*
-rwxr-xr-x  1 root root      196 2008-03-18 12:35 syslinux.cfg*
root@brainNAS:/mnt/uraid# cd config/
root@brainNAS:/mnt/uraid/config# ls -al
total 32
drwxr-xr-x 3 root root 4096 2008-06-14 13:10 ./
drwxr-xr-x 3 root root 4096 1969-12-31 16:00 ../
-rwxr-xr-x 1 root root   39 2008-03-18 12:35 disk.cfg*
-rwxr-xr-x 1 root root   71 2008-03-18 12:35 go*
-rwxr-xr-x 1 root root  125 2008-03-18 12:35 ident.cfg*
-rwxr-xr-x 1 root root  109 2008-06-04 20:25 network.cfg*
-rwxr-xr-x 1 root root   57 2008-03-18 12:35 share.cfg*
drwxr-xr-x 2 root root 4096 2008-06-14 13:10 shares/

 

Thanks for the help!

 

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.