LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 08-13-2005, 06:32 AM   #1
Janusz11
Member
 
Registered: Aug 2005
Distribution: Zenwalk
Posts: 42

Rep: Reputation: 15
Problems compiling a Kernel (make config/menuconfig)


Hello!

I just installed Slackware 10.1 and now try to compile me-self a new kernel. But I didn't get that far. When I tried to configure the Kernel (2.6.12.4) using make config or make menuconfig I got an error message telling me
Code:
-bash: make: command not found
Well, I figured that make might not be installed then (which I find pretty strange btw.). Since pkgtool crashes when I try to tell it to use my cdrom I installed make with
Code:
installpkg /mnt/cdrom/slackware/d/*make*
It gave out a couple of error message, something like no tar or bz ending or so, but finished successfully in the end.
After that, I tried make menuconfig again. This time I was told that the gcc command could not be found. So I installed gcc the same way as make. I also got the same error messages here.

Now, when I try make menuconfig I get the following error message and now I'm completely lost! So I hope someone here can tell me what I did wrong and what this error message means:
Code:
HOSTCC  scripts/basic/fixdep
In file included from /usr/include/bits/posix1_lim.h:153,
                 from /usr/include/limits.h:144,
                 from /usr/lib/gcc-lib/i486-slackware-linux/3.3.4/include/limits.h:122,
                 from /usr/lib/gcc-lib/i486-slackware-linux/3.3.4/include/syslimits.h:7,
                 from /usr/lib/gcc-lib/i486-slackware-linux/3.3.4/include/limits.h:11,
                 from scripts/basic/fixdep.c:113:
/usr/include/bits/local_lim.h:36:26: linux/limits.h: No such file or directory
In file included from /usr/include/sys/socket.h:35,
                 from /usr/include/netinet/in.h:24,
                 from /usr/include/arpa/inet.h:23,
                 from scripts/basic/fixdep.c:115:
/usr/include/bits/socket.h:304:24: asm/socket.h: No such file or directory
scripts/basic/fixdep.c: In function `use_config':
scripts/basic/fixdep.c:201: error: `PATH_MAX' undeclared (first use in this function)
scripts/basic/fixdep.c:201: error: (Each undeclared identifier is reported only once
scripts/basic/fixdep.c:201: error: for each function it appears in.)
scripts/basic/fixdep.c:201: warning: unused variable `s'
scripts/basic/fixdep.c: In function `parse_dep_file':
scripts/basic/fixdep.c:297: error: `PATH_MAX' undeclared (first use in this function)
scripts/basic/fixdep.c:297: warning: unused variable `s'
make[1]: *** [scripts/basic/fixdep] Error 1
make: *** [scripts_basic] Error 2
Btw., is there another way to install something like make?

Well, any help appreciated. Oh, and since I'm pretty much a to Linux it would be nice if you could explain it the easy way.

Thanks in advance!
 
Old 08-13-2005, 07:11 AM   #2
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: McCalla, AL, USA
Distribution: Arch, Gentoo
Posts: 6,939

Rep: Reputation: 129Reputation: 129
Welcome to LQ!

It appears you've made some errors when you installed Slackware.

If you did a full install of all the packages you wouldn't have those
errors, unless your CDs were corrupted. So, how did you install Slack
in the first place?

To compile that 2.6.12.4 kernel you should read Linus Torvald's
instructions in ./linux-2.6.12.4/README ... thoroughly ... before you
start. You can use Jesper Juhl's kernel build guide but I don't symlink
the System.map file as he states at the bottom of that guide. You
also might find "make xconfig" easier to follow than "menuconfig".

To install a Slackware package you issue:
# installpkg packagename
where the packagename ends with .tgz

The command you issued:
"installpkg /mnt/cdrom/slackware/d/*make*"
would try to install 11 files, only 3 of which are Slackpacks, which
is why you saw those error messages after issuing that command
and also for gcc.

Here is the listing of that directory:
Code:
mingdao@james:~$ ls -alh /mnt/cdrom/slackware/d/*make*
-rw-r--r--  1 root root 466K 2004-12-23 09:53 /mnt/cdrw/slackware/d/automake-1.9.4-noarch-1.tgz
-rw-r--r--  1 root root  189 2004-12-23 09:53 /mnt/cdrw/slackware/d/automake-1.9.4-noarch-1.tgz.asc
-rw-r--r--  1 root root  627 2004-12-23 09:53 /mnt/cdrw/slackware/d/automake-1.9.4-noarch-1.txt
-rw-r--r--  1 root root 343K 2002-10-14 11:30 /mnt/cdrw/slackware/d/make-3.80-i386-1.tgz
-rw-r--r--  1 root root  189 2002-10-14 11:30 /mnt/cdrw/slackware/d/make-3.80-i386-1.tgz.asc
-rw-r--r--  1 root root  468 2002-10-14 11:30 /mnt/cdrw/slackware/d/make-3.80-i386-1.txt
-rw-r--r--  1 root root 3.3K 2005-01-30 00:03 /mnt/cdrw/slackware/d/maketag
-rw-r--r--  1 root root 3.3K 2005-01-30 00:03 /mnt/cdrw/slackware/d/maketag.ez
-rw-r--r--  1 root root 156K 2002-02-24 08:33 /mnt/cdrw/slackware/d/pmake-2.1.35-i386-2.tgz
-rw-r--r--  1 root root  189 2002-02-24 08:33 /mnt/cdrw/slackware/d/pmake-2.1.35-i386-2.tgz.asc
-rw-r--r--  1 root root  359 2002-02-24 08:33 /mnt/cdrw/slackware/d/pmake-2.1.35-i386-2.txt
So give us some background as to how you got to where you are,
and if you've made some errors on the install, if might be a lot easier
and quicker to have us help you backup your ~/ partition and any of
your config files and reinstall it properly.

A good couple of resources for your Slackware indoctrination:

Slackware Linux Basics
The Revised Slackware Book Project
Slackware Tips and Tricks

Disclaimer: While those few sites have some good information,
I explicitly state that you should not build your kernel in /usr/src/ but
rather somewhere under your /home directory where you have normal
user rights. I use /home/<username>/build/ on all 5 of our Slack boxen.
 
Old 08-13-2005, 07:42 AM   #3
Janusz11
Member
 
Registered: Aug 2005
Distribution: Zenwalk
Posts: 42

Original Poster
Rep: Reputation: 15
Only one word: wow!

Thanks for your great reply, Chinaman!

Well, I installed Slackware the foolproof way. When I was asked which general categories of software I'd like to install on my system, I installed everything except Games, KDE, GTK (GNOME) and the Program Development stuff. I then selected full install. In the end I only installed the first Slackware 10.1 CD.
Maybe that wasn't enough? Or is the Program Development stuff essential for such programs like make?

Alright, I'm not going to ask too much questions now. I better go reading some more first.

Oh btw., if I'm going to reinstall Slackware there's no need for a backup. I just did a fresh Slackware install and installing it again is a piece of cake.

Thanks again!

Last edited by Janusz11; 08-13-2005 at 07:44 AM.
 
Old 08-13-2005, 10:01 AM   #4
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: McCalla, AL, USA
Distribution: Arch, Gentoo
Posts: 6,939

Rep: Reputation: 129Reputation: 129
You really need the packages in D -- Program development tools.
Compilers, debuggers, interpreters, and man pages. It's all there.
Without those, you can't recompile a kernel, or new software --
you're kinda crippled.

When I install with plenty of hard drive space, I choose all except
for E - GNU Emacs (because I prefer VI), and Y - Games (because
I don't play any games, and don't care for those fortunes). And
sometimes I don't install KDEI because the only language I use
besides English is Chinese, and I just install it later rather than
installing the other 42 or so languages I don't use.

I install the Gnome and KDE selections, even though I run Fluxbox,
because you miss some other apps if you don't. For instance, one
time when I omitted GNOME - The GNOME desktop environment, I
later found out I didn't have mc (midnight commander) I believe,
and some other apps I use.

So, if you've nothing to backup, and plenty of hard drive space
(about 3GB total for all the packages), do a full install now and
then use "removepkg" later as you find out which packages you
really don't need, and check for dependencies.

And, if you can wait, Slackware-10.2 will be out very shortly ....
Or, you could download Slackware -current and create ISO images
of them and install it, which is just about what Slackware-10.2
will be in another week or so or less (just guessing). If you want
to do that, and have a fast connection (ADSL or better), I can
give you a script which will download Slackware -current via rsync,
then make the first 2 CD iso images that you can burn to CD.

Edit: Don't know how I left out this good Slackware reference.

Last edited by Bruce Hill; 08-13-2005 at 10:07 AM.
 
Old 08-15-2005, 04:36 PM   #5
Janusz11
Member
 
Registered: Aug 2005
Distribution: Zenwalk
Posts: 42

Original Poster
Rep: Reputation: 15
I made it!

I installed Slackware again, this time selecting the Program Development category, selected full install (again) and that did the trick! Now I have my shiny new Kernel 2.6.12.4 and I'm pretty happy with it.

Thanks again for your help.
 
Old 08-15-2005, 04:40 PM   #6
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: McCalla, AL, USA
Distribution: Arch, Gentoo
Posts: 6,939

Rep: Reputation: 129Reputation: 129
Spot on! You'll make a fine Slacker!

Now I must get back to building this new Slack box.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Help with make menuconfig for my kernel. Royle Debian 7 01-21-2007 10:05 PM
Compiling the Kernel - errors in make menuconfig ARCH=um donoh Ubuntu 2 04-11-2005 01:43 PM
Mapping the items in .config to the menu in make menuconfig alice95089 Linux - Software 1 03-12-2005 06:55 AM
no make menuconfig in kernel-2.6.6??? kaise_sose Linux - Newbie 4 06-01-2004 10:45 PM
kernel compiling and config problems c31c Linux - Newbie 6 04-27-2004 11:49 AM

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

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