2.2.17pre12 fails compile: EACCES undefined in kmod.h

From: Henrik Størner (henrik@storner.dk)
Date: Sat Jul 15 2000 - 04:22:54 EDT

  • Next message: Andrzej Krzysztofowicz: "Re: gcc-2.7.2.3 warnings [PATCH] (fwd)"

    I think there is a missing "#include <asm/errno.h>" in include/linux/kmod.h .

    With CONFIG_KMOD disabled, I get this:

    gcc -D__KERNEL__ -I/home/src/linux-2.2/include -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -fno-strict-aliasing -pipe -fno-strength-reduce -m486 -malign-loops=2 -malign-jumps=2 -malign-functions=2 -DCPU=686 -DCONFIG_SOUND_SBDSP -DCONFIG_SOUND_UART401 -c -o audio.o audio.c
    /home/src/linux-2.2/include/linux/kmod.h: In function `exec_usermodehelper':
    In file included from audio.c:27:
    /home/src/linux-2.2/include/linux/kmod.h:14: `EACCES' undeclared (first use in this function)
    /home/src/linux-2.2/include/linux/kmod.h:14: (Each undeclared identifier is reported only once
    /home/src/linux-2.2/include/linux/kmod.h:14: for each function it appears in.)
    /home/src/linux-2.2/include/linux/kmod.h:15: warning: control reaches end of non-void function
    make[3]: *** [audio.o] Error 1
    make[3]: Leaving directory `/home/src/linux-2.2/drivers/sound'
    make[2]: *** [first_rule] Error 2
    make[2]: Leaving directory `/home/src/linux-2.2/drivers/sound'
    make[1]: *** [_subdir_sound] Error 2
    make[1]: Leaving directory `/home/src/linux-2.2/drivers'
    make: *** [_dir_drivers] Error 2

    -- 
    Henrik Storner      | "Crackers thrive on code secrecy. Cockcroaches breed 
    <henrik@storner.dk> |  in the dark. It's time to let the sunlight in."
                        |  
                        |          Eric S. Raymond, re. the Frontpage backdoor
    

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



    This archive was generated by hypermail 2b29 : Sat Jul 15 2000 - 15:48:37 EDT