2.6.12.2 header problems

Christian Jaeger christian.jaeger at ethlife.ethz.ch
Sun Jul 10 19:25:00 MDT 2005


Hello

I'm trying to compile mol-0.9.70 for kernel 2.6.12.2 (kernel.org).

I'm getting hairy include file problems, as shown below. Why are
include files missing? And then why are there conflicts when I made
symlinks trying to solve the missing ones?

Can anyone explain me why mol includes both glibc and linux-kernel
headers? Why can't one keep those separate? Why must there be
conflicts? Is it just the order of the include paths that's wrong?

It can't be that I have to upgrade my userspace, right? I really don't
want to upgrade most of my userspace just to get nonconflicting header
files. I'm running Debian Woody, and that suits me fine - I don't have
the disk space, nor the time risking the upgrade, nor superfluous cpu
cylces for new bloat, I simply have to expect only drawbacks and
hassles doing an upgrade to Sarge here, for no benefit except that
*maybe* header files won't conflict anymore. Please don't tell me
that's the way linux is meant to work.

Thanks for any hints
Christian.


make
...
+ Entering Linux
In file included from /usr/src/MOL/mol-0.9.70/src/kmod/Linux/../build/_fault.c:18:
/usr/src/MOL/mol-0.9.70/src/kmod/Linux/../build/alloc.h: In function `tophys_mol':
/usr/src/MOL/mol-0.9.70/src/kmod/Linux/../build/alloc.h:61: warning: implicit declaration of function `virt_to_phys'

=> I'm adding
#include <asm/io.h>
to
./src/kmod/Linux/alloc.h
then
make
...
+ Entering Linux
In file included from /usr/src/MOL/mol-0.9.70/src/kmod/Linux/../build/tmp-offsets.c:16:
/usr/src/MOL/mol-0.9.70/src/kmod/Linux/../build/mol_config.h:52: autoconf.h: Datei oder Verzeichnis nicht gefunden
/usr/src/MOL/mol-0.9.70/src/kmod/Linux/../build/mol_config.h:68: platform.h: Datei oder Verzeichnis nicht gefunden
...

yes, the file is containing: #include "autoconf.h"
and there's no such file in the dir; there's only:

mol-0.9.71# l `find -name "autoconf.h"`
-rw-r--r--    1 root     root          527 12. Jul 2004  ./obj-ppc/config/autoconf.h
lrwxr-xr-x    1 root     root           20 12. Jul 2004  ./obj-ppc/include/autoconf.h -> ../config/autoconf.h

mol-0.9.70# cd src/kmod/Linux/
Linux# ln -s ../../../.inc-ppc/autoconf.h .

make
....
+ Entering Linux
In file included from /usr/src/MOL/mol-0.9.70/src/kmod/Linux/../build/tmp-offsets.c:16:
/usr/src/MOL/mol-0.9.70/src/kmod/Linux/../build/mol_config.h:68: platform.h: Datei oder Verzeichnis nicht gefunden
/usr/src/MOL/mol-0.9.70/src/kmod/Linux/../build/mol_config.h:75: debugger.h: Datei oder Verzeichnis nicht gefunden
/usr/src/MOL/mol-0.9.70/src/kmod/Linux/../build/mol_config.h:76: extralib.h: Datei oder Verzeichnis nicht gefunden


mol-0.9.70# find -name platform.h
./src/include/platform.h
mol-0.9.70# find -name debugger.h
./src/include/debugger.h
mol-0.9.70# find -name autoconf.h
./src/kmod/Linux/autoconf.h
./src/kmod/build/autoconf.h
./.inc-ppc/autoconf.h
mol-0.9.70# find -name extralib.h
./src/include/extralib.h

# cd src/kmod/Linux/
Linux# ln -s ../../include/platform.h .
Linux# ln -s ../../include/debugger.h .
Linux# ln -s ../../include/extralib.h .

make
...
  CC [M]  /usr/src/MOL/mol-0.9.70/src/kmod/Linux/../build/misc.o
In file included from /usr/include/linux/fs.h:12,
                 from /usr/include/linux/capability.h:17,
                 from /usr/include/linux/binfmts.h:5,
                 from /usr/include/linux/sched.h:9,
                 from /usr/src/MOL/mol-0.9.70/src/kmod/Linux/../build/tmp-offsets.c:316:
/usr/include/linux/wait.h:4: warning: `WNOHANG' redefined
/usr/include/bits/waitflags.h:26: warning: this is the location of the previous definition



More information about the mol-general mailing list