With previous versions of gcc Install Packages
It seems that both gcc-4.3 and gcc-4.4 are installed after install build-essential. However, we can explicitly install the following packages: sudo apt-get install gcc-4.3 gcc-4.4 g++-4.3 g++-4.4 Install Alternatives Symbolic links cc and c++ are installed by default. We will install symbol links for gcc and g++, then link cc and c++ to gcc and g++ respectively. sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.3 10 sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.4 20 sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-4.3 10 sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-4.4 20 sudo update-alternatives --install /usr/bin/cc cc /usr/bin/gcc 30 sudo update-alternatives --set cc /usr/bin/gcc sudo update-alternatives --install /usr/bin/c++ c++ /usr/bin/g++ 30 sudo update-alternatives --set c++ /usr/bin/g++ Configure Alternatives The last step is configuring the default commands for gcc, g++. It's easy to switch between 4.3 and 4.4 interactively: sudo update-alternatives --config gcc sudo update-alternatives --config g++ So to summarise the solution in case you have the same problem: 1) Check https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1049466 to see whether there is now a better solution. 2) If not a) Install kernel 3.6.3 by following http://www.upubuntu.com/2012/10/install-linux-kernel-363-in-ubuntu.html b) Get the firmware by git clone git://git.kernel.org/pub/scm/linux/kernel/git/dwmw2/linux-firmware.git cd cd linux-firmware sudo cp rt3290.bin /lib/firmware Now how do I mark this thread as solved? Reply With Quote Day Saturday, 27 Kwietnia 2013 10:07 Rowan Berkeley <rowan.berke...@gmail.com> wrote > This is what happens when I try to 'make' the wireless driver. > > root@rowan-Compaq:/home/rowan/DPO_RT3290_LinuxSTA_V2600_20120508# make > make -C tools > make[1]: Entering directory > `/home/rowan/DPO_RT3290_LinuxSTA_V2600_20120508/tools' > gcc -g bin2h.c -o bin2h > make[1]: Leaving directory > `/home/rowan/DPO_RT3290_LinuxSTA_V2600_20120508/tools' > /home/rowan/DPO_RT3290_LinuxSTA_V2600_20120508/tools/bin2h > cp -f os/linux/Makefile.6 > /home/rowan/DPO_RT3290_LinuxSTA_V2600_20120508/os/linux/Makefile > make -C /lib/modules/3.8.0-19-generic/build > SUBDIRS=/home/rowan/DPO_RT3290_LinuxSTA_V2600_20120508/os/linux modules > make[1]: Entering directory `/usr/src/linux-headers-3.8.0-19-generic' > CC [M] > /home/rowan/DPO_RT3290_LinuxSTA_V2600_20120508/os/linux/../../common/rtmp_mcu.o > /home/rowan/DPO_RT3290_LinuxSTA_V2600_20120508/os/linux/../../common/rtmp_mcu.c: > > In function RtmpAsicSendCommandToMcu: > /home/rowan/DPO_RT3290_LinuxSTA_V2600_20120508/os/linux/../../common/rtmp_mcu.c:464:8: > > warning: unused variable offset [-Wunused-variable] > /home/rowan/DPO_RT3290_LinuxSTA_V2600_20120508/os/linux/../../common/rtmp_mcu.c:463:8: > > warning: unused variable Configuration [-Wunused-variable] > CC [M] > /home/rowan/DPO_RT3290_LinuxSTA_V2600_20120508/os/linux/../../os/linux/pci_main_dev.o > /home/rowan/DPO_RT3290_LinuxSTA_V2600_20120508/os/linux/../../os/linux/pci_main_dev.c:43:23: > > error: expected =, ,, ;, asm or __attribute__ before > rt2860_remove_one > /home/rowan/DPO_RT3290_LinuxSTA_V2600_20120508/os/linux/../../os/linux/pci_main_dev.c:44:22: > > error: expected =, ,, ;, asm or __attribute__ before > rt2860_probe > /home/rowan/DPO_RT3290_LinuxSTA_V2600_20120508/os/linux/../../os/linux/pci_main_dev.c:63:46: > > error: expected =, ,, ;, asm or __attribute__ before > __devinitdata > /home/rowan/DPO_RT3290_LinuxSTA_V2600_20120508/os/linux/../../os/linux/pci_main_dev.c:85:17: > > error: rt2860_pci_tbl undeclared here (not in a function) > /home/rowan/DPO_RT3290_LinuxSTA_V2600_20120508/os/linux/../../os/linux/pci_main_dev.c:86:17: > > error: rt2860_probe undeclared here (not in a function) > /home/rowan/DPO_RT3290_LinuxSTA_V2600_20120508/os/linux/../../os/linux/pci_main_dev.c:88:5: > > error: implicit declaration of function __devexit_p > [-Werror=implicit-function-declaration] > /home/rowan/DPO_RT3290_LinuxSTA_V2600_20120508/os/linux/../../os/linux/pci_main_dev.c:88:29: > > error: rt2860_remove_one undeclared here (not in a function) > /home/rowan/DPO_RT3290_LinuxSTA_V2600_20120508/os/linux/../../os/linux/pci_main_dev.c:292:24: > > error: expected =, ,, ;, asm or __attribute__ before > rt2860_probe > /home/rowan/DPO_RT3290_LinuxSTA_V2600_20120508/os/linux/../../os/linux/pci_main_dev.c:463:23: > > error: expected =, ,, ;, asm or __attribute__ before > rt2860_remove_one > /home/rowan/DPO_RT3290_LinuxSTA_V2600_20120508/os/linux/../../os/linux/pci_main_dev.c:71:1: > > error: __mod_pci_device_table aliased to undefined symbol rt2860_pci_tbl > cc1: some warnings being treated as errors > make[2]: *** > [/home/rowan/DPO_RT3290_LinuxSTA_V2600_20120508/os/linux/../../os/linux/pci_main_dev.o] > > Error 1 > make[1]: *** > [_module_/home/rowan/DPO_RT3290_LinuxSTA_V2600_20120508/os/linux] Error 2 > make[1]: Leaving directory `/usr/src/linux-headers-3.8.0-19-generic' > make: *** [LINUX] Error 2 > > -- > ubuntu-uk@lists.ubuntu.com > https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk > https://wiki.ubuntu.com/UKTeam/ -- ubuntu-uk@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk https://wiki.ubuntu.com/UKTeam/