Summary:ASTERISK-19241: Cannot compile with Embedded Modules
Reporter:Joern Krebs (smartbyte)Labels:
Date Opened:2012-01-23 19:34:30.000-0600Date Closed:2015-03-15 11:56:32
Versions:SVN Frequency of
is related toASTERISK-20761 Asterisk 11 Compile errors when embedding modules (/usr/bin/ld: Dwarf Error: ...)
Environment:Multiple replicated on (Suse 8.1, Ubuntu 10.04)Attachments:
Description:I published this in an Asterisk Forum where one User told me to put it in here, so I do:

Everytime, I compile Asterisk with all modules embedded, I am getting the error, that:
make[1]: *** No rule to make target `../main/modules.link', needed by `asterisk'.  Stop.
make: *** [main] Error 2

To fix this I x (=emacs) into the makeopts.embed_rules file:
root@asterisk:/usr/src/asterisk-10# x makeopts.embed_rules

and delete the line "(something)./main/modules.link"

after that I start make again, and evrything works:
root@asterisk:/usr/src/asterisk-10# make

I think the error is, because I select to embed ALL modules, the script tries to include the modules from the main directory too, problem is: There are no modules to embed in that directory, thats' why the modules.link does not get created.

But: I can hardly read and code C, but I cannot read Makefiles at all, or write configure scripts to create Makefiles.
Can please someone else fix this?
Comments:By: Paul Belanger (pabelanger) 2012-01-28 11:47:28.773-0600


By: saghul (saghul) 2013-01-17 06:11:29.230-0600

I'm having the same problem on Asterisk 11 (rev 379373). I could get a little further in the compilation after making the change suggested by the OP, however the compilation fails as follows:

By: Corey Farrell (coreyfarrell) 2013-08-22 13:19:40.192-0500

This issue can be resolved by embedded_modules.patch posted to related ticket [ASTERISK-20761|https://issues.asterisk.org/jira/browse/ASTERISK-20761].

By: Matt Jordan (mjordan) 2015-03-15 11:56:32.378-0500

Closing out as a duplicate of ASTERISK-20761, since it has a patch.