Koozali.org: home of the SME Server

Dahdi Error

Offline m4st3rc1p0

  • 14
  • +0/-0
Dahdi Error
« on: September 03, 2012, 04:00:49 AM »
hi,

 Its been a week now since I have a problem compiling dahdi from the sources. Also I was able to install dahdi using rpm but with errors when i try to run it from the console can someone help me to find the right direction on how to correct this. Below are the logs during compilation of dahdi sources
Code: [Select]
/root/dahdi-linux-complete-2.6.1+2.6.1/linux/drivers/dahdi/dahdi-base.c: In function `dahdi_chan_unreg':
/root/dahdi-linux-complete-2.6.1+2.6.1/linux/drivers/dahdi/dahdi-base.c:2188: warning: assignment discards qualifiers from pointer target type
/root/dahdi-linux-complete-2.6.1+2.6.1/linux/drivers/dahdi/dahdi-base.c: In function `dahdi_specchan_open':
/root/dahdi-linux-complete-2.6.1+2.6.1/linux/drivers/dahdi/dahdi-base.c:3000: warning: assignment discards qualifiers from pointer target type
/root/dahdi-linux-complete-2.6.1+2.6.1/linux/drivers/dahdi/dahdi-base.c: In function `dahdi_ioctl_loadzone':
/root/dahdi-linux-complete-2.6.1+2.6.1/linux/drivers/dahdi/dahdi-base.c:3312: warning: implicit declaration of function `kasprintf'
/root/dahdi-linux-complete-2.6.1+2.6.1/linux/drivers/dahdi/dahdi-base.c:3312: warning: assignment makes pointer from integer without a cast
/root/dahdi-linux-complete-2.6.1+2.6.1/linux/drivers/dahdi/dahdi-base.c: In function `_dahdi_assign_span':
/root/dahdi-linux-complete-2.6.1+2.6.1/linux/drivers/dahdi/dahdi-base.c:6968: warning: assignment discards qualifiers from pointer target type
/root/dahdi-linux-complete-2.6.1+2.6.1/linux/drivers/dahdi/dahdi-base.c: In function `dahdi_timer_poll':
/root/dahdi-linux-complete-2.6.1+2.6.1/linux/drivers/dahdi/dahdi-base.c:9221: error: `POLLRDHUP' undeclared (first use in this function)
/root/dahdi-linux-complete-2.6.1+2.6.1/linux/drivers/dahdi/dahdi-base.c:9221: error: (Each undeclared identifier is reported only once
/root/dahdi-linux-complete-2.6.1+2.6.1/linux/drivers/dahdi/dahdi-base.c:9221: error: for each function it appears in.)
/root/dahdi-linux-complete-2.6.1+2.6.1/linux/drivers/dahdi/dahdi-base.c: In function `dahdi_chan_poll':
/root/dahdi-linux-complete-2.6.1+2.6.1/linux/drivers/dahdi/dahdi-base.c:9241: error: `POLLRDHUP' undeclared (first use in this function)
/root/dahdi-linux-complete-2.6.1+2.6.1/linux/drivers/dahdi/dahdi-base.c: In function `dahdi_pci_disable_link_state':
/root/dahdi-linux-complete-2.6.1+2.6.1/linux/drivers/dahdi/dahdi-base.c:10097: error: `PCI_EXP_LNKCTL' undeclared (first use in this function)
make[3]: *** [/root/dahdi-linux-complete-2.6.1+2.6.1/linux/drivers/dahdi/dahdi-base.o] Error 1
make[2]: *** [_module_/root/dahdi-linux-complete-2.6.1+2.6.1/linux/drivers/dahdi] Error 2
make[2]: Leaving directory `/usr/src/kernels/2.6.9-103.EL-x86_64'
make[1]: *** [modules] Error 2
make[1]: Leaving directory `/root/dahdi-linux-complete-2.6.1+2.6.1/linux'
make: *** [all] Error 2

Heres the log while I try to run dahdi:
Code: [Select]
Loading DAHDI hardware modules:
  wct4xxp:  WARNING: Error inserting zaptel (/lib/modules/2.6.9-103.EL/updates/drivers/zaptel/zaptel.ko): Device or resource busy
FATAL: Error inserting wct4xxp (/lib/modules/2.6.9-103.EL/updates/drivers/zaptel/wct4xxp.ko): Unknown symbol in module, or unknown parameter (see dmesg)
                                                           [FAILED]
  wcte12xp:  WARNING: Error inserting zaptel (/lib/modules/2.6.9-103.EL/updates/drivers/zaptel/zaptel.ko): Device or resource busy
FATAL: Error inserting wcte12xp (/lib/modules/2.6.9-103.EL/updates/drivers/zaptel/wcte12xp.ko): Unknown symbol in module, or unknown parameter (see dmesg)
                                                           [FAILED]
  wct1xxp:  WARNING: Error inserting zaptel (/lib/modules/2.6.9-103.EL/updates/drivers/zaptel/zaptel.ko): Device or resource busy
FATAL: Error inserting wct1xxp (/lib/modules/2.6.9-103.EL/updates/drivers/zaptel/wct1xxp.ko): Unknown symbol in module, or unknown parameter (see dmesg)
                                                           [FAILED]
  wcte11xp:  WARNING: Error inserting zaptel (/lib/modules/2.6.9-103.EL/updates/drivers/zaptel/zaptel.ko): Device or resource busy
FATAL: Error inserting wcte11xp (/lib/modules/2.6.9-103.EL/updates/drivers/zaptel/wcte11xp.ko): Unknown symbol in module, or unknown parameter (see dmesg)
                                                           [FAILED]
  wctdm24xxp:  WARNING: Error inserting zaptel (/lib/modules/2.6.9-103.EL/updates/drivers/zaptel/zaptel.ko): Device or resource busy
FATAL: Error inserting wctdm24xxp (/lib/modules/2.6.9-103.EL/updates/drivers/zaptel/wctdm24xxp.ko): Unknown symbol in module, or unknown parameter (see dmesg)
                                                           [FAILED]
  wcfxo:  WARNING: Error inserting zaptel (/lib/modules/2.6.9-103.EL/updates/drivers/zaptel/zaptel.ko): Device or resource busy
FATAL: Error inserting wcfxo (/lib/modules/2.6.9-103.EL/updates/drivers/zaptel/wcfxo.ko): Unknown symbol in module, or unknown parameter (see dmesg)
                                                           [FAILED]
  wctdm:  WARNING: Error inserting zaptel (/lib/modules/2.6.9-103.EL/updates/drivers/zaptel/zaptel.ko): Device or resource busy
FATAL: Error inserting wctdm (/lib/modules/2.6.9-103.EL/updates/drivers/zaptel/wctdm.ko): Unknown symbol in module, or unknown parameter (see dmesg)
                                                           [FAILED]
  wcb4xxp:                                                 [  OK  ]
  wctc4xxp:  WARNING: Error inserting zaptel (/lib/modules/2.6.9-103.EL/updates/drivers/zaptel/zaptel.ko): Device or resource busy
WARNING: Error inserting zttranscode (/lib/modules/2.6.9-103.EL/updates/drivers/zaptel/zttranscode.ko): Unknown symbol in module, or unknown parameter (see dmesg)
FATAL: Error inserting wctc4xxp (/lib/modules/2.6.9-103.EL/updates/drivers/zaptel/wctc4xxp.ko): Unknown symbol in module, or unknown parameter (see dmesg)
                                                           [FAILED]
  xpp_usb:  WARNING: Error inserting zaptel (/lib/modules/2.6.9-103.EL/updates/drivers/zaptel/zaptel.ko): Device or resource busy
WARNING: Error inserting xpp (/lib/modules/2.6.9-103.EL/updates/drivers/zaptel/xpp.ko): Unknown symbol in module, or unknown parameter (see dmesg)
FATAL: Error inserting xpp_usb (/lib/modules/2.6.9-103.EL/updates/drivers/zaptel/xpp_usb.ko): Unknown symbol in module, or unknown parameter (see dmesg)
                                                           [FAILED]

/usr/share/dahdi/waitfor_xpds: Missing astribank_is_starting
Running dahdi_cfg:                                         [  OK  ]

guest22

Re: Dahdi Error
« Reply #1 on: September 04, 2012, 12:09:08 AM »
'run dahdi' and zaptel errors show up....??

Offline m4st3rc1p0

  • 14
  • +0/-0
Re: Dahdi Error
« Reply #2 on: September 04, 2012, 01:59:55 AM »
yeah, i am losing hair on this issue

guest22

Re: Dahdi Error
« Reply #3 on: September 04, 2012, 07:25:37 AM »
Looks to me that you 'upgraded zaptel usage to dhadi. But that is a different ballgame then simply install a RPM.

I would completely remove dahdi and go back to zaptel for your current asterisk setup depends on zaptel (don't know which asterisk version)

Then, make a plan first, before installing anything.

 

Offline m4st3rc1p0

  • 14
  • +0/-0
Re: Dahdi Error
« Reply #4 on: September 04, 2012, 08:14:44 AM »
well i did that already but i cannot compile the said sources of dahdi please see my first log .

Offline SARK devs

  • ****
  • 2,806
  • +1/-0
    • http://sarkpbx.com
Re: Dahdi Error
« Reply #5 on: September 04, 2012, 09:44:11 AM »
Hi

I don't have a great deal to add I'm afraid.  You look to have a mix of dahdi and zaptel modules on your system so I think HF is correct and you need to get back to a known state.  The problem with a source compile and install is that it isn't always easy to know what to remove if you need to back out.   Also, when you do get back to a known state, you might want to use yum to install dahdi instead of rpm. This is because whatever the current version of dahdi is at the point you perform the install, it will almost certainly want to install a different kernel to the one you have.  If the dahdi driver version and the kernel don't match then dahdi won't work and you will get module load errors.  This also happens with zaptel and looks to be at the root of the problem you show in the second example you included, but this may just be a hangover from your previous install.


Kind Regards

S


Offline m4st3rc1p0

  • 14
  • +0/-0
Re: Dahdi Error
« Reply #6 on: September 04, 2012, 12:34:47 PM »
This is completed, I was able to correct the error by doing the following: Un-install zaptel-kmdl-2.6.9-103.EL-1.4.12.1-56.el4.x86_64 zaptel. and It works. Must have been my bad during installation i mixed up everything.

This thread is closed.