Build error on Redhat EL 2.4.21

jayqnik
2004-11-07
2013-04-08
  • jayqnik
    jayqnik
    2004-11-07

    Hi all,

    I am trying to build pcmcia-cs-3.2.8 on Redhat Enterprise Linux 3 WS, Kernel 2.4.21. I use gcc as KCC and UCC. Something seems to be messed up with my includes:

    ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
    Kernel configuration options:
        Kernel-tree PCMCIA support is disabled.
        Symmetric multiprocessing support is disabled.
        Preemptive kernel support is disabled.
        Realtime Hardware Abstraction Layer is disabled.
        High memory support is enabled.
        PCI BIOS support is enabled.
        Power management (APM) support is enabled.
        SCSI support is enabled.
        IEEE 1394 (FireWire) support is disabled.
        Networking support is enabled.
         Radio network interface support is enabled.
         Token Ring device support is enabled.
         Fast switching is disabled.
         Frame Diverter is enabled.
        Module version checking is enabled.
        Kernel debugging support is enabled.
         Memory leak detection support is disabled.
         Spinlock debugging is disabled.
        /proc filesystem support is enabled.
        PAE support is disabled.

    The standalone Adaptec APA1480 CardBus driver is not supported with
        this kernel.  If you need it, use the kernel PCMCIA subsystem.

    The standalone IEEE 1394 CardBus drivers are not supported with this
        kernel.  If you need them, use the kernel PCMCIA subsystem.

    Configuration successful.

    make[1]: Entering directory `/usr/src/pcmcia-cs-3.2.8/modules'
    /usr/bin/gcc   -MD -O3 -Wall -Wstrict-prototypes -pipe -Wa,--no-warn -I../include -I/usr/src/linux-2.4/include  -D__KERNEL__ -DMODULE -c cs.c
    In file included from /usr/src/linux-2.4/include/linux/highmem.h:11,
                     from /usr/src/linux-2.4/include/linux/vmalloc.h:8,
                     from ../include/linux/vmalloc.h:7,
                     from /usr/src/linux-2.4/include/asm/io.h:47,
                     from ../include/asm/io.h:5,
                     from /usr/src/linux-2.4/include/asm/pci.h:41,
                     from /usr/src/linux-2.4/include/linux/pci.h:669,
                     from ../include/linux/pci.h:4,
                     from cs.c:49:
    /usr/src/linux-2.4/include/asm/highmem.h: In function `kmap_atomic_to_page':
    /usr/src/linux-2.4/include/asm/highmem.h:110: `__PAGE_OFFSET' undeclared (first use in this function)
    /usr/src/linux-2.4/include/asm/highmem.h:110: (Each undeclared identifier is reported only once
    /usr/src/linux-2.4/include/asm/highmem.h:110: for each function it appears in.)
    In file included from ../include/asm/io.h:5,
                     from /usr/src/linux-2.4/include/asm/pci.h:41,
                     from /usr/src/linux-2.4/include/linux/pci.h:669,
                     from ../include/linux/pci.h:4,
                     from cs.c:49:
    /usr/src/linux-2.4/include/asm/io.h: In function `virt_to_phys':
    /usr/src/linux-2.4/include/asm/io.h:78: `__PAGE_OFFSET' undeclared (first use in this function)
    /usr/src/linux-2.4/include/asm/io.h: In function `phys_to_virt':
    /usr/src/linux-2.4/include/asm/io.h:96: `__PAGE_OFFSET' undeclared (first use in this function)
    /usr/src/linux-2.4/include/asm/io.h: In function `isa_check_signature':
    /usr/src/linux-2.4/include/asm/io.h:268: `__PAGE_OFFSET' undeclared (first use in this function)
    make[1]: *** [cs.o] Error 1
    make[1]: Leaving directory `/usr/src/pcmcia-cs-3.2.8/modules'
    make: *** [all] Error 2

    ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

    Any ideas?

    Cheers, jayqnik

     
    • David Hinds
      David Hinds
      2004-11-09

      I do not test the pcmcia-cs drivers with patched kernels.  You may have better luck if you use a standard 2.4 kernel rather than Red Hat's patched kernel.  However, I do recommend using the kernel PCMCIA subsystem with 2.4 kernels.  The pcmcia-cs driver modules are deprecated.

      -- Dave