LinuxQuestions.org
Visit Jeremy's Blog.
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 02-09-2012, 03:59 AM   #1
Linux Duke
LQ Newbie
 
Registered: Jan 2009
Location: South Africa
Distribution: Red hat
Posts: 17

Rep: Reputation: 0
Question Error when running make config as I'm busy compiling my kernel on Slackware 12.1.0


Hi there,

I have a slackware server Slackware 12.1.0 running under my vmware vsphere infrastructure.
The kernel version is uname -r >> 2.6.24.5-smp and uname -a >> 2.6.24.5-smp #2 SMP Wed Apr 30 13:41:38 CDT 2008 i686 Intel(R) Xeon(R) CPU L5640 @ 2.27GHz GenuineIntel GNU/Linux.

I have allocated 32 Gig's of memory to this server under vmware vcenter but the server only has 3 Gig's allocated to it when I view it with the top command.

Below is the top command output:

top - 11:49:49 up 29 days, 22:06, 3 users, load average: 0.00, 0.00, 0.00
Tasks: 174 total, 1 running, 173 sleeping, 0 stopped, 0 zombie
Cpu(s): 0.0%us, 0.0%sy, 0.0%ni,100.0%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%s
Mem: 3102632k total, 2975352k used, 127280k free, 0k buffers
Swap: 31254448k total, 2528k used, 31251920k free, 2854164k cached

PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
7170 root 20 0 2396 2316 116 S 0 0.1 29:14.16 requester
1 root 20 0 772 324 284 S 0 0.0 0:38.62 init
2 root 15 -5 0 0 0 S 0 0.0 0:00.02 kthreadd
3 root RT -5 0 0 0 S 0 0.0 0:00.16 migration/0
4 root 15 -5 0 0 0 S 0 0.0 1:47.81 ksoftirqd/0
5 root RT -5 0 0 0 S 0 0.0 0:00.16 migration/1

If you see the output the server is only using 3 Gig's, I decided to recompile the kernel and so that it can use all the available memory that has been allocated to it.

I did the following:

cd /usr/src/linux
cp .conf .conf.org
make menuconfig

Then when I execute the make menuconfig command, I get the following error:

root@server1:/usr/src/linux# make menuconfig
HOSTCC scripts/basic/fixdep
HOSTCC scripts/basic/docproc
HOSTCC scripts/kconfig/conf.o
HOSTCC scripts/kconfig/kxgettext.o
HOSTCC scripts/kconfig/lxdialog/checklist.o
HOSTCC scripts/kconfig/lxdialog/inputbox.o
HOSTCC scripts/kconfig/lxdialog/menubox.o
HOSTCC scripts/kconfig/lxdialog/textbox.o
HOSTCC scripts/kconfig/lxdialog/util.o
HOSTCC scripts/kconfig/lxdialog/yesno.o
HOSTCC scripts/kconfig/mconf.o
SHIPPED scripts/kconfig/zconf.tab.c
SHIPPED scripts/kconfig/lex.zconf.c
SHIPPED scripts/kconfig/zconf.hash.c
HOSTCC scripts/kconfig/zconf.tab.o
In file included from scripts/kconfig/symbol.c:9,
from scripts/kconfig/zconf.tab.c:2477:
/usr/include/regex.h:145: error: expected '=', ',', ';', 'asm' or '__attribute__' before 're_void'
/usr/include/regex.h:315: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_'
/usr/include/regex.h:324: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_'
/usr/include/regex.h:326: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'TclReFree'
/usr/include/regex.h:327: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_'
In file included from scripts/kconfig/zconf.tab.c:2477:
scripts/kconfig/symbol.c: In function 'sym_re_search':
scripts/kconfig/symbol.c:730: warning: implicit declaration of function 'regcomp'
scripts/kconfig/symbol.c:736: warning: implicit declaration of function 'regexec'
scripts/kconfig/symbol.c:751: warning: implicit declaration of function 'TclReFree'
make[1]: *** [scripts/kconfig/zconf.tab.o] Error 1
make: *** [menuconfig] Error 2

Has any one ever came accross this error on
Slackware or can any guru on Slackware kindly assist me in resolving this issue or to get my system to see all the memory allocated by providing me the steps.

Regards
Linux Duke
 
Old 02-09-2012, 04:08 AM   #2
Cedrik
Senior Member
 
Registered: Jul 2004
Distribution: Slackware
Posts: 2,140

Rep: Reputation: 244Reputation: 244Reputation: 244
Have you installed glibc package (not glibc-solibs) and tcl package ?

Last edited by Cedrik; 02-09-2012 at 04:09 AM.
 
1 members found this post helpful.
Old 02-09-2012, 04:24 AM   #3
Linux Duke
LQ Newbie
 
Registered: Jan 2009
Location: South Africa
Distribution: Red hat
Posts: 17

Original Poster
Rep: Reputation: 0
Yes I have installed the two packages.

This is what is installed that has glibc:

-rw-r--r-- 1 root root 1396 2011-12-08 14:41 glib-1.2.10-i486-3
-rw-r--r-- 1 root root 21316 2011-12-08 14:41 glib2-2.14.6-i486-4
-rw-r--r-- 1 root root 304125 2011-12-08 14:42 glibc-2.7-i486-10
-rw-r--r-- 1 root root 218430 2011-12-08 14:42 glibc-i18n-2.7-noarch-10
-rw-r--r-- 1 root root 1022 2011-12-08 14:42 glibc-profile-2.7-i486-10
-rw-r--r-- 1 root root 7706 2011-12-08 14:38 glibc-solibs-2.7-i486-10
-rw-r--r-- 1 root root 67429 2011-12-08 14:38 glibc-zoneinfo-2.7-noarch-10

This is what is installed for the tcl stuff:

drwxr-xr-x 10 15399 19249 4096 2008-02-06 17:38 tcl8.4.18/
-rw-r--r-- 1 root root 2919787 2012-01-04 10:32 tcl8.4.18-src.tar.gz
drwxr-xr-x 8 cms 1000 4096 2012-01-05 11:14 tcllib-1.11.1/
-rw-r--r-- 1 root root 4014817 2012-01-05 11:13 tcllib-1.11.1.tar.gz

Thanks
 
Old 02-09-2012, 04:35 AM   #4
Cedrik
Senior Member
 
Registered: Jul 2004
Distribution: Slackware
Posts: 2,140

Rep: Reputation: 244Reputation: 244Reputation: 244
Where did you get the tcl8.4.18 package, the package name seems not correct
(should have been tcl-8.4.18)
Also it seems this package has overwritten the glibc /usr/include/regex.h file somewhat :/

I would download and install tcl package:
http://slackware.mirrors.tds.net/pub...slackware/tcl/

And also reinstall glibc:
http://slackware.mirrors.tds.net/pub...1/slackware/l/

Last edited by Cedrik; 02-09-2012 at 04:40 AM.
 
Old 02-09-2012, 04:50 AM   #5
Linux Duke
LQ Newbie
 
Registered: Jan 2009
Location: South Africa
Distribution: Red hat
Posts: 17

Original Poster
Rep: Reputation: 0
Hi Cedrik,

I will download and install the tcl and glibc then provide feed back once I'm finished.

Regards
 
Old 02-09-2012, 05:01 AM   #6
Linux Duke
LQ Newbie
 
Registered: Jan 2009
Location: South Africa
Distribution: Red hat
Posts: 17

Original Poster
Rep: Reputation: 0
Cedrik just to be sure as my back ground is Redhat not Slackware.
These are the two packages tcl-8.4.18-i486-1.tgz and glibc-2.7-i486-10.tgz that I need to install.
Also after installing them should I try to run the make menuconfig command to see if it's working.

Regards
Gugu

---------- Post added 02-09-12 at 02:02 PM ----------

Cedrik just to be sure as my back ground is Redhat not Slackware.
These are the two packages tcl-8.4.18-i486-1.tgz and glibc-2.7-i486-10.tgz that I need to install.
Also after installing them should I try to run the make menuconfig command to see if it's working.

Regards
Gugu
 
Old 02-09-2012, 06:22 AM   #7
Linux Duke
LQ Newbie
 
Registered: Jan 2009
Location: South Africa
Distribution: Red hat
Posts: 17

Original Poster
Rep: Reputation: 0
Hi Cedrik,

I have installed the packages on my servre output below:

root@server1:/tmp/install# cat /root/packagelist.txt | grep tcl-8.4.18-i486
tcl-8.4.18-i486-1
root@server1:/tmp/install# cat /root/packagelist.txt | grep glibc-2.7-i486
glibc-2.7-i486-10
root@vrbkcms3:/tmp/install#

Should I now test is menuconfig works?

Regards
Duke
 
Old 02-09-2012, 06:24 AM   #8
Cedrik
Senior Member
 
Registered: Jul 2004
Distribution: Slackware
Posts: 2,140

Rep: Reputation: 244Reputation: 244Reputation: 244
Yes, you can test menuconfig

You installed packages with installpkg command ?
 
Old 02-09-2012, 06:41 AM   #9
Linux Duke
LQ Newbie
 
Registered: Jan 2009
Location: South Africa
Distribution: Red hat
Posts: 17

Original Poster
Rep: Reputation: 0
I tested menuconfig after the install.

Thanks a lot Cedri, its working 100% now.

Regards
Linux Duke
 
Old 02-09-2012, 08:29 AM   #10
JimBrewster
Member
 
Registered: Feb 2010
Location: usa:/dev/random
Distribution: Slackware-15.0; -current
Posts: 245

Rep: Reputation: 60
Bit of an aside, but why do you allocate 32G of RAM to a 32 bit OS? It can only use 4(or 3?) of those.
 
Old 02-09-2012, 08:36 AM   #11
Linux Duke
LQ Newbie
 
Registered: Jan 2009
Location: South Africa
Distribution: Red hat
Posts: 17

Original Poster
Rep: Reputation: 0
Developers want to see 32Gig's and thier code is old and only works on 32bit not 64bit.
 
Old 02-09-2012, 08:49 AM   #12
Cedrik
Senior Member
 
Registered: Jul 2004
Distribution: Slackware
Posts: 2,140

Rep: Reputation: 244Reputation: 244Reputation: 244
You mean 32GB of virtual memory (swap), no ? If yes, no need to recompile, swap size was already 32GB (see top output in first post)
 
  


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
.config error while Compiling the kernel 2.6.38 suneet Linux - Embedded & Single-board computer 3 07-20-2011 07:39 PM
Error when compiling kernel linux-2.6.22 : make: ***[_modinst_post] Error 137 ngoclan.it Linux - General 1 12-11-2007 06:54 AM
compiling kernel, killed make, changed .config mattme Linux - General 3 04-17-2006 05:28 AM
Problems compiling a Kernel (make config/menuconfig) Janusz11 Slackware 5 08-15-2005 04:40 PM
compiling kernel, initrd can't make image, 'loop devices busy' infamous41md Linux - Newbie 2 06-02-2004 11:59 AM

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

All times are GMT -5. The time now is 12:38 PM.

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