Re: 2.5.60 defconfig+CONFIG_MODVERSIONS=y -> syntax error

Kai Germaschewski (kai@tp1.ruhr-uni-bochum.de)
Mon, 10 Feb 2003 15:26:30 -0600 (CST)


On Mon, 10 Feb 2003, Kay Sievers wrote:

> On Mon, Feb 10, 2003 at 02:49:36PM -0600, Kai Germaschewski wrote:
> > On Mon, 10 Feb 2003, Kay Sievers wrote:
> > > ld:arch/i386/kernel/.tmp_time.ver:1: syntax error
> >
> > Interesting. Thanks for testing CONFIG_MODVERSIONS. I cannot reproduce it
> > here, unfortunately (not even with the same .config). What does
> > arch/i386/kernel/.tmp_time.ver look like?
>
> pim:/usr/src/linux-2.5.60# cat arch/i386/kernel/.tmp_time.ver
> __crc_i = 0x_lock ; ac2d2492

Okay, that's not a problem with ld, but (most likely) sed.

I hope the appended patch fixes it. For the record, what version of sed do
you have? (sed -V)

--Kai

===== scripts/Makefile.build 1.27 vs edited =====
--- 1.27/scripts/Makefile.build Sat Feb 8 14:30:33 2003
+++ edited/scripts/Makefile.build Mon Feb 10 15:25:44 2003
@@ -94,7 +94,7 @@
else \
$(CPP) -D__GENKSYMS__ $(c_flags) $< \
| $(GENKSYMS) -k $(VERSION).$(PATCHLEVEL).$(SUBLEVEL) \
- | sed -n 's/\#define __ver_\(\w*\)\W*\(\w*\)/__crc_\1 = 0x\2 ;/gp' \
+ | sed -n 's/\#define __ver_\([^ ]*\)[ ]*\([^ ]*\)/__crc_\1 = 0x\2 ;/gp' \
> $(@D)/.tmp_$(@F:.o=.ver); \
\
$(LD) $(LDFLAGS) -r -o $@ $(@D)/.tmp_$(@F) \

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/