2.3.99-pre2 compile problems.

From: Q (Q@ping.be)
Date: Sun Mar 19 2000 - 17:37:29 EST

  • Next message: Peter T. Breuer: "Re: kernel flavours"

    First problem is when I try to run make menuconfig from a clean source
    tree:

    make menuconfig
    rm -f include/asm
    ( cd include ; ln -sf asm-i386 asm)
    make -C scripts/lxdialog all
    make[1]: Entering directory `/usr/src/linux/scripts/lxdialog'
    /bin/sh: -lncurses: command not found

    >> Unable to find the Ncurses libraries.
    >>
    >> You must have Ncurses installed in order
    >> to use 'make menuconfig'

    make[1]: *** [ncurses] Error 1
    make[1]: Leaving directory `/usr/src/linux/scripts/lxdialog'
    make: *** [menuconfig] Error 2

    apperently, someone removed .EXPORT_ALL_VARIABLES from the toplevel
    Makefile, and instead exported:
    CPPFLAGS CFLAGS AFLAGS ROOT_DEV SVGA_MODE CORE_FILES NETWORKS DRIVERS LIBS
    HEAD LDFLAGS LIBS LINKFLAGS MAKEBOOT ASFLAGS MODVERFILE
    (LIBS is exported twice in the same line)

    I think those are missing:
    HOSTCC HPATH TOPDIR CC GENKSYMS HOSTCFLAGS CROSS_COMPILE AS LD CPP AR NM
    STRIP OBJCOPY OBJDUMP MAKE

    But something else seems to be missing too, so I just put
    .EXPORT_ALL_VARIABLES: in it again.

    So we add that, and then get:

    gcc -DLOCALE -DCURSES_LOC="<ncurses.h>" -D__KERNEL__
    -I/usr/src/linux/include -c lxdialog.c -o lxdialog.o
    In file included from
    /usr/src/linux/include/linux/types.h:4,
                     from /usr/include/sys/types.h:4,
                     from dialog.h:22,
                     from lxdialog.c:22:
    /usr/src/linux/include/linux/config.h:4: linux/autoconf.h: No such file or
    directory
    make[1]: *** [lxdialog.o] Error 1

    This is reported more then once now. I think it's libc5 specific.
    touch /usr/src/linux/include/linux/autoconf.h will fix this, but that's
    not the proper way.

    I think the proper way is to use -D__KERNEL__ for lxdialog, and to put
    #ifdef __KERNEL__ around the #include <linux/config.h> in <linux/types.h>
    that atleast seems to do the trick for me.

    /usr/src/linux/Rules.make:275: target `slhc.o' given more than once in the
    same rule.

    This is because I define both CONFIG_ISDN_PPP and CONFIG_PPP, have no idea
    how to fix this.

    next we got:
    sg.c:2449: warning: `sg_proc_cleanup' defined but not used

    You'll find a patch (which I already mailed about a week ago) attached

    q931.c:204: warning: `fac_1tr6' defined but not used
    This doesn't seem to be used anywhere, so I removed it.

    next we got:
    /usr/src/linux/include/linux/isdn_ppp.h:32: warning: `PPP_MP' redefined
    /usr/src/linux/include/linux/ppp_defs.h:73: warning: this is the location
    of the previous definition

    They seem to be defined to the same value, but should be fixed anyway.
    (isdn_ppp.h should include ppp_defs.h?)

    fatfs_syms.c:59: warning: static declaration for `init_fat_fs' follows
    non-static

    ./include/linux/msdos_fs.h:extern int init_fat_fs(void);
    ./fs/fat/fatfs_syms.c:static int __init init_fat_fs(void)

    It should probably be non-static.

    Q





    -
    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 : Sun Mar 19 2000 - 19:01:46 EST