Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Doesn't compile on kernel 4.8.0-11-generic #42

Closed
andreyshade opened this issue Sep 20, 2016 · 14 comments
Closed

Doesn't compile on kernel 4.8.0-11-generic #42

andreyshade opened this issue Sep 20, 2016 · 14 comments

Comments

@andreyshade
Copy link

root@andreyshade-N751JK:/home/andreyshade/MT7630E# uname -a
Linux andreyshade-N751JK 4.8.0-11-generic #12-Ubuntu SMP Sat Sep 17 20:00:03 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
/home/andreyshade/MT7630E# sudo apt-get install build-essential
Reading package lists... Done
Building dependency tree       
Reading state information... Done
build-essential is already the newest version (12.1ubuntu2).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
root@andreyshade-N751JK:/home/andreyshade/MT7630E# ./install
make -C /lib/modules/`uname -r`/build M=/home/andreyshade/MT7630E/rt2x00 modules
make[1]: Entering directory '/usr/src/linux-headers-4.8.0-11-generic'
  CC [M]  /home/andreyshade/MT7630E/rt2x00/rt2800pci.o
/home/andreyshade/MT7630E/rt2x00/rt2800pci.c:1704:8: error: type defaults to ‘int’ in declaration of ‘DEFINE_PCI_DEVICE_TABLE’ [-Werror=implicit-int]
 static DEFINE_PCI_DEVICE_TABLE(rt2800pci_device_table) = {
        ^~~~~~~~~~~~~~~~~~~~~~~
/home/andreyshade/MT7630E/rt2x00/rt2800pci.c:1704:1: warning: parameter names (without types) in function declaration
 static DEFINE_PCI_DEVICE_TABLE(rt2800pci_device_table) = {
 ^~~~~~
/home/andreyshade/MT7630E/rt2x00/rt2800pci.c:1704:1: error: function ‘DEFINE_PCI_DEVICE_TABLE’ is initialized like a variable
/home/andreyshade/MT7630E/rt2x00/rt2800pci.c:1705:2: warning: braces around scalar initializer
  { PCI_DEVICE(0x14c3, 0x7630) },
  ^
/home/andreyshade/MT7630E/rt2x00/rt2800pci.c:1705:2: note: (near initialization for ‘DEFINE_PCI_DEVICE_TABLE’)
In file included from /home/andreyshade/MT7630E/rt2x00/rt2800pci.c:39:0:
./include/linux/pci.h:695:2: error: field name not in record or union initializer
  .vendor = (vend), .device = (dev), \
  ^
/home/andreyshade/MT7630E/rt2x00/rt2800pci.c:1705:4: note: in expansion of macro ‘PCI_DEVICE’
  { PCI_DEVICE(0x14c3, 0x7630) },
    ^~~~~~~~~~
./include/linux/pci.h:695:2: note: (near initialization for ‘DEFINE_PCI_DEVICE_TABLE’)
  .vendor = (vend), .device = (dev), \
  ^
/home/andreyshade/MT7630E/rt2x00/rt2800pci.c:1705:4: note: in expansion of macro ‘PCI_DEVICE’
  { PCI_DEVICE(0x14c3, 0x7630) },
    ^~~~~~~~~~
./include/linux/pci.h:695:12: error: invalid initializer
  .vendor = (vend), .device = (dev), \
            ^
/home/andreyshade/MT7630E/rt2x00/rt2800pci.c:1705:4: note: in expansion of macro ‘PCI_DEVICE’
  { PCI_DEVICE(0x14c3, 0x7630) },
    ^~~~~~~~~~
./include/linux/pci.h:695:12: note: (near initialization for ‘DEFINE_PCI_DEVICE_TABLE’)
  .vendor = (vend), .device = (dev), \
            ^
/home/andreyshade/MT7630E/rt2x00/rt2800pci.c:1705:4: note: in expansion of macro ‘PCI_DEVICE’
  { PCI_DEVICE(0x14c3, 0x7630) },
    ^~~~~~~~~~
./include/linux/pci.h:695:20: error: field name not in record or union initializer
  .vendor = (vend), .device = (dev), \
                    ^
/home/andreyshade/MT7630E/rt2x00/rt2800pci.c:1705:4: note: in expansion of macro ‘PCI_DEVICE’
  { PCI_DEVICE(0x14c3, 0x7630) },
    ^~~~~~~~~~
./include/linux/pci.h:695:20: note: (near initialization for ‘DEFINE_PCI_DEVICE_TABLE’)
  .vendor = (vend), .device = (dev), \
                    ^
/home/andreyshade/MT7630E/rt2x00/rt2800pci.c:1705:4: note: in expansion of macro ‘PCI_DEVICE’
  { PCI_DEVICE(0x14c3, 0x7630) },
    ^~~~~~~~~~
./include/linux/pci.h:695:30: warning: excess elements in scalar initializer
  .vendor = (vend), .device = (dev), \
                              ^
/home/andreyshade/MT7630E/rt2x00/rt2800pci.c:1705:4: note: in expansion of macro ‘PCI_DEVICE’
  { PCI_DEVICE(0x14c3, 0x7630) },
    ^~~~~~~~~~
./include/linux/pci.h:695:30: note: (near initialization for ‘DEFINE_PCI_DEVICE_TABLE’)
  .vendor = (vend), .device = (dev), \
                              ^
/home/andreyshade/MT7630E/rt2x00/rt2800pci.c:1705:4: note: in expansion of macro ‘PCI_DEVICE’
  { PCI_DEVICE(0x14c3, 0x7630) },
    ^~~~~~~~~~
./include/linux/pci.h:696:2: error: field name not in record or union initializer
  .subvendor = PCI_ANY_ID, .subdevice = PCI_ANY_ID
  ^
/home/andreyshade/MT7630E/rt2x00/rt2800pci.c:1705:4: note: in expansion of macro ‘PCI_DEVICE’
  { PCI_DEVICE(0x14c3, 0x7630) },
    ^~~~~~~~~~
./include/linux/pci.h:696:2: note: (near initialization for ‘DEFINE_PCI_DEVICE_TABLE’)
  .subvendor = PCI_ANY_ID, .subdevice = PCI_ANY_ID
  ^
/home/andreyshade/MT7630E/rt2x00/rt2800pci.c:1705:4: note: in expansion of macro ‘PCI_DEVICE’
  { PCI_DEVICE(0x14c3, 0x7630) },
    ^~~~~~~~~~
In file included from ./include/linux/of.h:22:0,
                 from ./include/net/dsa.h:18,
                 from ./include/linux/netdevice.h:44,
                 from ./include/linux/etherdevice.h:26,
                 from /home/andreyshade/MT7630E/rt2x00/rt2800pci.c:35:
./include/linux/mod_devicetable.h:16:20: warning: excess elements in scalar initializer
 #define PCI_ANY_ID (~0)
                    ^
./include/linux/pci.h:696:15: note: in expansion of macro ‘PCI_ANY_ID’
  .subvendor = PCI_ANY_ID, .subdevice = PCI_ANY_ID
               ^~~~~~~~~~
/home/andreyshade/MT7630E/rt2x00/rt2800pci.c:1705:4: note: in expansion of macro ‘PCI_DEVICE’
  { PCI_DEVICE(0x14c3, 0x7630) },
    ^~~~~~~~~~
./include/linux/mod_devicetable.h:16:20: note: (near initialization for ‘DEFINE_PCI_DEVICE_TABLE’)
 #define PCI_ANY_ID (~0)
                    ^
./include/linux/pci.h:696:15: note: in expansion of macro ‘PCI_ANY_ID’
  .subvendor = PCI_ANY_ID, .subdevice = PCI_ANY_ID
               ^~~~~~~~~~
/home/andreyshade/MT7630E/rt2x00/rt2800pci.c:1705:4: note: in expansion of macro ‘PCI_DEVICE’
  { PCI_DEVICE(0x14c3, 0x7630) },
    ^~~~~~~~~~
In file included from /home/andreyshade/MT7630E/rt2x00/rt2800pci.c:39:0:
./include/linux/pci.h:696:27: error: field name not in record or union initializer
  .subvendor = PCI_ANY_ID, .subdevice = PCI_ANY_ID
                           ^
/home/andreyshade/MT7630E/rt2x00/rt2800pci.c:1705:4: note: in expansion of macro ‘PCI_DEVICE’
  { PCI_DEVICE(0x14c3, 0x7630) },
    ^~~~~~~~~~
./include/linux/pci.h:696:27: note: (near initialization for ‘DEFINE_PCI_DEVICE_TABLE’)
  .subvendor = PCI_ANY_ID, .subdevice = PCI_ANY_ID
                           ^
/home/andreyshade/MT7630E/rt2x00/rt2800pci.c:1705:4: note: in expansion of macro ‘PCI_DEVICE’
  { PCI_DEVICE(0x14c3, 0x7630) },
    ^~~~~~~~~~
In file included from ./include/linux/of.h:22:0,
                 from ./include/net/dsa.h:18,
                 from ./include/linux/netdevice.h:44,
                 from ./include/linux/etherdevice.h:26,
                 from /home/andreyshade/MT7630E/rt2x00/rt2800pci.c:35:
./include/linux/mod_devicetable.h:16:20: warning: excess elements in scalar initializer
 #define PCI_ANY_ID (~0)
                    ^
./include/linux/pci.h:696:40: note: in expansion of macro ‘PCI_ANY_ID’
  .subvendor = PCI_ANY_ID, .subdevice = PCI_ANY_ID
                                        ^~~~~~~~~~
/home/andreyshade/MT7630E/rt2x00/rt2800pci.c:1705:4: note: in expansion of macro ‘PCI_DEVICE’
  { PCI_DEVICE(0x14c3, 0x7630) },
    ^~~~~~~~~~
./include/linux/mod_devicetable.h:16:20: note: (near initialization for ‘DEFINE_PCI_DEVICE_TABLE’)
 #define PCI_ANY_ID (~0)
                    ^
./include/linux/pci.h:696:40: note: in expansion of macro ‘PCI_ANY_ID’
  .subvendor = PCI_ANY_ID, .subdevice = PCI_ANY_ID
                                        ^~~~~~~~~~
/home/andreyshade/MT7630E/rt2x00/rt2800pci.c:1705:4: note: in expansion of macro ‘PCI_DEVICE’
  { PCI_DEVICE(0x14c3, 0x7630) },
    ^~~~~~~~~~
/home/andreyshade/MT7630E/rt2x00/rt2800pci.c:1706:2: warning: braces around scalar initializer
  { PCI_DEVICE(0x14c3, 0x7650) },
  ^
/home/andreyshade/MT7630E/rt2x00/rt2800pci.c:1706:2: note: (near initialization for ‘DEFINE_PCI_DEVICE_TABLE’)
In file included from /home/andreyshade/MT7630E/rt2x00/rt2800pci.c:39:0:
./include/linux/pci.h:695:2: error: field name not in record or union initializer
  .vendor = (vend), .device = (dev), \
  ^
/home/andreyshade/MT7630E/rt2x00/rt2800pci.c:1706:4: note: in expansion of macro ‘PCI_DEVICE’
  { PCI_DEVICE(0x14c3, 0x7650) },
    ^~~~~~~~~~
./include/linux/pci.h:695:2: note: (near initialization for ‘DEFINE_PCI_DEVICE_TABLE’)
  .vendor = (vend), .device = (dev), \
  ^
/home/andreyshade/MT7630E/rt2x00/rt2800pci.c:1706:4: note: in expansion of macro ‘PCI_DEVICE’
  { PCI_DEVICE(0x14c3, 0x7650) },
    ^~~~~~~~~~
./include/linux/pci.h:695:12: error: invalid initializer
  .vendor = (vend), .device = (dev), \
            ^
/home/andreyshade/MT7630E/rt2x00/rt2800pci.c:1706:4: note: in expansion of macro ‘PCI_DEVICE’
  { PCI_DEVICE(0x14c3, 0x7650) },
    ^~~~~~~~~~
./include/linux/pci.h:695:12: note: (near initialization for ‘DEFINE_PCI_DEVICE_TABLE’)
  .vendor = (vend), .device = (dev), \
            ^
/home/andreyshade/MT7630E/rt2x00/rt2800pci.c:1706:4: note: in expansion of macro ‘PCI_DEVICE’
  { PCI_DEVICE(0x14c3, 0x7650) },
    ^~~~~~~~~~
./include/linux/pci.h:695:20: error: field name not in record or union initializer
  .vendor = (vend), .device = (dev), \
                    ^
/home/andreyshade/MT7630E/rt2x00/rt2800pci.c:1706:4: note: in expansion of macro ‘PCI_DEVICE’
  { PCI_DEVICE(0x14c3, 0x7650) },
    ^~~~~~~~~~
./include/linux/pci.h:695:20: note: (near initialization for ‘DEFINE_PCI_DEVICE_TABLE’)
  .vendor = (vend), .device = (dev), \
                    ^
/home/andreyshade/MT7630E/rt2x00/rt2800pci.c:1706:4: note: in expansion of macro ‘PCI_DEVICE’
  { PCI_DEVICE(0x14c3, 0x7650) },
    ^~~~~~~~~~
./include/linux/pci.h:695:30: warning: excess elements in scalar initializer
  .vendor = (vend), .device = (dev), \
                              ^
/home/andreyshade/MT7630E/rt2x00/rt2800pci.c:1706:4: note: in expansion of macro ‘PCI_DEVICE’
  { PCI_DEVICE(0x14c3, 0x7650) },
    ^~~~~~~~~~
./include/linux/pci.h:695:30: note: (near initialization for ‘DEFINE_PCI_DEVICE_TABLE’)
  .vendor = (vend), .device = (dev), \
                              ^
/home/andreyshade/MT7630E/rt2x00/rt2800pci.c:1706:4: note: in expansion of macro ‘PCI_DEVICE’
  { PCI_DEVICE(0x14c3, 0x7650) },
    ^~~~~~~~~~
./include/linux/pci.h:696:2: error: field name not in record or union initializer
  .subvendor = PCI_ANY_ID, .subdevice = PCI_ANY_ID
  ^
/home/andreyshade/MT7630E/rt2x00/rt2800pci.c:1706:4: note: in expansion of macro ‘PCI_DEVICE’
  { PCI_DEVICE(0x14c3, 0x7650) },
    ^~~~~~~~~~
./include/linux/pci.h:696:2: note: (near initialization for ‘DEFINE_PCI_DEVICE_TABLE’)
  .subvendor = PCI_ANY_ID, .subdevice = PCI_ANY_ID
  ^
/home/andreyshade/MT7630E/rt2x00/rt2800pci.c:1706:4: note: in expansion of macro ‘PCI_DEVICE’
  { PCI_DEVICE(0x14c3, 0x7650) },
    ^~~~~~~~~~
In file included from ./include/linux/of.h:22:0,
                 from ./include/net/dsa.h:18,
                 from ./include/linux/netdevice.h:44,
                 from ./include/linux/etherdevice.h:26,
                 from /home/andreyshade/MT7630E/rt2x00/rt2800pci.c:35:
./include/linux/mod_devicetable.h:16:20: warning: excess elements in scalar initializer
 #define PCI_ANY_ID (~0)
                    ^
./include/linux/pci.h:696:15: note: in expansion of macro ‘PCI_ANY_ID’
  .subvendor = PCI_ANY_ID, .subdevice = PCI_ANY_ID
               ^~~~~~~~~~
/home/andreyshade/MT7630E/rt2x00/rt2800pci.c:1706:4: note: in expansion of macro ‘PCI_DEVICE’
  { PCI_DEVICE(0x14c3, 0x7650) },
    ^~~~~~~~~~
./include/linux/mod_devicetable.h:16:20: note: (near initialization for ‘DEFINE_PCI_DEVICE_TABLE’)
 #define PCI_ANY_ID (~0)
                    ^
./include/linux/pci.h:696:15: note: in expansion of macro ‘PCI_ANY_ID’
  .subvendor = PCI_ANY_ID, .subdevice = PCI_ANY_ID
               ^~~~~~~~~~
/home/andreyshade/MT7630E/rt2x00/rt2800pci.c:1706:4: note: in expansion of macro ‘PCI_DEVICE’
  { PCI_DEVICE(0x14c3, 0x7650) },
    ^~~~~~~~~~
In file included from /home/andreyshade/MT7630E/rt2x00/rt2800pci.c:39:0:
./include/linux/pci.h:696:27: error: field name not in record or union initializer
  .subvendor = PCI_ANY_ID, .subdevice = PCI_ANY_ID
                           ^
/home/andreyshade/MT7630E/rt2x00/rt2800pci.c:1706:4: note: in expansion of macro ‘PCI_DEVICE’
  { PCI_DEVICE(0x14c3, 0x7650) },
    ^~~~~~~~~~
./include/linux/pci.h:696:27: note: (near initialization for ‘DEFINE_PCI_DEVICE_TABLE’)
  .subvendor = PCI_ANY_ID, .subdevice = PCI_ANY_ID
                           ^
/home/andreyshade/MT7630E/rt2x00/rt2800pci.c:1706:4: note: in expansion of macro ‘PCI_DEVICE’
  { PCI_DEVICE(0x14c3, 0x7650) },
    ^~~~~~~~~~
In file included from ./include/linux/of.h:22:0,
                 from ./include/net/dsa.h:18,
                 from ./include/linux/netdevice.h:44,
                 from ./include/linux/etherdevice.h:26,
                 from /home/andreyshade/MT7630E/rt2x00/rt2800pci.c:35:
./include/linux/mod_devicetable.h:16:20: warning: excess elements in scalar initializer
 #define PCI_ANY_ID (~0)
                    ^
./include/linux/pci.h:696:40: note: in expansion of macro ‘PCI_ANY_ID’
  .subvendor = PCI_ANY_ID, .subdevice = PCI_ANY_ID
                                        ^~~~~~~~~~
/home/andreyshade/MT7630E/rt2x00/rt2800pci.c:1706:4: note: in expansion of macro ‘PCI_DEVICE’
  { PCI_DEVICE(0x14c3, 0x7650) },
    ^~~~~~~~~~
./include/linux/mod_devicetable.h:16:20: note: (near initialization for ‘DEFINE_PCI_DEVICE_TABLE’)
 #define PCI_ANY_ID (~0)
                    ^
./include/linux/pci.h:696:40: note: in expansion of macro ‘PCI_ANY_ID’
  .subvendor = PCI_ANY_ID, .subdevice = PCI_ANY_ID
                                        ^~~~~~~~~~
/home/andreyshade/MT7630E/rt2x00/rt2800pci.c:1706:4: note: in expansion of macro ‘PCI_DEVICE’
  { PCI_DEVICE(0x14c3, 0x7650) },
    ^~~~~~~~~~
/home/andreyshade/MT7630E/rt2x00/rt2800pci.c:1706:2: warning: excess elements in scalar initializer
  { PCI_DEVICE(0x14c3, 0x7650) },
  ^
/home/andreyshade/MT7630E/rt2x00/rt2800pci.c:1706:2: note: (near initialization for ‘DEFINE_PCI_DEVICE_TABLE’)
/home/andreyshade/MT7630E/rt2x00/rt2800pci.c:1707:2: warning: braces around scalar initializer
  { 0, }
  ^
/home/andreyshade/MT7630E/rt2x00/rt2800pci.c:1707:2: note: (near initialization for ‘DEFINE_PCI_DEVICE_TABLE’)
/home/andreyshade/MT7630E/rt2x00/rt2800pci.c:1707:4: error: invalid initializer
  { 0, }
    ^
/home/andreyshade/MT7630E/rt2x00/rt2800pci.c:1707:4: note: (near initialization for ‘DEFINE_PCI_DEVICE_TABLE’)
/home/andreyshade/MT7630E/rt2x00/rt2800pci.c:1707:2: warning: excess elements in scalar initializer
  { 0, }
  ^
/home/andreyshade/MT7630E/rt2x00/rt2800pci.c:1707:2: note: (near initialization for ‘DEFINE_PCI_DEVICE_TABLE’)
In file included from ./include/linux/phy.h:24:0,
                 from ./include/net/dsa.h:19,
                 from ./include/linux/netdevice.h:44,
                 from ./include/linux/etherdevice.h:26,
                 from /home/andreyshade/MT7630E/rt2x00/rt2800pci.c:35:
/home/andreyshade/MT7630E/rt2x00/rt2800pci.c:1717:26: error: ‘rt2800pci_device_table’ undeclared here (not in a function)
 MODULE_DEVICE_TABLE(pci, rt2800pci_device_table);
                          ^
./include/linux/module.h:213:21: note: in definition of macro ‘MODULE_DEVICE_TABLE’
 extern const typeof(name) __mod_##type##__##name##_device_table  \
                     ^~~~
./include/linux/module.h:213:27: error: ‘__mod_pci__rt2800pci_device_table_device_table’ aliased to undefined symbol ‘rt2800pci_device_table’
 extern const typeof(name) __mod_##type##__##name##_device_table  \
                           ^
/home/andreyshade/MT7630E/rt2x00/rt2800pci.c:1717:1: note: in expansion of macro ‘MODULE_DEVICE_TABLE’
 MODULE_DEVICE_TABLE(pci, rt2800pci_device_table);
 ^~~~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
scripts/Makefile.build:289: recipe for target '/home/andreyshade/MT7630E/rt2x00/rt2800pci.o' failed
make[2]: *** [/home/andreyshade/MT7630E/rt2x00/rt2800pci.o] Error 1
Makefile:1489: recipe for target '_module_/home/andreyshade/MT7630E/rt2x00' failed
make[1]: *** [_module_/home/andreyshade/MT7630E/rt2x00] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-4.8.0-11-generic'
Makefile:8: recipe for target 'all' failed
make: *** [all] Error 2
@j1cs
Copy link

j1cs commented Sep 20, 2016

Try to install: sudo apt-get install linux-headers-$(uname -r)

@andreyshade
Copy link
Author

andreyshade commented Sep 20, 2016

root@andreyshade-N751JK:/home/andreyshade/MT7630E-master# sudo apt-get install linux-headers-$(uname -r)
Reading package lists... Done
Building dependency tree       
Reading state information... Done
linux-headers-4.8.0-11-generic is already the newest version (4.8.0-11.12).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

./install return the same result.

@neurobin
Copy link
Owner

Give me the output of these commands:

gcc --version
apt search libc6

@andreyshade
Copy link
Author

andreyshade@andreyshade-N751JK:~$ gcc --version
gcc (Ubuntu 6.2.0-3ubuntu15) 6.2.0 20160914
Copyright (C) 2016 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
andreyshade@andreyshade-N751JK:~$ apt search libc6
Sorting... Done
Full Text Search... Done
debian-policy/yakkety,yakkety 3.9.8.0 all
  Debian Policy Manual and related documents

libc6/yakkety,now 2.24-0ubuntu1 amd64 [installed]
  GNU C Library: Shared libraries

libc6-amd64/yakkety 2.24-0ubuntu1 i386
  GNU C Library: 64bit Shared libraries for AMD64

libc6-arm64-cross/yakkety,yakkety 2.24-0ubuntu1cross1 all
  GNU C Library: Shared libraries (for cross-compiling)

libc6-armel-armhf-cross/yakkety,yakkety 2.24-0ubuntu1cross1 all
  Dummy package to get libc6:armel installed

libc6-armel-cross/yakkety,yakkety 2.24-0ubuntu1cross1 all
  GNU C Library: Shared libraries (for cross-compiling)

libc6-armhf-armel-cross/yakkety,yakkety 2.24-0ubuntu1cross1 all
  Dummy package to get libc6:armhf installed

libc6-armhf-cross/yakkety,yakkety 2.24-0ubuntu1cross1 all
  GNU C Library: Shared libraries (for cross-compiling)

libc6-dbg/yakkety,now 2.24-0ubuntu1 amd64 [installed]
  GNU C Library: detached debugging symbols

libc6-dbg-arm64-cross/yakkety,yakkety 2.24-0ubuntu1cross1 all
  GNU C Library: detached debugging symbols (for cross-compiling)

libc6-dbg-armel-cross/yakkety,yakkety 2.24-0ubuntu1cross1 all
  GNU C Library: detached debugging symbols (for cross-compiling)

libc6-dbg-armhf-cross/yakkety,yakkety 2.24-0ubuntu1cross1 all
  GNU C Library: detached debugging symbols (for cross-compiling)

libc6-dbg-hppa-cross/yakkety,yakkety 2.24-0ubuntu1cross1 all
  GNU C Library: detached debugging symbols (for cross-compiling)

libc6-dbg-m68k-cross/yakkety,yakkety 2.24-0ubuntu1cross1 all
  GNU C Library: detached debugging symbols (for cross-compiling)

libc6-dbg-mips-cross/yakkety,yakkety 2.24-0ubuntu1cross1 all
  GNU C Library: detached debugging symbols (for cross-compiling)

libc6-dbg-mips64-cross/yakkety,yakkety 2.24-0ubuntu1cross1 all
  GNU C Library: detached debugging symbols (for cross-compiling)

libc6-dbg-mips64el-cross/yakkety,yakkety 2.24-0ubuntu1cross1 all
  GNU C Library: detached debugging symbols (for cross-compiling)

libc6-dbg-mipsel-cross/yakkety,yakkety 2.24-0ubuntu1cross1 all
  GNU C Library: detached debugging symbols (for cross-compiling)

libc6-dbg-powerpc-cross/yakkety,yakkety 2.24-0ubuntu1cross1 all
  GNU C Library: detached debugging symbols (for cross-compiling)

libc6-dbg-powerpcspe-cross/yakkety,yakkety 2.24-0ubuntu1cross1 all
  GNU C Library: detached debugging symbols (for cross-compiling)

libc6-dbg-ppc64-cross/yakkety,yakkety 2.24-0ubuntu1cross1 all
  GNU C Library: detached debugging symbols (for cross-compiling)

libc6-dbg-ppc64el-cross/yakkety,yakkety 2.24-0ubuntu1cross1 all
  GNU C Library: detached debugging symbols (for cross-compiling)

libc6-dbg-s390x-cross/yakkety,yakkety 2.24-0ubuntu1cross1 all
  GNU C Library: detached debugging symbols (for cross-compiling)

libc6-dbg-sh4-cross/yakkety,yakkety 2.24-0ubuntu1cross1 all
  GNU C Library: detached debugging symbols (for cross-compiling)

libc6-dbg-sparc64-cross/yakkety,yakkety 2.24-0ubuntu1cross1 all
  GNU C Library: detached debugging symbols (for cross-compiling)

libc6-dev/yakkety,now 2.24-0ubuntu1 amd64 [installed]
  GNU C Library: Development Libraries and Header Files

libc6-dev-amd64/yakkety 2.24-0ubuntu1 i386
  GNU C Library: 64bit Development Libraries for AMD64

libc6-dev-arm64-cross/yakkety,yakkety 2.24-0ubuntu1cross1 all
  GNU C Library: Development Libraries and Header Files (for cross-compiling)

libc6-dev-armel-armhf-cross/yakkety,yakkety 2.24-0ubuntu1cross1 all
  Dummy package to get libc6-dev:armel installed

libc6-dev-armel-cross/yakkety,yakkety 2.24-0ubuntu1cross1 all
  GNU C Library: Development Libraries and Header Files (for cross-compiling)

libc6-dev-armhf-armel-cross/yakkety,yakkety 2.24-0ubuntu1cross1 all
  Dummy package to get libc6-dev:armhf installed

libc6-dev-armhf-cross/yakkety,yakkety 2.24-0ubuntu1cross1 all
  GNU C Library: Development Libraries and Header Files (for cross-compiling)

libc6-dev-hppa-cross/yakkety,yakkety 2.24-0ubuntu1cross1 all
  GNU C Library: Development Libraries and Header Files (for cross-compiling)

libc6-dev-i386/yakkety 2.24-0ubuntu1 amd64
  GNU C Library: 32-bit development libraries for AMD64

libc6-dev-m68k-cross/yakkety,yakkety 2.24-0ubuntu1cross1 all
  GNU C Library: Development Libraries and Header Files (for cross-compiling)

libc6-dev-mips-cross/yakkety,yakkety 2.24-0ubuntu1cross1 all
  GNU C Library: Development Libraries and Header Files (for cross-compiling)

libc6-dev-mips32-mips64-cross/yakkety,yakkety 2.24-0ubuntu1cross1 all
  GNU C Library: o32 Development Libraries for MIPS (for cross-compiling)

libc6-dev-mips32-mips64el-cross/yakkety,yakkety 2.24-0ubuntu1cross1 all
  GNU C Library: o32 Development Libraries for MIPS (for cross-compiling)

libc6-dev-mips64-cross/yakkety,yakkety 2.24-0ubuntu1cross1 all
  GNU C Library: Development Libraries and Header Files (for cross-compiling)

libc6-dev-mips64-mips-cross/yakkety,yakkety 2.24-0ubuntu1cross1 all
  GNU C Library: 64bit Development Libraries for MIPS64 (for cross-compiling)

libc6-dev-mips64-mipsel-cross/yakkety,yakkety 2.24-0ubuntu1cross1 all
  GNU C Library: 64bit Development Libraries for MIPS64 (for cross-compiling)

libc6-dev-mips64el-cross/yakkety,yakkety 2.24-0ubuntu1cross1 all
  GNU C Library: Development Libraries and Header Files (for cross-compiling)

libc6-dev-mipsel-cross/yakkety,yakkety 2.24-0ubuntu1cross1 all
  GNU C Library: Development Libraries and Header Files (for cross-compiling)

libc6-dev-mipsn32-mips-cross/yakkety,yakkety 2.24-0ubuntu1cross1 all
  GNU C Library: n32 Development Libraries for MIPS64 (for cross-compiling)

libc6-dev-mipsn32-mips64-cross/yakkety,yakkety 2.24-0ubuntu1cross1 all
  GNU C Library: n32 Development Libraries for MIPS64 (for cross-compiling)

libc6-dev-mipsn32-mips64el-cross/yakkety,yakkety 2.24-0ubuntu1cross1 all
  GNU C Library: n32 Development Libraries for MIPS64 (for cross-compiling)

libc6-dev-mipsn32-mipsel-cross/yakkety,yakkety 2.24-0ubuntu1cross1 all
  GNU C Library: n32 Development Libraries for MIPS64 (for cross-compiling)

libc6-dev-powerpc-cross/yakkety,yakkety 2.24-0ubuntu1cross1 all
  GNU C Library: Development Libraries and Header Files (for cross-compiling)

libc6-dev-powerpc-ppc64-cross/yakkety,yakkety 2.24-0ubuntu1cross1 all
  GNU C Library: 32bit powerpc development libraries for ppc64 (for cross-compiling)

libc6-dev-powerpcspe-cross/yakkety,yakkety 2.24-0ubuntu1cross1 all
  GNU C Library: Development Libraries and Header Files (for cross-compiling)

libc6-dev-ppc64-cross/yakkety,yakkety 2.24-0ubuntu1cross1 all
  GNU C Library: Development Libraries and Header Files (for cross-compiling)

libc6-dev-ppc64-powerpc-cross/yakkety,yakkety 2.24-0ubuntu1cross1 all
  GNU C Library: 64bit Development Libraries for PowerPC64 (for cross-compiling)

libc6-dev-ppc64el-cross/yakkety,yakkety 2.24-0ubuntu1cross1 all
  GNU C Library: Development Libraries and Header Files (for cross-compiling)

libc6-dev-s390-s390x-cross/yakkety,yakkety 2.24-0ubuntu1cross1 all
  GNU C Library: 32bit Development Libraries for IBM zSeries (for cross-compiling)

libc6-dev-s390x-cross/yakkety,yakkety 2.24-0ubuntu1cross1 all
  GNU C Library: Development Libraries and Header Files (for cross-compiling)

libc6-dev-sh4-cross/yakkety,yakkety 2.24-0ubuntu1cross1 all
  GNU C Library: Development Libraries and Header Files (for cross-compiling)

libc6-dev-sparc-sparc64-cross/yakkety,yakkety 2.24-0ubuntu1cross1 all
  GNU C Library: 32bit Development Libraries for SPARC (for cross-compiling)

libc6-dev-sparc64-cross/yakkety,yakkety 2.24-0ubuntu1cross1 all
  GNU C Library: Development Libraries and Header Files (for cross-compiling)

libc6-dev-x32/yakkety 2.24-0ubuntu1 amd64
  GNU C Library: X32 ABI Development Libraries for AMD64

libc6-hppa-cross/yakkety,yakkety 2.24-0ubuntu1cross1 all
  GNU C Library: Shared libraries (for cross-compiling)

libc6-i386/yakkety,now 2.24-0ubuntu1 amd64 [installed,automatic]
  GNU C Library: 32-bit shared libraries for AMD64

libc6-m68k-cross/yakkety,yakkety 2.24-0ubuntu1cross1 all
  GNU C Library: Shared libraries (for cross-compiling)

libc6-mips-cross/yakkety,yakkety 2.24-0ubuntu1cross1 all
  GNU C Library: Shared libraries (for cross-compiling)

libc6-mips32-mips64-cross/yakkety,yakkety 2.24-0ubuntu1cross1 all
  GNU C Library: o32 Shared libraries for MIPS (for cross-compiling)

libc6-mips32-mips64el-cross/yakkety,yakkety 2.24-0ubuntu1cross1 all
  GNU C Library: o32 Shared libraries for MIPS (for cross-compiling)

libc6-mips64-cross/yakkety,yakkety 2.24-0ubuntu1cross1 all
  GNU C Library: Shared libraries (for cross-compiling)

libc6-mips64-mips-cross/yakkety,yakkety 2.24-0ubuntu1cross1 all
  GNU C Library: 64bit Shared libraries for MIPS64 (for cross-compiling)

libc6-mips64-mipsel-cross/yakkety,yakkety 2.24-0ubuntu1cross1 all
  GNU C Library: 64bit Shared libraries for MIPS64 (for cross-compiling)

libc6-mips64el-cross/yakkety,yakkety 2.24-0ubuntu1cross1 all
  GNU C Library: Shared libraries (for cross-compiling)

libc6-mipsel-cross/yakkety,yakkety 2.24-0ubuntu1cross1 all
  GNU C Library: Shared libraries (for cross-compiling)

libc6-mipsn32-mips-cross/yakkety,yakkety 2.24-0ubuntu1cross1 all
  GNU C Library: n32 Shared libraries for MIPS64 (for cross-compiling)

libc6-mipsn32-mips64-cross/yakkety,yakkety 2.24-0ubuntu1cross1 all
  GNU C Library: n32 Shared libraries for MIPS64 (for cross-compiling)

libc6-mipsn32-mips64el-cross/yakkety,yakkety 2.24-0ubuntu1cross1 all
  GNU C Library: n32 Shared libraries for MIPS64 (for cross-compiling)

libc6-mipsn32-mipsel-cross/yakkety,yakkety 2.24-0ubuntu1cross1 all
  GNU C Library: n32 Shared libraries for MIPS64 (for cross-compiling)

libc6-pic/yakkety 2.24-0ubuntu1 amd64
  GNU C Library: PIC archive library

libc6-powerpc-cross/yakkety,yakkety 2.24-0ubuntu1cross1 all
  GNU C Library: Shared libraries (for cross-compiling)

libc6-powerpc-ppc64-cross/yakkety,yakkety 2.24-0ubuntu1cross1 all
  GNU C Library: 32bit powerpc shared libraries for ppc64 (for cross-compiling)

libc6-powerpcspe-cross/yakkety,yakkety 2.24-0ubuntu1cross1 all
  GNU C Library: Shared libraries (for cross-compiling)

libc6-ppc64-cross/yakkety,yakkety 2.24-0ubuntu1cross1 all
  GNU C Library: Shared libraries (for cross-compiling)

libc6-ppc64-powerpc-cross/yakkety,yakkety 2.24-0ubuntu1cross1 all
  GNU C Library: 64bit Shared libraries for PowerPC64 (for cross-compiling)

libc6-ppc64el-cross/yakkety,yakkety 2.24-0ubuntu1cross1 all
  GNU C Library: Shared libraries (for cross-compiling)

libc6-s390-s390x-cross/yakkety,yakkety 2.24-0ubuntu1cross1 all
  GNU C Library: 32bit Shared libraries for IBM zSeries (for cross-compiling)

libc6-s390x-cross/yakkety,yakkety 2.24-0ubuntu1cross1 all
  GNU C Library: Shared libraries (for cross-compiling)

libc6-sh4-cross/yakkety,yakkety 2.24-0ubuntu1cross1 all
  GNU C Library: Shared libraries (for cross-compiling)

libc6-sparc-sparc64-cross/yakkety,yakkety 2.24-0ubuntu1cross1 all
  GNU C Library: 32bit Shared libraries for SPARC (for cross-compiling)

libc6-sparc64-cross/yakkety,yakkety 2.24-0ubuntu1cross1 all
  GNU C Library: Shared libraries (for cross-compiling)

libc6-x32/yakkety 2.24-0ubuntu1 amd64
  GNU C Library: X32 ABI Shared libraries for AMD64

libc6.1-alpha-cross/yakkety,yakkety 2.24-0ubuntu1cross1 all
  GNU C Library: Shared libraries (for cross-compiling)

libc6.1-dbg-alpha-cross/yakkety,yakkety 2.24-0ubuntu1cross1 all
  GNU C Library: detached debugging symbols (for cross-compiling)

libc6.1-dev-alpha-cross/yakkety,yakkety 2.24-0ubuntu1cross1 all
  GNU C Library: Development Libraries and Header Files (for cross-compiling)

libcompfaceg1/yakkety 1:1.5.2-5 amd64
  Compress/decompress images for mailheaders, libc6 runtime

libcompfaceg1-dev/yakkety 1:1.5.2-5 amd64
  Compress/decompress images for mailheaders, libc6 devel

libtext-iconv-perl/yakkety,now 1.7-5build4 amd64 [installed]
  converts between character sets in Perl

manpages-ja-dev/yakkety,yakkety 0.5.0.0.20140515+dfsg-2 all
  Japanese version of the manual pages (for developers)

manpages-pt-dev/yakkety,yakkety 20040726-4 all
  Portuguese Versions of the Manual Pages (dev sections)

ubuntu-policy/yakkety,yakkety 3.8.2.0ubuntu2 all
  Debian Policy Manual and related documents

@neurobin
Copy link
Owner

neurobin commented Sep 21, 2016

How about reinstalling gcc:

sudo apt-get install --reinstall gcc libc6-dev

Then try a clean copy of the driver (re-downloaded)

@andreyshade
Copy link
Author

I have tried this just now, but it does not take effect.

@Pilleo
Copy link

Pilleo commented Sep 23, 2016

same here. Using last kernel from ubuntu 16.10

@hachama
Copy link

hachama commented Oct 3, 2016

Same problem with the latest ubuntu 16.10. Did anybody manage to solve it?

@sipertruk
Copy link
Contributor

sipertruk commented Oct 3, 2016

DEFINE_PCI_DEVICE_TABLE is deprecated. Line 1704 of rt2800pci.c.

-static DEFINE_PCI_DEVICE_TABLE(rt2800pci_device_table) = {
+static const struct pci_device_id rt2800pci_device_table[] = {

(fixed)

@Pilleo
Copy link

Pilleo commented Oct 3, 2016

@sipertruk
it works with a "," like that:
static const struct pci_device_id _table , rt2800pci_device_table[] = {
Thank you!

@sipertruk
Copy link
Contributor

sipertruk commented Oct 3, 2016

My bad something weird happened as I copied the line. Now it should work.

@hachama
Copy link

hachama commented Oct 3, 2016

@sipertruk @Pilleo
Thanks guys, it worked for me!

@neurobin
Copy link
Owner

neurobin commented Oct 4, 2016

@sipertruk
Can you do a pull request?
should be like this:

#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 8, 0)
static const struct pci_device_id rt2800pci_device_table[] = {
#else
static DEFINE_PCI_DEVICE_TABLE(rt2800pci_device_table) = {
#endif

I would appreciate if you would also update the version if you have some spare time :D
been very busy these days...

@sipertruk
Copy link
Contributor

DEFINE_PCI_DEVICE_TABLE is the following macro that apparently have been deleted in 4.8.
http://lxr.free-electrons.com/source/include/linux/pci.h#L685

#define DEFINE_PCI_DEVICE_TABLE(_table) \
     const struct pci_device_id _table[]

So the posted fix will work for previous kernel versions.
Pull request sent, version 2.0.8.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants