can't run part of asterisk on new proxmox 1.6

  • Thread starter Thread starter niv
  • Start date Start date
N

niv

Guest
in order to run asterisk and connecto to a PRI phone-line I have a PRI card inside the server.
I need to install a module called dahdi. current version is dahdi-linux-complete version 2.4.0+2.3.0.

I got the source of that module and managed to build it fine. I had to install pve-headers-`uname -r`-pve to run this build.

when I try to load that module I get this error:
# modprobe -v dahdi
insmod /lib/modules/2.6.32-4-pve/dahdi/dahdi.ko
FATAL: Error inserting dahdi (/lib/modules/2.6.32-4-pve/dahdi/dahdi.ko): Invalid module format

I switched to gcc 4.1.3 and rebuild the module. but still get the same error.
I tried to change path to the pve-headers and run make . but then I get this error:
# make
CHK include/linux/version.h
CHK include/linux/utsrelease.h
SYMLINK include/asm -> include/asm-x86
make[1]: *** No rule to make target `kernel/bounds.c', needed by `kernel/bounds.s'. Stop.
make: *** [prepare0] Error 2
what is wrong?
 
just to make sure, you do this on the host? (and not in a container)
 
right, I am building dahdi in the hardware node an not in the container.
 
current proxmox 1.7 solved the issue. I can build a full pbx dahdi/libpri/asterisk1.4/asterisk-addons/freepbx
 
I had problems building modules under ProxMox v1.6 as well, I have a feeling that the kernel headers are messed up in the archive, but now that 1.7 is out I doubt anybody is going to look into this any further (I too was able to build my modules under 1.7 without problems).