Help - 'make' errors dealing with Kernel Source - all my kernel source code, old and new

Adam D emlists at gmail.com
Thu Jun 22 08:24:03 UTC 2006


Erik Christiansen wrote:
> On Wed, Jun 21, 2006 at 09:13:17PM -0700, Adam D wrote:
>> all give me this error:
>>
>>   HOSTCC  scripts/kconfig/mconf.o
>> scripts/kconfig/mconf.c: In function 'exec_conf':
>> scripts/kconfig/mconf.c:488: error: 'EINTR' undeclared (first use in this 
>> function)
>> scripts/kconfig/mconf.c:488: error: (Each undeclared identifier is reported 
>> only once
>> scripts/kconfig/mconf.c:488: error: for each function it appears in.)
>> scripts/kconfig/mconf.c:488: error: 'EAGAIN' undeclared (first use in this 
>> function)
>> make[1]: *** [scripts/kconfig/mconf.o] Error 1
>> make: *** [xconfig] Error 2
>>
>>
>> Is this related to missing file or a conflict?  Or just simply something else...
> 
> Adam,
> 
>    Am I mistaken, or have you started three threads on this topic today?
> I've answered one of them with this Subject: Re: Kernel Compile errors
Erik,  I am dreadfully sorry.. I have been looking through the list throughout the day and... yes it does look rather impatient.  opus ummmm 



> Could you please check that thread of yours, on the list? In case
> there's gum in the pipes up your way, I'll quote it below.

I see your post... I had written the last one and held off for a bit then just sent it 5 min after your respond was posted to the list; had not received it when I sent mine.  I am glad to hear it has been going through.. because usually the lists are very responsive; however I have not heard anything in a while on some.. and had thought my server was rejecting them or just getting lost.  But all in all glad to know everything is fine.  (We have been tweaking the server for spam and had noticed some legit mail was being blocked but since fixed.)



> 
> Erik
> 
> ----------------- My list reply, from a few hours ago ---------------
> 
> On Wed, Jun 21, 2006 at 05:20:19AM -0700, Adam D wrote:
>> all give me this error:
>>
>>   HOSTCC  scripts/kconfig/mconf.o
>> scripts/kconfig/mconf.c: In function 'exec_conf':
>> scripts/kconfig/mconf.c:488: error: 'EINTR' undeclared (first use in this
>> function)
>> scripts/kconfig/mconf.c:488: error: (Each undeclared identifier is reported
>> only once
>> scripts/kconfig/mconf.c:488: error: for each function it appears in.)
>> scripts/kconfig/mconf.c:488: error: 'EAGAIN' undeclared (first use in this
>> function)
>> make[1]: *** [scripts/kconfig/mconf.o] Error 1
>> make: *** [xconfig] Error 2
> 
> Adam,
> 
>    I've never been in your situation, but it appears evident that you're
> missing the header which defines error values. I suspect you'll find
> that scripts/kconfig/mconf.c should include /usr/include/linux/errno.h,
> or a header which in turn includes it, so you'll have:

This is what I have been doing for some years, I do hope it is correct.  When compiling my own source and I have a link in /usr/include/linux pointing 

lrwxrwxrwx 1 root root 26 Jun  2 13:21 /usr/include/linux -> ../src/linux/include/linux/

Within /usr/src/linux/include/linux I find a link asm -> asm-x86_64

 ../include/asm # cat errno.h
#ifndef _X8664_ERRNO_H
#define _X8664_ERRNO_H

#include <asm-generic/errno.h>

#endif

(I do not find an asm-amd64 and I think the asm-x86_64 is the proper directory.)  My working kernel I am using now was my first AMD kernel compiled and before that it has been PPC all these years with some intel kernels of late working on some servers.

scripts/kconfig/mconf.c does have errno.h in the file.

 ../src/linux # grep errno.h scripts/kconfig/mconf.c
#include <errno.h>




> 
> #define  EINTR     4 /* Interrupted system call */

grepping EINTR I found this:
                                if (errno == EINTR || errno == EAGAIN)

> 
> The same goes for EAGAIN. It's defined in the same file, naturally.

Ummmm, I am showing my lack of programing knowledge here, what is EAGAIN? 

grepping EAGAIN I get the same response as above:
                                if (errno == EINTR || errno == EAGAIN)

> 
> Can you post the #includes at the top of scripts/kconfig/mconf.c?
> If the include is there, then your include path probably needs tweaking.
> 
> Erik
> 


<snip>

 */

#include <sys/ioctl.h>
#include <sys/wait.h>
#include <ctype.h>
#include <errno.h>
#include <fcntl.h>
#include <limits.h>
#include <signal.h>
#include <stdarg.h>
#include <stdlib.h>
#include <string.h>
#include <termios.h>
#include <unistd.h>
#include <locale.h>

#define LKC_DIRECT_LINK
#include "lkc.h"

<snip>



Ok.. now looking over that.. I did have a slight brain freeze.  When you had mentioned about the headers and includes.. I had forgotten about my link in /usr/include pointing to the /usr/src/linux/include and 'linux' was the new 2.6.17.1 kernel source.  That being said I moved the linux link to my old source and did a make xconfig and it worked but different errors in the terminal came up but the gui xconfig did display, as opposed to the 2.6.17.1 source it had not. (I can list those errors but I did not want to complicate the issue and sticking to the current issue at hand.)

So, it does look like the new 2.6.17.1 code has a bit minor issue with me. 


I do hope that helps...and thank you very much :).

-Adam





More information about the ubuntu-users mailing list