compiling mol on 2.6.6
eric.bachard@b.org
mol-general@lists.maconlinux.org
Sun, 06 Jun 2004 18:30:41 +0200
Hi,
You again :-)
Nirmal Govind a écrit :
> Hi.. I'm trying to compile mol modules on my Powerbook running a 2.6.6
> kernel with Debian ppc sarge. I get the following errors:
>
> + Entering Linux
> In file included from
> /usr/src/rpm/BUILD/mol-kmods-0.9.70/src/kmod/build/tmp-offsets.c:16:
> /usr/src/rpm/BUILD/mol-kmods-0.9.70/src/kmod/build/mol_config.h:52:22:
> autoconf.h: No such file or directory
From an *original patch from Andreas Schwab* , and if I'm not wrong
just add $(CPPFLAGS) two times, in the
$MOL_BK_DEVEL_SRC_DIR/src/kmod/Linux/Makefile.26
at lines 11 and 38 (like above) :
So (line 11) :
before...
MOL_ASMFLAGS = $(ASMFLAGS) $(INCLUDES) -D__ASSEMBLY__
after...
MOL_ASMFLAGS = $(CPPFLAGS) $(ASMFLAGS) $(INCLUDES) -D__ASSEMBLY__
line 38, before :
@$(CC) $(CFLAGS) -I$(src) -Wall -S $(src)/tmp-offsets.c
after...
@$(CC) $(CPPFLAGS) $(CFLAGS) -I$(src) -Wall -S $(src)/tmp-offsets.c
Since I've done this, it works for me everytime :-)
Regards,
--
eric bachard