DAHDI Compile-time options

Have just done a rebuild and updated asterisk to 1.6.2.6
then i installed dahdi 2.2.1.1

however when i try and load chan_dahdi i get

module load chan_dahdi
[Apr 4 11:38:51] WARNING[7509]: loader.c:723 inspect_module: Module ‘chan_dahdi.so’ was not compiled with the same compile-time options as this version of Asterisk.
[Apr 4 11:38:51] WARNING[7509]: loader.c:724 inspect_module: Module ‘chan_dahdi.so’ will not be initialized as it may cause instability.
[Apr 4 11:38:51] WARNING[7509]: loader.c:807 load_resource: Module ‘chan_dahdi’ could not be loaded.
Unable to load module chan_dahdi
Command ‘module load chan_dahdi’ failed.

any advice would be appreciated
cheers

You will want to go the other way. First re-compile DAHDI then Asterisk. The asterisk configure should pick up the fact that DAHDI is there.

Check the timeday when you compile asterisk and when you compile dahdi this is an error because the system clock is not synchronized with ntp service. So compile everything again.

have re-compiled dahdi and then asterisk and also made sure that my NTP was working
but still get the same error when i try to load chan_dahdi