All of lore.kernel.org
 help / color / mirror / Atom feed
* 2.5.22 broke modversions
@ 2002-06-17 12:32 Mikael Pettersson
  2002-06-17 14:30 ` Kai Germaschewski
  0 siblings, 1 reply; 8+ messages in thread
From: Mikael Pettersson @ 2002-06-17 12:32 UTC (permalink / raw)
  To: kai; +Cc: linux-kernel

Something in the 2.5.22 Makefile/Rule.make changes broke
modversions on my P4 box. For some reason, a number of
exporting objects, including arch/i386/kernel/i386_ksyms,
weren't given -D__GENKSYMS__ at genksym-time, with the
effect that the resulting .ver files became empty, and the
kernel exported the symbols with unexpanded _R__ver_ suffixes.

Modversions worked in 2.5.21. I didn't see anything obvious
in patch-2.5.22 what could explain this, but I did notice a
tendency of touching files as a means of maintaining dependencies.
This may not actually work, unless you have a slow CPU or a
file system with millisecond or better st_mtime resolution --
most only maintain whole-second resolution st_mtimes.
(My modversions fix in the 2.4.0-test series, which moved the
modversions.h creation/update to a separate rule after make dep,
was due to this very problem.)

For now, I'm using the workaround below.

/Mikael

--- linux-2.5.22/Rules.make.~1~	Mon Jun 17 10:15:13 2002
+++ linux-2.5.22/Rules.make	Mon Jun 17 13:45:27 2002
@@ -147,7 +147,7 @@
 quiet_cmd_cc_ver_c = MKVER  include/linux/modules/$(RELDIR)/$*.ver
 define cmd_cc_ver_c
 	mkdir -p $(dir $@); \
-	$(CPP) $(c_flags) $< | $(GENKSYMS) $(genksyms_smp_prefix) \
+	$(CPP) $(c_flags) -D__GENKSYMS__ $< | $(GENKSYMS) $(genksyms_smp_prefix) \
 	  -k $(VERSION).$(PATCHLEVEL).$(SUBLEVEL) > $@.tmp; \
 	if [ ! -r $@ ] || cmp -s $@ $@.tmp; then \
 	  touch $(TOPDIR)/include/linux/modversions.h; \

^ permalink raw reply	[flat|nested] 8+ messages in thread
* RE: 2.5.22 broke modversions
@ 2002-06-17 14:59 Holzrichter, Bruce
  0 siblings, 0 replies; 8+ messages in thread
From: Holzrichter, Bruce @ 2002-06-17 14:59 UTC (permalink / raw)
  To: 'Martin Dalecki', Kai Germaschewski; +Cc: linux-kernel


> Użytkownik Kai Germaschewski napisał:
> > On Mon, 17 Jun 2002, Mikael Pettersson wrote:
> > 
> > 
> >>Something in the 2.5.22 Makefile/Rule.make changes broke
> >>modversions on my P4 box. For some reason, a number of
> >>exporting objects, including arch/i386/kernel/i386_ksyms,
> >>weren't given -D__GENKSYMS__ at genksym-time, with the
> >>effect that the resulting .ver files became empty, and the
> >>kernel exported the symbols with unexpanded _R__ver_ suffixes.
> > 
> > 
> > You're right, thanks for the report. The fix is appended ;)
> 
> BTW> There is some different thing broken: TEMP files
> used by make menuconfig don't get clean up even after make distclean.
> 
Is it just me? I am using linus bk version, and I don't see the Kernel
version updated in Makefile to 2.5.22?  

B.

^ permalink raw reply	[flat|nested] 8+ messages in thread
* Re: 2.5.22 broke modversions
@ 2002-06-17 19:25 Mikael Pettersson
  0 siblings, 0 replies; 8+ messages in thread
From: Mikael Pettersson @ 2002-06-17 19:25 UTC (permalink / raw)
  To: kai; +Cc: linux-kernel

On Mon, 17 Jun 2002 09:30:13 -0500 (CDT), Kai Germaschewski wrote:
>> Something in the 2.5.22 Makefile/Rule.make changes broke
>> modversions on my P4 box. ...
>
>You're right, thanks for the report. The fix is appended ;)

Thanks. The fix worked fine for me.

>(Whenever a .ver file is updated, include/linux/modversions.h is touched,
> so that during the build make only needs to check the timestamp
> of modversions.h instead of all the individual .ver files - do you see a
> problem with that?)

Nope, that should be ok.

/Mikael

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

end of thread, other threads:[~2002-06-17 19:29 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-06-17 12:32 2.5.22 broke modversions Mikael Pettersson
2002-06-17 14:30 ` Kai Germaschewski
2002-06-17 14:45   ` Martin Dalecki
2002-06-17 15:30     ` Kai Germaschewski
2002-06-17 15:39       ` Martin Dalecki
2002-06-17 15:52         ` Kai Germaschewski
  -- strict thread matches above, loose matches on Subject: below --
2002-06-17 14:59 Holzrichter, Bruce
2002-06-17 19:25 Mikael Pettersson

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.