Re: 2.3.99-pre9-1 compilation error

From: Dieter Nützel (dieter.nuetzel@myokay.net)
Date: Sat May 13 2000 - 17:32:24 EDT

  • Next message: Urban Widmark: "Re: [Fwd: VIA Rhine Driver Bug]"

    Hello,

    I got the following errors during compilation of 2.3.99-pre9-1:

    gcc -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes -O2
    -fomit-frame-pointer -fno-strict-aliasing -pipe
    -mpreferred-stack-boundary=5 -march=i686 -malign-functions=4
    -fschedule-insns2 -mwide-multiply -fexpensive-optimizations -c -o
    pci-pc.o pci-pc.c
    {standard input}: Assembler messages:
    {standard input}:78: Warning: indirect lcall without `*'
    {standard input}:164: Warning: indirect lcall without `*'
    {standard input}:240: Warning: indirect lcall without `*'
    {standard input}:280: Warning: indirect lcall without `*'
    {standard input}:312: Warning: indirect lcall without `*'
    {standard input}:344: Warning: indirect lcall without `*'
    {standard input}:375: Warning: indirect lcall without `*'
    {standard input}:404: Warning: indirect lcall without `*'
    {standard input}:433: Warning: indirect lcall without `*'
    {standard input}:752: Warning: indirect lcall without `*'
    {standard input}:879: Warning: indirect lcall without `*'
    gcc -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes -O2
    -fomit-frame-pointer -fno-strict-aliasing -pipe
    -mpreferred-stack-boundary=5 -march=i686 -malign-functions=4
    -fschedule-insns2 -mwide-multiply -fexpensive-optimizations -c -o
    pci-irq.o pci-irq.c
    pci-irq.c:225: `PCI_DEVICE_ID_INTEL_82440MX_1' undeclared here (not in a
    function)
    pci-irq.c:225: initializer element is not constant
    pci-irq.c:225: (near initialization for `pirq_routers[3].device')
    make[1]: *** [pci-irq.o] Error 1
    make[1]: Leaving directory
    `/usr/src/linux-2.3.99-pre9-1/arch/i386/kernel'
    make: *** [_dir_arch/i386/kernel] Error 2

    Missing line in linux/include/linux/pci_ids.h ?

    #define PCI_DEVICE_ID_INTEL_82440MX_1 0x12XX

    Second:

    gcc -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes -O2
    -fomit-frame-pointer -fno-strict-aliasing -pipe
    -mpreferred-stack-boundary=5 -march=i686 -malign-functions=4
    -fschedule-insns2 -mwide-multiply -fexpensive-optimizations -c -o
    acpi.o acpi.c
    acpi.c:1670: __setup_str_acpi_setup causes a section type conflict
    acpi.c:1672: acpi causes a section type conflict
    make[1]: *** [acpi.o] Error 1
    make[1]: Leaving directory
    `/usr/src/linux-2.3.99-pre9-1/arch/i386/kernel'
    make: *** [_dir_arch/i386/kernel] Error 2

    If I revert this pre9-1 patch it goes smooth.

    diff -u --recursive --new-file
    v2.3.99-pre8/linux/arch/i386/kernel/acpi.c linux/arch/i386/kernel/acpi.c
    --- v2.3.99-pre8/linux/arch/i386/kernel/acpi.c Thu May 11 15:30:06 2000
    +++ linux/arch/i386/kernel/acpi.c Sat May 13 08:19:21 2000
    @@ -824,12 +824,12 @@
            {acpi_init_via},
     };
     
    -const static struct pci_device_id acpi_pci_tbl[] =
    +const static struct pci_device_id acpi_pci_tbl[] __devinitdata =

    Thanks,
            Dieter

    --
    Dieter Nützel
    Graduate Student, Computer Science
    

    University of Hamburg Department of Computer Science Cognitive Systems Group Vogt-Kölln-Straße 30 D-22527 Hamburg, Germany

    email: nuetzel@kogs.informatik.uni-hamburg.de @home: dieter.nuetzel@myokay.net

    - 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 May 13 2000 - 17:31:13 EDT