lkml.org 
[lkml]   [2003]   [Oct]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectCan't build external module against 2.6.0-test6 kernel
    I'm trying to build a driver external to the kernel. I'm running 2.6.0-test6
    kernel.
    It appears to me (I'm probably wrong) that there is a kernel include file issue.

    gcc -c rtom.c -D__KERNEL__ -DMODULE -DDEBUG -DDEBUG_LEVEL=6
    -I/lib/modules/2.6.0-test6/build/include -I../include/linux/sys
    -I../include/linux -I../include -O -o rtom
    In file included from /lib/modules/2.6.0-test6/build/include/asm/smp.h:18,
    from /lib/modules/2.6.0-test6/build/include/linux/smp.h:17,
    from /lib/modules/2.6.0-test6/build/include/linux/sched.h:23,
    from /lib/modules/2.6.0-test6/build/include/linux/module.h:10,
    from rtom.c:2:
    /lib/modules/2.6.0-test6/build/include/asm/mpspec.h:6:25: mach_mpspec.h: No such
    file or directory
    In file included from /lib/modules/2.6.0-test6/build/include/asm/smp.h:18,
    from /lib/modules/2.6.0-test6/build/include/linux/smp.h:17,
    from /lib/modules/2.6.0-test6/build/include/linux/sched.h:23,
    from /lib/modules/2.6.0-test6/build/include/linux/module.h:10,
    from rtom.c:2:
    /lib/modules/2.6.0-test6/build/include/asm/mpspec.h:8: error `MAX_MP_BUSSES'
    undeclared here
    (not in a function)
    .
    .



    harley:/usr/src/linux-2.6.0-test6 # find ./ -name mach_mpspec.h

    ./include/asm-i386/mach-default/mach_mpspec.h
    ./include/asm-i386/mach-es7000/mach_mpspec.h
    ./include/asm-i386/mach-generic/mach_mpspec.h
    ./include/asm-i386/mach-summit/mach_mpspec.h
    ./include/asm-i386/mach-numaq/mach_mpspec.h
    ./include/asm-i386/mach-bigsmp/mach_mpspec.h



    In the 'include/asm/mpspec.h' file:
    #ifndef __ASM_MPSPEC_H
    #define __ASM_MPSPEC_H

    #include <linux/cpumask.h>
    #include <asm/mpspec_def.h>
    #include <mach_mpspec.h> <-----------------------------------------------

    extern int mp_bus_id_to_type [MAX_MP_BUSSES];

    It seems like something is amiss here. Isn't the include statment incorrect
    above?

    Thanks
    Mark
    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/

    \
     
     \ /
      Last update: 2005-03-22 13:49    [W:0.029 / U:0.172 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site