LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices

Reply
 
LinkBack Search this Thread
Old 11-12-2006, 10:02 AM   #1
edgooch
LQ Newbie
 
Registered: Nov 2006
Posts: 3

Rep: Reputation: 0
kernel compile errors on SuSE 10 and VMWare


I am attempting to build a kernel with version "linux-2.6.16.13-4", and am
getting the errors shown below. My configuration is SuSE 10 running on a
Toshiba laptop (Satellite) as a VMWare 4.5 guest on XP host.

I have installed the kernel sources from the same DVD as I installed SuSE,
and even later downloaded the source RPM that matches my running kernel
version. I have tried various configurations (make cloneconfig, make
oldconfig, make xconfig, etc), but can't seem to complete the build without
errors. Seems headers or something is still missmatched. Or could it be an issue with
modules? I have successfully built kernels on other machines, but with this
VM environment, nothing but problems.

Here is the output from the point of errors. Thanks for any feedback.

************
CHK /usr/src/linux-2.6.16.13-4/include/linux/version.h
CHK include/linux/compile.h
CHK usr/initramfs_list
HOSTCC arch/i386/boot/tools/build
In file included from /usr/include/_G_config.h:44,
from /usr/include/libio.h:32,
from /usr/include/stdio.h:72,
from arch/i386/boot/tools/build.c:26:
/usr/include/gconv.h:72: error: expected declaration specifiers or ‘...’
before ‘size_t’
/usr/include/gconv.h:88: error: expected declaration specifiers or ‘...’
before ‘size_t’
/usr/include/gconv.h:97: error: expected declaration specifiers or ‘...’
before ‘size_t’
/usr/include/gconv.h:174: error: expected specifier-qualifier-list before
‘size_t’
In file included from /usr/include/stdio.h:72,
from arch/i386/boot/tools/build.c:26:
/usr/include/libio.h:328: error: expected specifier-qualifier-list before
‘size_t’
/usr/include/libio.h:360: error: expected declaration specifiers or ‘...’
before ‘size_t’
/usr/include/libio.h:369: error: expected declaration specifiers or ‘...’
before ‘size_t’
/usr/include/libio.h:485: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or
‘__attribute__’ before ‘_IO_sgetn’
In file included from arch/i386/boot/tools/build.c:26:
/usr/include/stdio.h:314: error: expected declaration specifiers or ‘...’
before ‘size_t’
/usr/include/stdio.h:321: error: expected declaration specifiers or ‘...’
before ‘size_t’
/usr/include/stdio.h:363: error: expected declaration specifiers or ‘...’
before ‘size_t’
/usr/include/stdio.h:365: error: format string argument not a string type
/usr/include/stdio.h:367: error: expected declaration specifiers or ‘...’
before ‘size_t’
/usr/include/stdio.h:616: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or
‘__attribute__’ before ‘fread’
/usr/include/stdio.h:622: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or
‘__attribute__’ before ‘fwrite’
/usr/include/stdio.h:644: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or
‘__attribute__’ before ‘fread_unlocked’
/usr/include/stdio.h:646: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or
‘__attribute__’ before ‘fwrite_unlocked’
In file included from arch/i386/boot/tools/build.c:28:
/usr/include/stdlib.h:140: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or
‘__attribute__’ before ‘__ctype_get_mb_cur_max’
In file included from /usr/include/sys/types.h:133,
from /usr/include/stdlib.h:438,
from arch/i386/boot/tools/build.c:28:
include/time.h:13: error: expected specifier-qualifier-list before ‘time_t’
include/time.h:19: error: expected specifier-qualifier-list before ‘time_t’
In file included from /usr/include/sys/select.h:46,
from /usr/include/sys/types.h:220,
from /usr/include/stdlib.h:438,
from arch/i386/boot/tools/build.c:28:
/usr/include/bits/time.h:70: error: redefinition of ‘struct timeval’
In file included from arch/i386/boot/tools/build.c:28:
/usr/include/stdlib.h:455: error: expected declaration specifiers or ‘...’
before ‘size_t’
/usr/include/stdlib.h:485: error: expected declaration specifiers or ‘...’
before ‘size_t’
/usr/include/stdlib.h:487: error: nonnull argument with out-of-range
operand number (argument 1, operand 4)
/usr/include/stdlib.h:589: error: expected ‘)’ before ‘__size’
/usr/include/stdlib.h:591: error: expected ‘)’ before ‘__nmemb’
/usr/include/stdlib.h:600: error: expected declaration specifiers or ‘...’
before ‘size_t’
In file included from /usr/include/stdlib.h:612,
from arch/i386/boot/tools/build.c:28:
/usr/include/alloca.h:33: error: expected ‘)’ before ‘__size’
In file included from arch/i386/boot/tools/build.c:28:
/usr/include/stdlib.h:617: error: expected ‘)’ before ‘__size’
/usr/include/stdlib.h:622: error: expected declaration specifiers or ‘...’
before ‘size_t’
/usr/include/stdlib.h:622: error: expected declaration specifiers or ‘...’
before ‘size_t’
/usr/include/stdlib.h:776: error: expected declaration specifiers or ‘...’
before ‘size_t’
/usr/include/stdlib.h:776: error: expected declaration specifiers or ‘...’
before ‘size_t’
/usr/include/stdlib.h:777: error: nonnull argument with out-of-range
operand number (argument 1, operand 5)
/usr/include/stdlib.h:781: error: expected declaration specifiers or ‘...’
before ‘size_t’
/usr/include/stdlib.h:781: error: expected declaration specifiers or ‘...’
before ‘size_t’
/usr/include/stdlib.h:782: error: nonnull argument with out-of-range
operand number (argument 1, operand 4)
/usr/include/stdlib.h:854: error: expected declaration specifiers or ‘...’
before ‘size_t’
/usr/include/stdlib.h:857: error: expected declaration specifiers or ‘...’
before ‘size_t’
/usr/include/stdlib.h:861: error: expected declaration specifiers or ‘...’
before ‘size_t’
/usr/include/stdlib.h:865: error: expected declaration specifiers or ‘...’
before ‘size_t’
/usr/include/stdlib.h:874: error: expected declaration specifiers or ‘...’
before ‘size_t’
/usr/include/stdlib.h:877: error: expected ‘)’ before ‘*’ token
/usr/include/stdlib.h:881: error: expected declaration specifiers or ‘...’
before ‘wchar_t’
/usr/include/stdlib.h:885: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or
‘__attribute__’ before ‘mbstowcs’
/usr/include/stdlib.h:888: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or
‘__attribute__’ before ‘wcstombs’
arch/i386/boot/tools/build.c: In function ‘file_open’:
arch/i386/boot/tools/build.c:62: warning: implicit declaration of function
‘open’
arch/i386/boot/tools/build.c: In function ‘main’:
arch/i386/boot/tools/build.c:79: warning: implicit declaration of function
‘strcmp’
arch/i386/boot/tools/build.c:112: warning: implicit declaration of function
‘read’
arch/i386/boot/tools/build.c:120: warning: implicit declaration of function
‘write’
arch/i386/boot/tools/build.c:122: warning: implicit declaration of function
‘close’
arch/i386/boot/tools/build.c:137: warning: implicit declaration of function
‘memset’
arch/i386/boot/tools/build.c:137: warning: incompatible implicit
declaration of built-in function ‘memset’
arch/i386/boot/tools/build.c:171: warning: implicit declaration of function
‘lseek’
make[1]: *** [arch/i386/boot/tools/build] Error 1
make: *** [bzImage] Error 2

************
 
Old 11-13-2006, 07:25 AM   #2
tizzef
Member
 
Registered: Jan 2005
Location: Nice, France
Distribution: Ubuntu,RHES, Mandriva, RHAS, AIX 4.3.3, 5.2 & 5.3, Debian,Solaris8/10
Posts: 117

Rep: Reputation: 20
Hi

I don't know how VM deal with the I/O as the "disk" is a file.

You may find usefull infos on :http://www.shocknetwork.com/forum/topic94.html

Cheers
 
Old 12-25-2006, 10:45 AM   #3
edgooch
LQ Newbie
 
Registered: Nov 2006
Posts: 3

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by tizzef
Hi

I don't know how VM deal with the I/O as the "disk" is a file.

You may find usefull infos on :http://www.shocknetwork.com/forum/topic94.html

Cheers
Thanks for the response...

This kernel compile problem seemed related to the sources installed from the DVD. I downloaded the RPM source file and then the kernel build completed without errors. Hmmmm...
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
kernel compile errors slinky2004 Linux - General 1 10-22-2005 05:16 PM
Kernel compile on Suse 8.1 professional errors out. puneetg123 Linux - Software 0 09-20-2004 07:41 AM
kernel compile errors... ash4stuff Linux - Software 15 01-01-2004 04:48 PM
Kernel compile errors! kierse Slackware 4 12-04-2003 12:25 AM
kernel compile errors justwantin Slackware 2 08-23-2003 05:47 PM


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

Main Menu
 
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
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration