DAHDI Make Error Upgrading Asterisk

We are receiving an error when attempting to run the make for the DAHDI driver. We currently have Asterisk 1.4.41 running on CentOS 5.11.

We are attempting to upgrade to Asterisk 1.8.

We have retrieved the DAHDI

When we run the make command we get the following error:

/usr/src/dahdi-linux-complete- error: implicit declaration of function âtry_wait_for_completionâ

I am not sure what is causing the make to fail.

Full Output:

make -C linux all
make[1]: Entering directory /usr/src/dahdi-linux-complete-' make -C drivers/dahdi/firmware firmware-loaders make[2]: Entering directory/usr/src/dahdi-linux-complete-’
make[2]: Leaving directory /usr/src/dahdi-linux-complete-' make -C /lib/modules/2.6.18-92.1.22.el5/build SUBDIRS=/usr/src/dahdi-linux-complete- DAHDI_INCLUDE=/usr/src/dahdi-linux-complete- DAHDI_MODULES_EXTRA=" " HOTPLUG_FIRMWARE=yes modules DAHDI_BUILD_ALL=m make[2]: Entering directory/usr/src/kernels/2.6.18-92.1.22.el5-i686’
CC [M] /usr/src/dahdi-linux-complete-
/usr/src/dahdi-linux-complete- In function âwcxb_spi_syncâ:
/usr/src/dahdi-linux-complete- error: implicit declaration of function âtry_wait_for_completionâ
make[3]: *** [/usr/src/dahdi-linux-complete-] Error 1
make[2]: *** [module/usr/src/dahdi-linux-complete-] Error 2
make[2]: Leaving directory /usr/src/kernels/2.6.18-92.1.22.el5-i686' make[1]: *** [modules] Error 2 make[1]: Leaving directory/usr/src/dahdi-linux-complete-’
make: *** [all] Error 2