mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* missing elfconfig.h
@ 2007-06-08 13:08 Rich Chase
  2007-06-08 20:19 ` Sam Ravnborg
  0 siblings, 1 reply; 11+ messages in thread
From: Rich Chase @ 2007-06-08 13:08 UTC (permalink / raw)
  To: linux-kernel

An Apparent bug:
version 2.6.21.3
missing the file ./scripts/mod/elfconfig.h

I noticed this when trying to compile a 3rd party 
module. Maybe this is intended. Not sure.

I discovered this when I attempted to compile modpost.c 
in the same directory. The following is the output:

#> make modpost
cc     modpost.c   -o modpost
In file included from modpost.c:15:
modpost.h:12:23: error: elfconfig.h: No such file or 
directory
modpost.c: In function ‘handle_modversions’:
modpost.c:436: error: ‘MODULE_SYMBOL_PREFIX’ undeclared 
(first use in this function)
modpost.c:436: error: (Each undeclared identifier is 
reported only once
modpost.c:436: error: for each function it appears in.)
modpost.c:436: error: expected ‘)’ before string 
constant
modpost.c:436: error: too few arguments to 
function ‘memcmp’
modpost.c:438: error: expected ‘)’ before string 
constant
modpost.c:451: error: expected ‘)’ before string 
constant
modpost.c:482: error: expected ‘)’ before string 
constant
modpost.c:482: error: too few arguments to 
function ‘memcmp’
modpost.c:483: error: expected ‘)’ before string 
constant
modpost.c:486: error: expected ‘)’ before string 
constant
modpost.c:488: error: expected ‘)’ before string 
constant
make: *** [modpost] Error 1


Regards,
Rich Chase

^ permalink raw reply	[flat|nested] 11+ messages in thread
* Re: missing elfconfig.h
@ 2007-06-09 16:34 Rich Chase
  0 siblings, 0 replies; 11+ messages in thread
From: Rich Chase @ 2007-06-09 16:34 UTC (permalink / raw)
  To: linux-kernel

Jan,

> >In your case the kernel was not build.
> >And to build modpost you need to execute "make
> > modules" from the kernel top-level directory.
>
> "make scripts" ?

Wouldn't this do the same as going into the ".scripts/"
directory and doing make?

My problem is that the script 'modpost' requires the
include file, elfconfig.h, because it is included in
modpost.c.

> Most likely it is one of the worse Makefile...

Entirely possible. Maybe the module shouldn't need the
modpost script anymore? That would explain why my
kernel built and runs fine without successful compile
of the script. But then why is the source for the
script still in the kernel tree?

Thanks,
Rich

-------------------------------------------------------

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2007-06-09 20:56 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-06-08 13:08 missing elfconfig.h Rich Chase
2007-06-08 20:19 ` Sam Ravnborg
2007-06-09  7:53   ` Jan Engelhardt
2007-06-09  7:57     ` Robert P. J. Day
2007-06-09  8:54       ` Sam Ravnborg
2007-06-09  7:59     ` Robert P. J. Day
2007-06-09  8:53     ` Sam Ravnborg
2007-06-09 16:38       ` Rich Chase
2007-06-09 16:24   ` Rich Chase
2007-06-09 20:57     ` Sam Ravnborg
2007-06-09 16:34 Rich Chase

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®