Compilation Errors

Tooru Yoshida yoshida
Mon Jul 28 03:53:10 PDT 2003


Hi,

> Im trying to run the make pci command and get the following error
> below.  Im running redhat 9, kernel version 2.4.20-19.9.  Any one have
> any ideas ?? Excuse me if this has been dealt with before, im new !

Are Kernel-source and glibc-kernelheaders installed?
You Kernel source is kernel-source-2.4.20-19.9

It is necessary to move to /usr/src/linux-2.4 subordinate after installation, 
and to execute the following.
 1) cd /usr/src/linux-2.4
 2) A required config file is copied from a Configs directory.
 3) make oldconfig dep

However, it may not work in Red Hat software9.0 by this method.
In this case, it will create using src.rpm of kernel.

> gcc -I/usr/src/linux-2.4.20-8/include -include
> driver/modules/hostap_crypt.ver -include driver/modules/hostap.ver -O2
> -D__KERNEL__ -DMODULE -Wall -g -c  -DMODVERSIONS -include
> /usr/src/linux-2.4.20-8/include/linux/modversions.h -D__SMP__ -DSMP
> -fomit-frame-pointer -o driver/modules/hostap_pci.o
> driver/modules/hostap_pci.c
> <command line>:3:1: /usr/src/linux-2.4.20-8/include/linux/modversions.h:
> No such file or directory
> In file included from /usr/include/linux/fs.h:23,
>                  from /usr/include/linux/capability.h:17,
>                  from /usr/include/linux/binfmts.h:5,
>                  from /usr/include/linux/sched.h:9,
>                  from /usr/include/linux/skbuff.h:19,
>                  from driver/modules/hostap_pci.c:12:
> /usr/include/linux/string.h:8:2: warning: #warning Using kernel header
> in userland!
> In file included from /usr/include/linux/sched.h:14,
>                  from /usr/include/linux/skbuff.h:19,
>                  from driver/modules/hostap_pci.c:12:
> /usr/include/linux/timex.h:173: field `time' has incomplete type
> /usr/include/linux/timex.h:188: confused by earlier errors, bailing out
> make: *** [driver/modules/hostap_pci.o] Error 1


-- 
-----------------------------------------------------------------
Limited Pertnership Liberty System Factory
Tooru Yoshida <yoshida at libertysystem-factory.co.jp>
              <yoshida at embeddedlinux.jp>
              <tooruy at ieee.org>
Post 314-0033 Condminium Kashima 302,Hachigatadai 2-2-1
              Kashima , Ibaraki , Japan
Tel/Fax : +81 299 82 5076  Handy : +81 90 8349 0651
Linux Business Initiative(LBI) President http://www.lbi.gr.jp/
-----------------------------------------------------------------
Embedded Linux Developer's Community http://www.embeddedlinux.jp/




More information about the Hostap mailing list