FÓRUM DigiVoice

Fórum de Suporte Digivoice

Você não está logado.

  • Índice
  •  » VoicerLib
  •  » Erro na instalação da voicerlib no Ubuntu 16.04. Placa VB6060

#1 27/12/2016 18:08:04

geovanecaetano
New member
Cadastrado: 28/09/2008
Posts: 3

Erro na instalação da voicerlib no Ubuntu 16.04. Placa VB6060

root@asterisk:/usr/src/voicerlib-4.2.5.6# make
make[1]: Entering directory '/usr/src/voicerlib-4.2.5.6/src_linux'
Building VoicerLib objects into the API...

cc -o libdigivoice.so.4.2.5.6 -fPIC -std=gnu99   -D__LINUX__ -DLINUX3 -DCCS_ENABLE  -fPIC -D_GNU_SOURCE -Wall -DTWOBYTEDATA -DMODULE -D__LINUX__ -Dvlibd -DLINUX3 -shared -lm -lpthread \
        linux_api.o version.o               \
        ../src_common/idle.o                \
        ../src_common/call_progress.o       \
        ../src_common/logger.o              \
        ../src_common/dg_api.o              \
        ../src_common/threads.o             \
        ../src_common/e1.o                  \
        ../src_common/channel_bank.o        \
        ../src_common/vbgsm.o               \
        ../src_common/voicerlib.o           \
        ../src_common/customthd.o           \
        ../src_common/inifile.o             \
        ../src_common/dg_wave.o             \
        ../src_common/gsm.o                 \
        ../src_common/strlcpy.o             \
        ../src_common/strlcat.o
make[1]: Leaving directory '/usr/src/voicerlib-4.2.5.6/src_linux'
make[1]: Entering directory '/usr/src/voicerlib-4.2.5.6/driver/linux'
Building kernel modules with default options...
kernel 3.x

make -C /lib/modules/4.4.0-21-generic/build -I/usr/include/asm/mach-default/ SUBDIRS=/usr/src/voicerlib-4.2.5.6/driver/linux modules
make[2]: Entering directory '/usr/src/linux-headers-4.4.0-21-generic'
  CC [M]  /usr/src/voicerlib-4.2.5.6/driver/linux/vlibdrv.o
/usr/src/voicerlib-4.2.5.6/driver/linux/vlibdrv.c: In function ‘vlib_interrupt’:
/usr/src/voicerlib-4.2.5.6/driver/linux/vlibdrv.c:1313:26: warning: passing argument 1 of ‘dg_memcpy_fromio’ from incompatible pointer type [-Wincompatible-pointer-types]
         dg_memcpy_fromio(&ccs_rx->data[ccs_rx->wp][ccs_rx->partial], (void *)HPID_AINC, CCS_FRAME_SIZE, ccs_rx_frame_addr+0x10, wCard); //CCSx_DSP_HOST1
                          ^
In file included from /usr/src/voicerlib-4.2.5.6/driver/linux/vlibdrv.c:110:0:
/usr/src/voicerlib-4.2.5.6/driver/linux/vlibdrv.h:2238:7: note: expected ‘u32 * {aka unsigned int *}’ but argument is of type ‘u8 * {aka unsigned char *}’
  void dg_memcpy_fromio(u32 *dst, unsigned long *src, size_t count, u16 addr, int Card);
       ^
/usr/src/voicerlib-4.2.5.6/driver/linux/vlibdrv.c:1315:26: warning: passing argument 1 of ‘dg_memcpy_fromio’ from incompatible pointer type [-Wincompatible-pointer-types]
         dg_memcpy_fromio(&ccs_rx->data[ccs_rx->wp][ccs_rx->partial], (void *)HPID_AINC, CCS_FRAME_SIZE, ccs_rx_frame_addr, wCard); //CCSx_DSP_HOST0
                          ^
In file included from /usr/src/voicerlib-4.2.5.6/driver/linux/vlibdrv.c:110:0:
/usr/src/voicerlib-4.2.5.6/driver/linux/vlibdrv.h:2238:7: note: expected ‘u32 * {aka unsigned int *}’ but argument is of type ‘u8 * {aka unsigned char *}’
  void dg_memcpy_fromio(u32 *dst, unsigned long *src, size_t count, u16 addr, int Card);
       ^
/usr/src/voicerlib-4.2.5.6/driver/linux/vlibdrv.c:1798:74: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
        memcpy_toio((void *)(sm->dwMemSpace[wCard] + HPID_AINC), (void *)((u8)(&buffer[wCard][8])-2), 4);
                                                                          ^
/usr/src/voicerlib-4.2.5.6/driver/linux/vlibdrv.c:1798:65: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
        memcpy_toio((void *)(sm->dwMemSpace[wCard] + HPID_AINC), (void *)((u8)(&buffer[wCard][8])-2), 4);
                                                                 ^
/usr/src/voicerlib-4.2.5.6/driver/linux/vlibdrv.c:1836:75: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
         memcpy_toio((void *)(sm->dwMemSpace[wCard] + HPID_AINC), (void *)((u8)(&buffer[wCard][8])-2), 4);
                                                                           ^
/usr/src/voicerlib-4.2.5.6/driver/linux/vlibdrv.c:1836:66: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
         memcpy_toio((void *)(sm->dwMemSpace[wCard] + HPID_AINC), (void *)((u8)(&buffer[wCard][8])-2), 4);
                                                                  ^
/usr/src/voicerlib-4.2.5.6/driver/linux/vlibdrv.c:1958:23: warning: passing argument 1 of ‘dg_memcpy_fromio’ from incompatible pointer type [-Wincompatible-pointer-types]
      dg_memcpy_fromio(&rmk[port-1]->data[rmk[port-1]->kb][rmk[port-1]->wp[rmk[port-1]->kb]], HPID_AINC, SAMPLES_SIZE, local->addr_buffer + (nCh*17) + (8*local->active_buffer),
                       ^
In file included from /usr/src/voicerlib-4.2.5.6/driver/linux/vlibdrv.c:110:0:
/usr/src/voicerlib-4.2.5.6/driver/linux/vlibdrv.h:2238:7: note: expected ‘u32 * {aka unsigned int *}’ but argument is of type ‘u8 * {aka unsigned char *}’
  void dg_memcpy_fromio(u32 *dst, unsigned long *src, size_t count, u16 addr, int Card);
       ^
In file included from /usr/src/voicerlib-4.2.5.6/driver/linux/../../src_common/generic.h:49:0,
                 from /usr/src/voicerlib-4.2.5.6/driver/linux/vlibdrv.c:108:
/usr/src/voicerlib-4.2.5.6/driver/linux/../../src_common/vlibdef.h:551:19: warning: passing argument 2 of ‘dg_memcpy_fromio’ makes pointer from integer without a cast [-Wint-conversion]
#define HPID_AINC 0x10000
                   ^
/usr/src/voicerlib-4.2.5.6/driver/linux/vlibdrv.c:1958:94: note: in expansion of macro ‘HPID_AINC’
      dg_memcpy_fromio(&rmk[port-1]->data[rmk[port-1]->kb][rmk[port-1]->wp[rmk[port-1]->kb]], HPID_AINC, SAMPLES_SIZE, local->addr_buffer + (nCh*17) + (8*local->active_buffer),
                                                                                              ^
In file included from /usr/src/voicerlib-4.2.5.6/driver/linux/vlibdrv.c:110:0:
/usr/src/voicerlib-4.2.5.6/driver/linux/vlibdrv.h:2238:7: note: expected ‘long unsigned int *’ but argument is of type ‘int’
  void dg_memcpy_fromio(u32 *dst, unsigned long *src, size_t count, u16 addr, int Card);
       ^
/usr/src/voicerlib-4.2.5.6/driver/linux/vlibdrv.c:2120:24: warning: passing argument 1 of ‘dg_memcpy_fromio’ from incompatible pointer type [-Wincompatible-pointer-types]
       dg_memcpy_fromio((&buffer[wCard]), (void *)HPID_AINC, 36, local->addr_buffer + (nCh*17), wCard);
                        ^
In file included from /usr/src/voicerlib-4.2.5.6/driver/linux/vlibdrv.c:110:0:
/usr/src/voicerlib-4.2.5.6/driver/linux/vlibdrv.h:2238:7: note: expected ‘u32 * {aka unsigned int *}’ but argument is of type ‘int (*)[1024]’
  void dg_memcpy_fromio(u32 *dst, unsigned long *src, size_t count, u16 addr, int Card);
       ^
In file included from include/linux/fs.h:6:0,
                 from /usr/src/voicerlib-4.2.5.6/driver/linux/vlibdrv.c:71:
/usr/src/voicerlib-4.2.5.6/driver/linux/vlibdrv.c: In function ‘vlib_read’:
/usr/src/voicerlib-4.2.5.6/driver/linux/vlibdrv.c:2411:39: error: ‘struct file’ has no member named ‘f_dentry’
  short local_minor_number = MINOR(filp->f_dentry->d_inode->i_rdev);
                                       ^
include/linux/kdev_t.h:10:38: note: in definition of macro ‘MINOR’
#define MINOR(dev) ((unsigned int) ((dev) & MINORMASK))
                                      ^
/usr/src/voicerlib-4.2.5.6/driver/linux/vlibdrv.c: In function ‘vlib_mmap’:
/usr/src/voicerlib-4.2.5.6/driver/linux/vlibdrv.c:3172:37: error: ‘struct file’ has no member named ‘f_dentry’
  int local_minor_number = MINOR(filp->f_dentry->d_inode->i_rdev);
                                     ^
include/linux/kdev_t.h:10:38: note: in definition of macro ‘MINOR’
#define MINOR(dev) ((unsigned int) ((dev) & MINORMASK))
                                      ^
/usr/src/voicerlib-4.2.5.6/driver/linux/vlibdrv.c: In function ‘dg_memcpy_fromio’:
/usr/src/voicerlib-4.2.5.6/driver/linux/vlibdrv.c:3763:65: warning: passing argument 2 of ‘KERNEL_DWREAD’ makes integer from pointer without a cast [-Wint-conversion]
                 retdwread = KERNEL_DWREAD(sm->dwMemSpace[Card], src);
                                                                 ^
/usr/src/voicerlib-4.2.5.6/driver/linux/vlibdrv.c:3742:6: note: expected ‘long unsigned int’ but argument is of type ‘long unsigned int *’
  u32 KERNEL_DWREAD(unsigned long addr_space, unsigned long offset)
      ^
scripts/Makefile.build:258: recipe for target '/usr/src/voicerlib-4.2.5.6/driver/linux/vlibdrv.o' failed
make[3]: *** [/usr/src/voicerlib-4.2.5.6/driver/linux/vlibdrv.o] Error 1
Makefile:1396: recipe for target '_module_/usr/src/voicerlib-4.2.5.6/driver/linux' failed
make[2]: *** [_module_/usr/src/voicerlib-4.2.5.6/driver/linux] Error 2
make[2]: Leaving directory '/usr/src/linux-headers-4.4.0-21-generic'
Makefile:107: recipe for target 'all' failed
make[1]: *** [all] Error 2
make[1]: Leaving directory '/usr/src/voicerlib-4.2.5.6/driver/linux'
Makefile:28: recipe for target 'driver' failed
make: *** [driver] Error 2

Offline

 
  • Índice
  •  » VoicerLib
  •  » Erro na instalação da voicerlib no Ubuntu 16.04. Placa VB6060

Rodapé do fórum

Powered by PunBB
© Copyright 2002–2005 Rickard Andersson