FÓRUM DigiVoice

Fórum de Suporte Digivoice

Você não está logado.

#1 28/05/2007 11:18:25

gilbertonunes
Membro

Error Bad fd number

bom dia novamente

Compilei o asterisk 1.4.2 e tudo correu bem
Compilei o voicerlib e tudo correu bem.
Compilei o dgvchannel e tudo correu bem.
Porém quando digito /etc/init.d/asterisk start surge o seguinte:

Starting Asterisk PBX: 1024
/usr/sbin/safe_asterisk: 161: Syntax error: Bad fd number
asterisk.

Quando tempo levantar o vlibd tambem aparece o mesmo erro.

Meu ambiente:

Ubuntu Server 7.04
Kernel 2.6.20-15-server

Aparentemente é um erro com a compilação do driver da placa ou estou enganado?

Obrigado.

Offline

 

#2 28/05/2007 11:31:16

gilbertonunes
Membro

Re: Error Bad fd number

Percebi que aparecem estes erros quando compilo o vlibd:

make -C /lib/modules/2.6.20-15-server/build -I/usr/include/asm/mach-default/ SUBDIRS=/usr/src/voicerlib-4.0.9.0/driver/linux modules
make[1]: Entering directory `/usr/src/linux-source-2.6.20'
-p: not found
chkconfig: not found
  CC [M]  /usr/src/voicerlib-4.0.9.0/driver/linux/vlibdrv.o
/usr/src/voicerlib-4.0.9.0/driver/linux/vlibdrv.c: In function ?plx_probe?:
/usr/src/voicerlib-4.0.9.0/driver/linux/vlibdrv.c:463: warning: passing argument 2 of ?request_irq? from incompatible pointer type
  LD [M]  /usr/src/voicerlib-4.0.9.0/driver/linux/vlibd.o
  Building modules, stage 2.
  MODPOST 1 modules
WARNING: vmlinux - Section mismatch: reference to .init.data:boot_params from .text between '_text' (at offset 0xc0100036) and 'startup_32_smp'
WARNING: vmlinux - Section mismatch: reference to .init.data:boot_params from .text between '_text' (at offset 0xc0100044) and 'startup_32_smp'
WARNING: vmlinux - Section mismatch: reference to .init.data:init_pg_tables_end from .text between '_text' (at offset 0xc01000a6) and 'startup_32_smp'
WARNING: vmlinux - Section mismatch: reference to .init.text:start_kernel from .text between 'is386' (at offset 0xc0100221) and 'check_x87'
WARNING: vmlinux - Section mismatch: reference to .init.text:smp_prepare_cpus from .text between 'init' (at offset 0xc0100427) and 'rest_init'
WARNING: vmlinux - Section mismatch: reference to .init.text:migration_init from .text between 'init' (at offset 0xc010042c) and 'rest_init'
WARNING: vmlinux - Section mismatch: reference to .init.text:spawn_ksoftirqd from .text between 'init' (at offset 0xc0100431) and 'rest_init'
WARNING: vmlinux - Section mismatch: reference to .init.text:spawn_softlockup_task from .text between 'init' (at offset 0xc0100436) and 'rest_init'
WARNING: vmlinux - Section mismatch: reference to .init.text:smp_cpus_done from .text between 'init' (at offset 0xc01004b2) and 'rest_init'
WARNING: vmlinux - Section mismatch: reference to .init.text:sched_init_smp from .text between 'init' (at offset 0xc01004b7) and 'rest_init'
WARNING: vmlinux - Section mismatch: reference to .init.text:cpuset_init_smp from .text between 'init' (at offset 0xc01004bc) and 'rest_init'
WARNING: vmlinux - Section mismatch: reference to .init.text:usermodehelper_init from .text between 'init' (at offset 0xc01004c6) and 'rest_init'
WARNING: vmlinux - Section mismatch: reference to .init.text:driver_init from .text between 'init' (at offset 0xc01004cb) and 'rest_init'
WARNING: vmlinux - Section mismatch: reference to .init.text:sysctl_init from .text between 'init' (at offset 0xc01004d1) and 'rest_init'
WARNING: vmlinux - Section mismatch: reference to .init.data: from .text between 'init' (at offset 0xc01004f3) and 'rest_init'
WARNING: vmlinux - Section mismatch: reference to .init.data: from .text between 'init' (at offset 0xc010050c) and 'rest_init'
WARNING: vmlinux - Section mismatch: reference to .init.text:prepare_namespace from .text between 'init' (at offset 0xc01006ff) and 'rest_init'
WARNING: vmlinux - Section mismatch: reference to .init.text:__alloc_bootmem from .text between 'init_gdt' (at offset 0xc010990b) and 'cpu_init'
WARNING: vmlinux - Section mismatch: reference to .init.text:__alloc_bootmem from .text between 'init_gdt' (at offset 0xc0109921) and 'cpu_init'
WARNING: vmlinux - Section mismatch: reference to .init.text:sysenter_setup from .text between 'identify_cpu' (at offset 0xc0109f73) and 'display_cacheinfo'
WARNING: vmlinux - Section mismatch: reference to .init.text:mtrr_bp_init from .text between 'identify_cpu' (at offset 0xc0109f81) and 'display_cacheinfo'
WARNING: vmlinux - Section mismatch: reference to .init.data:initkmem_list3 from .text between 'set_up_list3s' (at offset 0xc017396f) and 's_start'
WARNING: vmlinux - Section mismatch: reference to .init.text:eisa_root_register from .text between 'pci_eisa_init' (at offset 0xc027281b) and 'virtual_eisa_release'
WARNING: vmlinux - Section mismatch: reference to .init.text:eisa_root_register from .text between 'virtual_eisa_root_init' (at offset 0xc027287f) and 'cpufreq_unregister_driver'
WARNING: vmlinux - Section mismatch: reference to .init.text: from .text between 'iret_exc' (at offset 0xc02f91c0) and '_etext'
WARNING: vmlinux - Section mismatch: reference to .init.text:start_kernel from .paravirtprobe between '__start_paravirtprobe' (at offset 0xc03c9f30) and '__stop_paravirtprobe'
  CC      /usr/src/voicerlib-4.0.9.0/driver/linux/vlibd.mod.o
  LD [M]  /usr/src/voicerlib-4.0.9.0/driver/linux/vlibd.ko
make[1]: Leaving directory `/usr/src/linux-source-2.6.20'


Este WARNING: aparece tanto na compilação do voicerlib quanto na compilação do vlibd

Última alteração por gilbertonunes (28/05/2007 11:32:25)

Offline

 

#3 28/05/2007 11:40:46

gilbertonunes
Membro

Re: Error Bad fd number

Opa...

Já resolvi o problema

Aparentemente shell scripts q começam com #!/bin/sh não funcionam como deveriam.
O Ubuntu não tem o symlink do /bin/sh para /bin/bash e sim para /bin/dash.
Só alterei os seguintes scripts:

/etc/init.d/vlib
/etc/init.d/asterisk
/usr/sbin/safe_asterisk

No inicio de cada linha estava assim:
#!/bin/sh

Mudei para
#!/bin/bash

E funcionou.

Fiquem atentos! Se vc for instalar no Ubuntu 7.04, fique atento para esse pequeno (porem incomodo) problema.
Abraços.

Offline

 

Rodapé do fórum

Powered by PunBB
© Copyright 2002–2005 Rickard Andersson