Fórum Debian

Versão Completa: Não consigo compilar
Você está atualmente visualizando uma versão simplificada do conteúdo. Visualizar a versão completa com formatação.
Estou tentando compilar o programa 'compat-wireless', necessário para o funcionamento do meu adaptador USB wireless.

Quando tento compilar, a seguinte mensagem aparece:

Código:
./scripts/gen-compat-autoconf.sh config.mk > include/linux/compat_autoconf.h
    make -C /lib/modules/2.6.32-5-686/build M=/home/rafael/Downloads/compat-wireless-2011-08-27 modules
    make[1]: Entrando no diretório `/usr/src/linux-headers-2.6.32-5-686'
      LD      /home/rafael/Downloads/compat-wireless-2011-08-27/compat/built-in.o
      CC [M]  /home/rafael/Downloads/compat-wireless-2011-08-27/compat/main.o
    In file included from /home/rafael/Downloads/compat-wireless-2011-08-27/include/linux/compat-2.6.h:28,
                     from <command-line>:0:
    /home/rafael/Downloads/compat-wireless-2011-08-27/include/linux/compat-2.6.33.h:58: error: redefinition of ‘netdev_alloc_skb_ip_align’
    /usr/src/linux-headers-2.6.32-5-common/include/linux/skbuff.h:1494: error: previous definition of ‘netdev_alloc_skb_ip_align’ was here
    In file included from /home/rafael/Downloads/compat-wireless-2011-08-27/include/linux/compat-2.6.h:29,
                     from <command-line>:0:
    /home/rafael/Downloads/compat-wireless-2011-08-27/include/linux/compat-2.6.34.h:223:1: warning: "DEFINE_DMA_UNMAP_ADDR" redefined
    In file included from /usr/src/linux-headers-2.6.32-5-common/include/linux/dmaengine.h:26,
                     from /usr/src/linux-headers-2.6.32-5-common/include/linux/skbuff.h:30,
                     from /usr/src/linux-headers-2.6.32-5-common/include/linux/if_ether.h:124,
                     from /usr/src/linux-headers-2.6.32-5-common/include/linux/netdevice.h:29,
                     from /home/rafael/Downloads/compat-wireless-2011-08-27/include/linux/compat-2.6.29.h:5,
                     from /home/rafael/Downloads/compat-wireless-2011-08-27/include/linux/compat-2.6.h:24,
                     from <command-line>:0:
    /usr/src/linux-headers-2.6.32-5-common/include/linux/dma-mapping.h:243:1: warning: this is the location of the previous definition
    In file included from /home/rafael/Downloads/compat-wireless-2011-08-27/include/linux/compat-2.6.h:29,
                     from <command-line>:0:
    /home/rafael/Downloads/compat-wireless-2011-08-27/include/linux/compat-2.6.34.h:224:1: warning: "DEFINE_DMA_UNMAP_LEN" redefined
    In file included from /usr/src/linux-headers-2.6.32-5-common/include/linux/dmaengine.h:26,
                     from /usr/src/linux-headers-2.6.32-5-common/include/linux/skbuff.h:30,
                     from /usr/src/linux-headers-2.6.32-5-common/include/linux/if_ether.h:124,
                     from /usr/src/linux-headers-2.6.32-5-common/include/linux/netdevice.h:29,
                     from /home/rafael/Downloads/compat-wireless-2011-08-27/include/linux/compat-2.6.29.h:5,
                     from /home/rafael/Downloads/compat-wireless-2011-08-27/include/linux/compat-2.6.h:24,
                     from <command-line>:0:
    /usr/src/linux-headers-2.6.32-5-common/include/linux/dma-mapping.h:244:1: warning: this is the location of the previous definition
    In file included from /home/rafael/Downloads/compat-wireless-2011-08-27/include/linux/compat-2.6.h:29,
                     from <command-line>:0:
    /home/rafael/Downloads/compat-wireless-2011-08-27/include/linux/compat-2.6.34.h:225:1: warning: "dma_unmap_addr" redefined
    In file included from /usr/src/linux-headers-2.6.32-5-common/include/linux/dmaengine.h:26,
                     from /usr/src/linux-headers-2.6.32-5-common/include/linux/skbuff.h:30,
                     from /usr/src/linux-headers-2.6.32-5-common/include/linux/if_ether.h:124,
                     from /usr/src/linux-headers-2.6.32-5-common/include/linux/netdevice.h:29,
                     from /home/rafael/Downloads/compat-wireless-2011-08-27/include/linux/compat-2.6.29.h:5,
                     from /home/rafael/Downloads/compat-wireless-2011-08-27/include/linux/compat-2.6.h:24,
                     from <command-line>:0:
    /usr/src/linux-headers-2.6.32-5-common/include/linux/dma-mapping.h:245:1: warning: this is the location of the previous definition
    In file included from /home/rafael/Downloads/compat-wireless-2011-08-27/include/linux/compat-2.6.h:29,
                     from <command-line>:0:
    /home/rafael/Downloads/compat-wireless-2011-08-27/include/linux/compat-2.6.34.h:226:1: warning: "dma_unmap_addr_set" redefined
    In file included from /usr/src/linux-headers-2.6.32-5-common/include/linux/dmaengine.h:26,
                     from /usr/src/linux-headers-2.6.32-5-common/include/linux/skbuff.h:30,
                     from /usr/src/linux-headers-2.6.32-5-common/include/linux/if_ether.h:124,
                     from /usr/src/linux-headers-2.6.32-5-common/include/linux/netdevice.h:29,
                     from /home/rafael/Downloads/compat-wireless-2011-08-27/include/linux/compat-2.6.29.h:5,
                     from /home/rafael/Downloads/compat-wireless-2011-08-27/include/linux/compat-2.6.h:24,
                     from <command-line>:0:
    /usr/src/linux-headers-2.6.32-5-common/include/linux/dma-mapping.h:246:1: warning: this is the location of the previous definition
    In file included from /home/rafael/Downloads/compat-wireless-2011-08-27/include/linux/compat-2.6.h:29,
                     from <command-line>:0:
    /home/rafael/Downloads/compat-wireless-2011-08-27/include/linux/compat-2.6.34.h:227:1: warning: "dma_unmap_len" redefined
    In file included from /usr/src/linux-headers-2.6.32-5-common/include/linux/dmaengine.h:26,
                     from /usr/src/linux-headers-2.6.32-5-common/include/linux/skbuff.h:30,
                     from /usr/src/linux-headers-2.6.32-5-common/include/linux/if_ether.h:124,
                     from /usr/src/linux-headers-2.6.32-5-common/include/linux/netdevice.h:29,
                     from /home/rafael/Downloads/compat-wireless-2011-08-27/include/linux/compat-2.6.29.h:5,
                     from /home/rafael/Downloads/compat-wireless-2011-08-27/include/linux/compat-2.6.h:24,
                     from <command-line>:0:
    /usr/src/linux-headers-2.6.32-5-common/include/linux/dma-mapping.h:247:1: warning: this is the location of the previous definition
    In file included from /home/rafael/Downloads/compat-wireless-2011-08-27/include/linux/compat-2.6.h:29,
                     from <command-line>:0:
    /home/rafael/Downloads/compat-wireless-2011-08-27/include/linux/compat-2.6.34.h:228:1: warning: "dma_unmap_len_set" redefined
    In file included from /usr/src/linux-headers-2.6.32-5-common/include/linux/dmaengine.h:26,
                     from /usr/src/linux-headers-2.6.32-5-common/include/linux/skbuff.h:30,
                     from /usr/src/linux-headers-2.6.32-5-common/include/linux/if_ether.h:124,
                     from /usr/src/linux-headers-2.6.32-5-common/include/linux/netdevice.h:29,
                     from /home/rafael/Downloads/compat-wireless-2011-08-27/include/linux/compat-2.6.29.h:5,
                     from /home/rafael/Downloads/compat-wireless-2011-08-27/include/linux/compat-2.6.h:24,
                     from <command-line>:0:
    /usr/src/linux-headers-2.6.32-5-common/include/linux/dma-mapping.h:248:1: warning: this is the location of the previous definition
    In file included from /home/rafael/Downloads/compat-wireless-2011-08-27/include/linux/compat-2.6.h:29,
                     from <command-line>:0:
    /home/rafael/Downloads/compat-wireless-2011-08-27/include/linux/compat-2.6.34.h:231: error: redefinition of ‘dma_set_coherent_mask’
    /usr/src/linux-headers-2.6.32-5-common/include/linux/dma-mapping.h:131: error: previous definition of ‘dma_set_coherent_mask’ was here
    make[5]: ** [/home/rafael/Downloads/compat-wireless-2011-08-27/compat/main.o] Erro 1
    make[4]: ** [/home/rafael/Downloads/compat-wireless-2011-08-27/compat] Erro 2
    make[3]: ** [_module_/home/rafael/Downloads/compat-wireless-2011-08-27] Erro 2
    make[2]: ** [sub-make] Erro 2
    make[1]: ** [all] Erro 2
    make[1]: Saindo do diretório `/usr/src/linux-headers-2.6.32-5-686'
    make: ** [modules] Erro 2

Eu instalei o sistema ontem, mas os pacotes linux-headers-$(uname -r) e build-essential já estão instalados.

Alguém pode me ajudar?


Grato.
Olá, a única maneira de instalar esse programa é através desse "gen-compat-autoconf.sh"? O pacote de instalação veio com algum arquivo chamado README? Se sim, poste ele pra darmos uma olhada.
URL de Referência