[asterisk-dev] Developing Asterisk Modules: invalid ELF header error

Tony Mountifield tony at softins.clara.co.uk
Wed Nov 7 04:27:27 CST 2007

In article <6a108f480711070149gfa6d118m29944ce063a5d9b8 at mail.gmail.com>,
Smith Gedion <gedion.smith at gmail.com> wrote:
> Hi Asterisk Developers,
> I'm compiling a third party asterisk module on suse linux 10.2 for
> asterisk 1.2.24 but after successfully compiling and installing, it
> gives the following error on trying to start asterisk. This module was
> initially developed for asterisk 1.2.17 on fedora.
> ----
> ....
> [app_privacy.so] => (Require phone number to be entered, if no CallerID sent)
> [app_waitforring.so] => (Waits until first ring after time)
> [app_testapp.so] => (Test App)
> Nov  7 12:04:59 WARNING[24639]: loader.c:326 __load_resource:
> /etc/asterisk/testapp.conf: invalid ELF header
> Segmentation fault
> pbx:/usr/local/src/testapp #
> -----

That looks like it is trying to load /etc/asterisk/testapp.conf as an
executable module for some reason!

What is in your modules.conf file?

It's difficult to say more without seeing the module source code.

Tony Mountifield
Work: tony at softins.co.uk - http://www.softins.co.uk
Play: tony at mountifield.org - http://tony.mountifield.org

More information about the asterisk-dev mailing list