Menu

#2 serial fails compile on 2.2.18

open
nobody
None
5
2000-12-12
2000-12-12
No

cc -D__KERNEL__ -I/usr/src/linux/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=586 -DEXPORT_SYMTAB -c serial.c
In file included from serial.c:220:
serial_compat.h:154: warning: `pci_resource_len' redefined
/usr/src/linux/include/linux/modules/pcisyms.ver:48: warning: this is the location of the previous definition
serial.c:4335: `PCI_DEVICE_ID_OXSEMI_16PCI954' undeclared here (not in a function)
serial.c:4335: initializer element is not constant
serial.c:4335: (near initialization for `pci_boards[38].device')
serial.c:4338: `PCI_DEVICE_ID_OXSEMI_16PCI954' undeclared here (not in a function)
serial.c:4338: initializer element is not constant
serial.c:4338: (near initialization for `pci_boards[39].device')
make[3]: *** [serial.o] Error 1

Discussion

  • jeffy

    jeffy - 2001-01-31

    TossBox:/usr/src/external-modules/serial-5.05# make really-clean
    rm -f serial.o *~ .kver serial.ver modversions.h serial.s core
    rm -rf linux
    rm -f *.o .smpflag .modflag
    TossBox:/usr/src/external-modules/serial-5.05# make
    /sbin/depmod
    Building serial driver for Linux 2.2.18-MOD

    circ_buf.h doesn't exist, using local copy.
    make[1]: Entering directory `/usr/src/external-modules/serial-5.05'
    Generating modversions.h
    Generating serial.ver...
    gcc -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -D__powerpc__ -fsigned-char -msoft-float -pipe -fno-builtin -ffixed-r2 -Wno-uninitialized -mmultiple -mstring -I. -I/usr/src/linux/include -D__KERNEL__ -DLINUX -DLOCAL_HEADERS -DEXPORT_SYMTAB -DCONFIG_SERIAL_MULTIPORT -DCONFIG_SERIAL_SHARE_IRQ -DMODULE -D__GENKSYMS__ -E serial.c > serial.tmp
    genksyms -k 2.2.18 < serial.tmp
    rm -f serial.tmp
    make[1]: Leaving directory `/usr/src/external-modules/serial-5.05'
    gcc -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -D__powerpc__ -fsigned-char -msoft-float -pipe -fno-builtin -ffixed-r2 -Wno-uninitialized -mmultiple -mstring -I. -I/usr/src/linux/include -D__KERNEL__ -DLINUX -DLOCAL_HEADERS -DEXPORT_SYMTAB -DCONFIG_SERIAL_MULTIPORT -DCONFIG_SERIAL_SHARE_IRQ -DMODULE -DMODVERSIONS -c serial.c -o serial.o
    In file included from serial.c:220:
    serial_compat.h:154: warning: `pci_resource_len' redefined
    /usr/src/linux/include/linux/modules/pcisyms.ver:48: warning: this is the location of the previous definition
    serial.c:4335: `PCI_DEVICE_ID_OXSEMI_16PCI954' undeclared here (not in a function)
    serial.c:4335: initializer element is not constant
    serial.c:4335: (near initialization for `pci_boards[38].device')
    serial.c:4338: `PCI_DEVICE_ID_OXSEMI_16PCI954' undeclared here (not in a function)
    serial.c:4338: initializer element is not constant
    serial.c:4338: (near initialization for `pci_boards[39].device')
    make: *** [serial.o] Error 1
    TossBox:/usr/src/external-modules/serial-5.05#

    Duplicated----AARRRGGG!
    Debian 2.2 Potato PowerPC
    Linux 2.2.18
    PowerMac G4 128Mb IDE System
    Trying to make a KeySpan SX Pro 4 port work......
    This is from Serial 5.05

     
  • Matthias Andree

    Matthias Andree - 2001-01-31

    If your mailing address would be working, I could have told you earlier.
    However, I'm keeping copies two patches sent to LKML, one by Chip Salzenberg, the other by Lukasz Trabinski, at http://mandree.home.pages.de/kernelpatches/v2.2/v2.2.18/ they are named 2.2.18-fix-serial-5.05-boot.patch and 2.2.18-fix-serial-5.05-pre.patch (you need both).

     
  • Nobody/Anonymous

    Logged In: NO

    Hi,

    same problem with kernel 2.2.19

    regards
    chris

     
MongoDB Logo MongoDB