Module compiled with the same compile-time options

Is it possible to use a asterisk version which was installed via

yum install asterisk

together with an self compiled module?
How to find out which compile-time options shall be used?

We use:
Asterisk built by mockbuild @ on a i686 running Linux on 2008-10-16 21:37:11 UTC

on FC10

but receive the error message:

[Dec 9 11:24:34] WARNING[1717]: loader.c:636 inspect_module: Module ‘’ was not compiled with the same compile-time options as this version of Asterisk.
[Dec 9 11:24:34] WARNING[1717]: loader.c:637 inspect_module: Module ‘’ will not be initialized as it may cause instability.
[Dec 9 11:24:34] WARNING[1717]: loader.c:675 load_resource: Module ‘’ could not be loaded.



I know this thread is long dead, but it’s still amongst the first search results for the problem.
It probably isn’t the recommended solution, but if you just want some additional features from a module, the easiest method is to grab the sources, recompile the bare minimum you need and replace the hash with the one that is in the modules that came with the rpm.
Afterwards the modules load just fine.