Problem installing dahdi

my machine is centos 4.9, I’m trying to install dahdi-linux-2.5.0.1, when I run make it goes through many steps but eventually it stops with this error:

make[1]: Entering directory /usr/src/kernels/2.6.18-53.el5.sb-i586' CC [M] /home/packages/dahdi-linux-2.5.0.1/drivers/dahdi/wctdm24xxp/base.o /home/packages/dahdi-linux-2.5.0.1/drivers/dahdi/wctdm24xxp/base.c: In functioncmd_checkisr’:
/home/packages/dahdi-linux-2.5.0.1/drivers/dahdi/wctdm24xxp/base.c:915: sorry, unimplemented: inlining failed in call to ‘wctdm_setreg_intr’: function body not available
/home/packages/dahdi-linux-2.5.0.1/drivers/dahdi/wctdm24xxp/base.c:920: sorry, unimplemented: called from here
make[3]: *** [/home/packages/dahdi-linux-2.5.0.1/drivers/dahdi/wctdm24xxp/base.o] Error 1
make[2]: *** [/home/packages/dahdi-linux-2.5.0.1/drivers/dahdi/wctdm24xxp] Error 2
make[1]: *** [module/home/packages/dahdi-linux-2.5.0.1/drivers/dahdi] Error 2
make[1]: Leaving directory `/usr/src/kernels/2.6.18-53.el5.sb-i586’
make: *** [modules] Error 2

searching on google has left me baffled over this.

Are you sure that CentOS 4.9 is a supported platform. I don’t think the developers will have built against it.

thanks for your response. I think I solved it, those with experience of this could advise whether I did the right thing or not…The problem seemed to start at base.c so I burrowed down to line 915 of the file /dahdi-linux-2.5.0.1/drivers/dahdi/wctdm24xxp/base.c and saw this:
static inline void
wctdm_setreg_initr(struct wctdm…etc etc)
I removed the word 'inline so it just read ‘static void’. I ran the make again and it eventually showed:
###################################################

DAHDI installed successfully.

If you have not done so before, install the package

dahdi-tools.

###################################################
do you think the install is ok, or would there have been a better solution?

Probably.

Hi

run dahdi_tool and dahdi_test will give you a good idea

Ian

@ianplain - there is no dahdi_tool on the system but there is dahdi_test. When I ran it though I got this:
[root@localhost sbin]# ./dahdi_test
’Unable to open dahdi interface: No such file or directory’. This is a command line only machine, so was it lookiing for a gui interface?
I did notice at the end of the dahdi-tools install it said:
“DAHDI tools installed successfully.
blah blah…
No hardware found”, which is probably right because I have nothing connected to the server at the mo.
any further thoughts appreciated

You need to load the dahdi drivers.

Just a note to say I do compile DAHDI against Centos 4.9 regularly but that the kernel version I believe is installed by default is “2.6.9-100.ELsmp” not “2.6.18-53.el5.sb-i586”. I’m not sure how the el5 kernel was installed on the Centos 4.9 installation.

So I’m not sure what the differences there. Also, in general, removing the inline decorators from those functions is safe. There are probably more “inlined” functions in the driver than there ought to be currently generally for legacy reasons.