+ Responder ao Tópico



  1. #1
    guikeller
    Visitante

    Padrão Erro ao compilar driver. [ Intel537EP ]

    Olá, estou tentando compilar o driver do meu modem e estou
    tendo o seguinte erro, alguem poderia me ajudar?

    Código :
    gui@opensuse:/> su -
    Password:
    opensuse:~ # cd /opt/modem/Intel537EP/intel-537EP_secure-2.60.80.1
    opensuse:/opt/modem/Intel537EP/intel-537EP_secure-2.60.80.1 # make clean
    cd coredrv; make clean
    make[1]: Entering directory `/opt/modem/Intel537EP/intel-537EP_secure-2.60.80.1/
    coredrv'
    rm -f *.ko *.o *~ core
    make[1]: Leaving directory `/opt/modem/Intel537EP/intel-537EP_secure-2.60.80.1/c
    oredrv'
    rm -f *.o *.ko
    opensuse:/opt/modem/Intel537EP/intel-537EP_secure-2.60.80.1 # make 537
       Module precompile check
       Current running kernel is: 2.6.13-15-default
       /lib/modules...   autoconf.h exists
    diff: /boot/vmlinuz.autoconf.h: No such file or directory
       autoconf.h matches running kernel
    diff: /boot/vmlinuz.version.h: No such file or directory
       version.h matches running kernel
    2.6.13-15-default
    make[1]: Entering directory `/opt/modem/Intel537EP/intel-537EP_secure-2.60.80.1/
    coredrv'
    make -C /lib/modules/2.6.13-15-default/build SUBDIRS=/opt/modem/Intel537EP/intel
    -537EP_secure-2.60.80.1/coredrv modules
    make[2]: Entering directory `/usr/src/linux-2.6.13-15-obj/i386/default'
    make -C ../../../linux-2.6.13-15 O=../linux-2.6.13-15-obj/i386/default modules
      CC [M]  /opt/modem/Intel537EP/intel-537EP_secure-2.60.80.1/coredrv/coredrv.o
    gcc: ../inc: No such file or directory
    /opt/modem/Intel537EP/intel-537EP_secure-2.60.80.1/coredrv/coredrv.c:70: warning
    : type defaults to ‘int’ in declaration of ‘EXPORT_SYMBOL_NOVERS’
    /opt/modem/Intel537EP/intel-537EP_secure-2.60.80.1/coredrv/coredrv.c:70: warning
    : parameter names (without types) in function declaration
    /opt/modem/Intel537EP/intel-537EP_secure-2.60.80.1/coredrv/coredrv.c:70: warning
    : data definition has no type or storage class
    /opt/modem/Intel537EP/intel-537EP_secure-2.60.80.1/coredrv/coredrv.c: In functio
    n ‘softcore_init_struct’:
    /opt/modem/Intel537EP/intel-537EP_secure-2.60.80.1/coredrv/coredrv.c:336: warnin
    g: assignment from incompatible pointer type
    /opt/modem/Intel537EP/intel-537EP_secure-2.60.80.1/coredrv/coredrv.c: In functio
    n ‘open’:
    /opt/modem/Intel537EP/intel-537EP_secure-2.60.80.1/coredrv/coredrv.c:394: warnin
    g: ‘pm_register’ is deprecated (declared at /usr/src/linux-2.6.13-15/include/lin
    ux/pm.h:107)
    /opt/modem/Intel537EP/intel-537EP_secure-2.60.80.1/coredrv/coredrv.c: In functio
    n ‘close’:
    /opt/modem/Intel537EP/intel-537EP_secure-2.60.80.1/coredrv/coredrv.c:416: warnin
    g: ‘pm_unregister’ is deprecated (declared at /usr/src/linux-2.6.13-15/include/l
    inux/pm.h:112)
    /opt/modem/Intel537EP/intel-537EP_secure-2.60.80.1/coredrv/coredrv.c: In functio
    n ‘hamproc_write’:
    /opt/modem/Intel537EP/intel-537EP_secure-2.60.80.1/coredrv/coredrv.c:660: warnin
    g: ignoring return value of ‘copy_from_user’, declared with attribute warn_unuse
    d_result
    /opt/modem/Intel537EP/intel-537EP_secure-2.60.80.1/coredrv/coredrv.c: At top lev
    el:
    /opt/modem/Intel537EP/intel-537EP_secure-2.60.80.1/coredrv/coredrv.c:754: warnin
    g: initialization from incompatible pointer type
    /opt/modem/Intel537EP/intel-537EP_secure-2.60.80.1/coredrv/coredrv.c:755: warnin                                           g: initialization from incompatible pointer type
    /opt/modem/Intel537EP/intel-537EP_secure-2.60.80.1/coredrv/coredrv.c: In functio                                           n ‘kScheduleDPC’:
    /opt/modem/Intel537EP/intel-537EP_secure-2.60.80.1/coredrv/coredrv.c:861: error:                                            implicit declaration of function ‘pm_access’
    /opt/modem/Intel537EP/intel-537EP_secure-2.60.80.1/coredrv/coredrv.c: In functio                                           n ‘dspdrv_CommRamISR’:
    /opt/modem/Intel537EP/intel-537EP_secure-2.60.80.1/coredrv/coredrv.c:877: warnin                                           g: function declaration isn’t a prototype
    make[5]: *** [/opt/modem/Intel537EP/intel-537EP_secure-2.60.80.1/coredrv/coredrv                                           .o] Error 1
    make[4]: *** [_module_/opt/modem/Intel537EP/intel-537EP_secure-2.60.80.1/coredrv                                           ] Error 2
    make[3]: *** [modules] Error 2
    make[2]: *** [modules] Error 2
    make[2]: Leaving directory `/usr/src/linux-2.6.13-15-obj/i386/default'
    make[1]: *** [537core_26] Error 2
    make[1]: Leaving directory `/opt/modem/Intel537EP/intel-537EP_secure-2.60.80.1/c                                           oredrv'
    2.6.13-15-default
    Failed to build driver
    opensuse:/opt/modem/Intel537EP/intel-537EP_secure-2.60.80.1 #

    Obrigado.

  2. #2

    Padrão Erro ao compilar driver. [ Intel537EP ]

    /lib/modules... autoconf.h exists
    diff: /boot/vmlinuz.autoconf.h: No such file or directory
    autoconf.h matches running kernel
    diff: /boot/vmlinuz.version.h: No such file or directory
    version.h matches running kernel
    2.6.13-15-default

    ---
    gcc: ../inc: No such file or directory

    ---

    nao sei c essas duas chegam a interferir em alguma coisa, mas parece q tem uns erros de sintaxe dentro do codigo do coredrv.c

    2.60.80.1/coredrv/coredrv.c:861: error: implicit declaration of function ‘pm_access’

    nunca fui muito bom nisso... mas veja no README o que ele precisa para funcionar, as vezes pode ser alguma dependencia que esteja faltando, somente assim fica muito vago de dar certeza de algo.... esses drivers sao meio fo...

  3. #3
    guikeller
    Visitante

    Padrão Erro ao compilar driver. [ Intel537EP ]

    Olá, estou com a discussão aqui:
    http://www.kuruminlinux.com.br/comun...ic.php?t=63115

    Já consegui grandes avanços..
    Quem poder olhar o andamento dela e tentar ajudar..

    Obrigado.