compilation error in 2.4.3-pre3

From: Joachim Herb (herb@leo.org)
Date: Sat Mar 10 2001 - 20:36:20 EST

  • Next message: Alex Baretta: "Re: Possible bug with poll syscall"

    Hello,

    I get the following compilation error:
    gcc -D__KERNEL__ -I/tmp2/src/linux-2.4.3.jh/include -Wall
    -Wstrict-prototypes -O
    2 -fomit-frame-pointer -fno-strict-aliasing -pipe
    -mpreferred-stack-boundary=2 -
    march=i686 -malign-functions=4 -c -o proc_misc.o proc_misc.c
    proc_misc.c: In function `read_profile':
    proc_misc.c:452: `prof_shift' undeclared (first use in this function)
    proc_misc.c:452: (Each undeclared identifier is reported only once
    proc_misc.c:452: for each function it appears in.)
    proc_misc.c:454: `prof_len' undeclared (first use in this function)
    proc_misc.c:464: `prof_buffer' undeclared (first use in this function)
    proc_misc.c: In function `write_profile':
    proc_misc.c:494: `prof_len' undeclared (first use in this function)
    proc_misc.c:494: `prof_buffer' undeclared (first use in this function)
    proc_misc.c: In function `proc_misc_init':
    proc_misc.c:563: `prof_shift' undeclared (first use in this function)
    proc_misc.c:567: `prof_len' undeclared (first use in this function)
    make[3]: *** [proc_misc.o] Error 1
    make[3]: Leaving directory `/tmp2/src/linux-2.4.3.jh/fs/proc'
    make[2]: *** [first_rule] Error 2
    make[2]: Leaving directory `/tmp2/src/linux-2.4.3.jh/fs/proc'
    make[1]: *** [_subdir_proc] Error 2
    make[1]: Leaving directory `/tmp2/src/linux-2.4.3.jh/fs'
    make: *** [_dir_fs] Error 2

    I use:
    # gcc --version
    2.95.3
    (Mandrake 7.2)

    This variables were defined in asm/string.h but now I can only find them
    in asm/hw_irq.h. I have included asm/hw_irq.h and it compiles but I get
    a warning:
    make[3]: Entering directory `/tmp2/src/linux-2.4.3.jh/fs/proc'
    gcc -D__KERNEL__ -I/tmp2/src/linux-2.4.3.jh/include -Wall
    -Wstrict-prototypes -O2 -fomit-frame-pointer -fno-strict-aliasing -pipe
    -mpreferred-stack-boundary=2 -march=i686 -malign-functions=4 -c -o
    proc_misc.o proc_misc.c
    In file included from proc_misc.c:42:
    /tmp2/src/linux-2.4.3.jh/include/asm/hw_irq.h:219: warning: `struct
    hw_interrupt_type' declared inside parameter list
    /tmp2/src/linux-2.4.3.jh/include/asm/hw_irq.h:219: warning: its scope is
    only this definition or declaration, which is probably not what you
    want.
    rm -f proc.o

    Bye,
    Joachim

    P.S. Please send also an email to my private address as I am not
    subscribed to the list.

    -- 
    Joachim Herb
    mailto:herb@leo.org
    -
    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/
    



    This archive was generated by hypermail 2b29 : Sat Mar 10 2001 - 20:43:08 EST