#12 Don't build on RH 7.1

closed-rejected
None
5
2001-09-17
2001-09-09
No

I can not compile ftpfs on my Red Hat 7.1 (kernel
2.4.3-12smp). I have tried with both gcc (version
2.96-85) and kgcc (version 2.91.66). This is what
happens when using kgcc:

[h@ksi51 ftpfs-0.6.1-k2.4]$ make
make[1]: Entering directory
`/home/h/src/ftpfs-0.6.1-k2.4/ftpfs'
kgcc -O2 -fomit-frame-pointer -fno-strict-aliasing
-pipe -mpreferred-stack-boundary=2 -Wall -I- -I.
-I/usr/src/linux/include -DMODULE -D__KERNEL__ -DLINUX
-DEXPORT_SYMTAB -c cache.c -o cache.o
In file included from /usr/include/linux/module.h:21,
from cache.c:2:
/usr/include/linux/modversions.h:1: #error Modules
should never use kernel-headers system headers,
/usr/include/linux/modversions.h:2: #error but headers
from an appropriate kernel-source
cc1: Invalid option `preferred-stack-boundary=2'
make[1]: *** [cache.o] Error 1
make[1]: Leaving directory
`/home/h/src/ftpfs-0.6.1-k2.4/ftpfs'
make: *** [all] Error 2

Discussion

  • Florin Malita

    Florin Malita - 2001-09-17

    Logged In: YES
    user_id=154306

    Well, this is because you are using the stock kernel headers, privided by default RH install, which - as it shows up - cannot be used for modules compilation.

    #error Modules should never use kernel-headers system headers,
    #error but headers from an appropriate kernel-source

    Rings a bell?

    You need a "real" kernel source tree (with headers & stuff).

     
  • Florin Malita

    Florin Malita - 2001-09-17
    • assigned_to: nobody --> mali
    • status: open --> closed-rejected
     

Log in to post a comment.