Unable to install asterisk 14.4.0


#1

Hi,

We are unable to install asterisk 14.4.0. we are getting the below error while executing make command.

make[1]: *** No rule to make target ../main/modules.link', needed byasterisk’. Stop.
make: *** [main] Error 2


#2

How did you download Asterisk? What options are you using when building it?


#3

@jcolp

We are getting the below error while installing Asterisk 14.4.1

/codecs/modules.link …/formats/modules.link …/funcs/modules.link …/pbx/modules.link …/res/modules.link -> asterisk
/usr/bin/ld: Dwarf Error: Offset (4024) greater than or equal to .debug_abbrev size (1325).
…/res/res_parking.eo: In function __res_parking_data_start': (.data+0x0): multiple definition ofglobal_options’
/usr/bin/ld: Dwarf Error: Offset (1656) greater than or equal to .debug_abbrev size (1083).
…/res/res_hep.eo:(.data+0x0): first defined here
/usr/bin/ld: Dwarf Error: Offset (5268) greater than or equal to .debug_abbrev size (1607).
…/res/res_phoneprov.eo: In function ast_str_trim_blanks': (.text+0x280): multiple definition ofast_str_trim_blanks’
utils.o:/usr/src/asterisk-14.4.1/include/asterisk/strings.h:685: first defined here
/usr/bin/ld: Dwarf Error: found dwarf version ‘0’, this reader only handles version 2, 3 and 4 information.
…/res/res_phoneprov.eo: In function ast_threadstorage_set_ptr': (.text+0x18f0): multiple definition ofast_threadstorage_set_ptr’
utils.o:/usr/src/asterisk-14.4.1/include/asterisk/threadstorage.h:254: first defined here
/usr/bin/ld: Dwarf Error: found dwarf version ‘5438’, this reader only handles version 2, 3 and 4 information.
…/res/res_phoneprov.eo: In function _ast_strdup': (.text+0x1a60): multiple definition of_ast_strdup’
utils.o:/usr/src/asterisk-14.4.1/include/asterisk/utils.h:642: first defined here
/usr/bin/ld: Dwarf Error: found dwarf version ‘37121’, this reader only handles version 2, 3 and 4 information.
…/res/res_phoneprov.eo: In function ast_tvdiff_sec': (.text+0x0): multiple definition ofast_tvdiff_sec’
utils.o:/usr/src/asterisk-14.4.1/include/asterisk/time.h:53: first defined here
/usr/bin/ld: Dwarf Error: found dwarf version ‘52224’, this reader only handles version 2, 3 and 4 information.
…/res/res_phoneprov.eo: In function ast_str_append': (.text+0x2330): multiple definition ofast_str_append’
utils.o:/usr/src/asterisk-14.4.1/include/asterisk/strings.h:1122: first defined here
/usr/bin/ld: Dwarf Error: found dwarf version ‘0’, this reader only handles version 2, 3 and 4 information.
…/res/res_phoneprov.eo: In function ast_trim_blanks': (.text+0x610): multiple definition ofast_trim_blanks’
utils.o:/usr/src/asterisk-14.4.1/include/asterisk/strings.h:163: first defined here
/usr/bin/ld: Dwarf Error: found dwarf version ‘33280’, this reader only handles version 2, 3 and 4 information.
…/res/res_phoneprov.eo: In function ast_str_append_escapecommas': (.text+0x1750): multiple definition ofast_str_append_escapecommas’
utils.o:/usr/src/asterisk-14.4.1/include/asterisk/strings.h:1068: first defined here
/usr/bin/ld: Dwarf Error: found dwarf version ‘28416’, this reader only handles version 2, 3 and 4 information.
…/res/res_phoneprov.eo: In function ast_skip_blanks': (.text+0x220): multiple definition ofast_skip_blanks’
utils.o:/usr/src/asterisk-14.4.1/include/asterisk/strings.h:145: first defined here
/usr/bin/ld: Dwarf Error: found dwarf version ‘512’, this reader only handles version 2, 3 and 4 information.
…/res/res_phoneprov.eo: In function ast_tvcmp': (.text+0x140): multiple definition ofast_tvcmp’
utils.o:/usr/src/asterisk-14.4.1/include/asterisk/time.h:114: first defined here
/usr/bin/ld: Dwarf Error: found dwarf version ‘16350’, this reader only handles version 2, 3 and 4 information.
…/res/res_phoneprov.eo: In function ast_str_update': (.text+0x5b0): multiple definition ofast_str_update’
utils.o:/usr/src/asterisk-14.4.1/include/asterisk/strings.h:675: first defined here
/usr/bin/ld: Dwarf Error: found dwarf version ‘514’, this reader only handles version 2, 3 and 4 information.
…/res/res_phoneprov.eo: In function ast_atomic_fetchadd_int': (.text+0x1e40): multiple definition ofast_atomic_fetchadd_int’
utils.o:/usr/src/asterisk-14.4.1/include/asterisk/lock.h:685: first defined here
/usr/bin/ld: Dwarf Error: found dwarf version ‘3126’, this reader only handles version 2, 3 and 4 information.
…/res/res_phoneprov.eo: In function ast_atomic_dec_and_test': (.text+0x1e20): multiple definition ofast_atomic_dec_and_test’
utils.o:/usr/src/asterisk-14.4.1/include/asterisk/lock.h:732: first defined here
/usr/bin/ld: Dwarf Error: found dwarf version ‘1284’, this reader only handles version 2, 3 and 4 information.
…/res/res_phoneprov.eo: In function _ast_strndup': (.text+0x19e0): multiple definition of_ast_strndup’
utils.o:/usr/src/asterisk-14.4.1/include/asterisk/utils.h:674: first defined here
/usr/bin/ld: Dwarf Error: found dwarf version ‘116’, this reader only handles version 2, 3 and 4 information.
…/res/res_phoneprov.eo: In function ast_str_make_space': (.text+0x1b40): multiple definition ofast_str_make_space’
utils.o:/usr/src/asterisk-14.4.1/include/asterisk/strings.h:800: first defined here
/usr/bin/ld: Dwarf Error: found dwarf version ‘3094’, this reader only handles version 2, 3 and 4 information.
…/res/res_phoneprov.eo: In function ast_str_set_substr': (.text+0x1810): multiple definition ofast_str_set_substr’
utils.o:/usr/src/asterisk-14.4.1/include/asterisk/strings.h:1047: first defined here
/usr/bin/ld: Dwarf Error: found dwarf version ‘18732’, this reader only handles version 2, 3 and 4 information.
…/res/res_phoneprov.eo: In function ast_str_thread_get': (.text+0x1fd0): multiple definition ofast_str_thread_get’
utils.o:/usr/src/asterisk-14.4.1/include/asterisk/strings.h:885: first defined here
/usr/bin/ld: Dwarf Error: found dwarf version ‘512’, this reader only handles version 2, 3 and 4 information.
…/res/res_phoneprov.eo: In function ast_str_reset': (.text+0x260): multiple definition ofast_str_reset’
utils.o:/usr/src/asterisk-14.4.1/include/asterisk/strings.h:660: first defined here
/usr/bin/ld: Dwarf Error: found dwarf version ‘1453’, this reader only handles version 2, 3 and 4 information.
…/res/res_phoneprov.eo: In function ast_tsnow': (.text+0x1da0): multiple definition ofast_tsnow’
utils.o:/usr/src/asterisk-14.4.1/include/asterisk/time.h:157: first defined here
/usr/bin/ld: Dwarf Error: found dwarf version ‘258’, this reader only handles version 2, 3 and 4 information.
…/res/res_phoneprov.eo: In function ast_tvdiff_ms': (.text+0xc0): multiple definition ofast_tvdiff_ms’
utils.o:/usr/src/asterisk-14.4.1/include/asterisk/time.h:86: first defined here
/usr/bin/ld: Dwarf Error: found dwarf version ‘3113’, this reader only handles version 2, 3 and 4 information.
…/res/res_phoneprov.eo: In function ast_threadstorage_get_ptr': (.text+0x1930): multiple definition ofast_threadstorage_get_ptr’
utils.o:/usr/src/asterisk-14.4.1/include/asterisk/threadstorage.h:235: first defined here
/usr/bin/ld: Dwarf Error: found dwarf version ‘17005’, this reader only handles version 2, 3 and 4 information.
…/res/res_phoneprov.eo: In function ao2_unlock_and_unref': (.text+0x13f0): multiple definition ofao2_unlock_and_unref’
utils.o:/usr/src/asterisk-14.4.1/include/asterisk/astobj2.h:784: first defined here
/usr/bin/ld: Dwarf Error: found dwarf version ‘12813’, this reader only handles version 2, 3 and 4 information.
…/res/res_phoneprov.eo: In function ast_tvdiff_us': (.text+0x70): multiple definition ofast_tvdiff_us’
utils.o:/usr/src/asterisk-14.4.1/include/asterisk/time.h:72: first defined here
/usr/bin/ld: Dwarf Error: found dwarf version ‘0’, this reader only handles version 2, 3 and 4 information.
…/res/res_phoneprov.eo: In function ast_tveq': (.text+0x180): multiple definition ofast_tveq’
utils.o:/usr/src/asterisk-14.4.1/include/asterisk/time.h:133: first defined here
/usr/bin/ld: Dwarf Error: found dwarf version ‘65031’, this reader only handles version 2, 3 and 4 information.
…/res/res_phoneprov.eo: In function ast_samp2tv': (.text+0x1d0): multiple definition ofast_samp2tv’
utils.o:/usr/src/asterisk-14.4.1/include/asterisk/time.h:233: first defined here
/usr/bin/ld: Dwarf Error: found dwarf version ‘1024’, this reader only handles version 2, 3 and 4 information.
…/res/res_phoneprov.eo: In function ast_skip_nonblanks': (.text+0x240): multiple definition ofast_skip_nonblanks’
utils.o:/usr/src/asterisk-14.4.1/include/asterisk/strings.h:188: first defined here
/usr/bin/ld: Dwarf Error: found dwarf version ‘12’, this reader only handles version 2, 3 and 4 information.
…/res/res_phoneprov.eo: In function ast_str_strlen': (.text+0x2e0): multiple definition ofast_str_strlen’
utils.o:/usr/src/asterisk-14.4.1/include/asterisk/strings.h:700: first defined here
/usr/bin/ld: Dwarf Error: found dwarf version ‘116’, this reader only handles version 2, 3 and 4 information.
…/res/res_phoneprov.eo: In function ast_tvnow': (.text+0x1de0): multiple definition ofast_tvnow’
utils.o:/usr/src/asterisk-14.4.1/include/asterisk/time.h:143: first defined here
/usr/bin/ld: Dwarf Error: found dwarf version ‘1026’, this reader only handles version 2, 3 and 4 information.
…/res/res_phoneprov.eo: In function ao2_ref_and_lock': (.text+0x1340): multiple definition ofao2_ref_and_lock’
utils.o:/usr/src/asterisk-14.4.1/include/asterisk/astobj2.h:764: first defined here
/usr/bin/ld: Dwarf Error: found dwarf version ‘3151’, this reader only handles version 2, 3 and 4 information.
…/res/res_phoneprov.eo: In function ast_check_digits': (.text+0x360): multiple definition ofast_check_digits’
utils.o:/usr/src/asterisk-14.4.1/include/asterisk/strings.h:1143: first defined here
/usr/bin/ld: Dwarf Error: found dwarf version ‘1800’, this reader only handles version 2, 3 and 4 information.
…/res/res_phoneprov.eo: In function ast_str_set_escapecommas': (.text+0x1790): multiple definition ofast_str_set_escapecommas’
utils.o:/usr/src/asterisk-14.4.1/include/asterisk/strings.h:1061: first defined here
/usr/bin/ld: Dwarf Error: found dwarf version ‘12’, this reader only handles version 2, 3 and 4 information.
…/res/res_phoneprov.eo: In function ast_threadstorage_get': (.text+0x1ef0): multiple definition ofast_threadstorage_get’
utils.o:/usr/src/asterisk-14.4.1/include/asterisk/threadstorage.h:178: first defined here
/usr/bin/ld: Dwarf Error: found dwarf version ‘5’, this reader only handles version 2, 3 and 4 information.
…/res/res_phoneprov.eo: In function ast_str_size': (.text+0x2f0): multiple definition ofast_str_size’
utils.o:/usr/src/asterisk-14.4.1/include/asterisk/strings.h:711: first defined here
/usr/bin/ld: Dwarf Error: found dwarf version ‘512’, this reader only handles version 2, 3 and 4 information.
…/res/res_phoneprov.eo: In function ast_tv': (.text+0x1b0): multiple definition ofast_tv’
utils.o:/usr/src/asterisk-14.4.1/include/asterisk/time.h:218: first defined here
/usr/bin/ld: Dwarf Error: found dwarf version ‘1762’, this reader only handles version 2, 3 and 4 information.
…/res/res_phoneprov.eo: In function ast_str_set_va': (.text+0x1880): multiple definition ofast_str_set_va’
utils.o:/usr/src/asterisk-14.4.1/include/asterisk/strings.h:1022: first defined here
/usr/bin/ld: Dwarf Error: found dwarf version ‘26884’, this reader only handles version 2, 3 and 4 information.
…/res/res_phoneprov.eo: In function _ast_malloc': (.text+0x1cc0): multiple definition of_ast_malloc’
utils.o:/usr/src/asterisk-14.4.1/include/asterisk/utils.h:547: first defined here
/usr/bin/ld: Dwarf Error: found dwarf version ‘6912’, this reader only handles version 2, 3 and 4 information.
…/res/res_phoneprov.eo: In function _ast_vasprintf': (.text+0x1960): multiple definition of_ast_vasprintf’
utils.o:/usr/src/asterisk-14.4.1/include/asterisk/utils.h:716: first defined here
/usr/bin/ld: Dwarf Error: found dwarf version ‘0’, this reader only handles version 2, 3 and 4 information.
…/res/res_phoneprov.eo: In function ast_tech_to_upper': (.text+0x16f0): multiple definition ofast_tech_to_upper’
utils.o:/usr/src/asterisk-14.4.1/include/asterisk/strings.h:1161: first defined here
/usr/bin/ld: Dwarf Error: found dwarf version ‘11282’, this reader only handles version 2, 3 and 4 information.
…/res/res_phoneprov.eo: In function _ast_calloc': (.text+0x1c50): multiple definition of_ast_calloc’
utils.o:/usr/src/asterisk-14.4.1/include/asterisk/utils.h:573: first defined here
/usr/bin/ld: Dwarf Error: found dwarf version ‘36123’, this reader only handles version 2, 3 and 4 information.
…/res/res_phoneprov.eo: In function ast_str_append_substr': (.text+0x17d0): multiple definition ofast_str_append_substr’
utils.o:/usr/src/asterisk-14.4.1/include/asterisk/strings.h:1054: first defined here
/usr/bin/ld: Dwarf Error: found dwarf version ‘0’, this reader only handles version 2, 3 and 4 information.
…/res/res_phoneprov.eo: In function ast_str_append_va': (.text+0x1850): multiple definition ofast_str_append_va’
utils.o:/usr/src/asterisk-14.4.1/include/asterisk/strings.h:1040: first defined here
/usr/bin/ld: Dwarf Error: found dwarf version ‘3135’, this reader only handles version 2, 3 and 4 information.
…/res/res_phoneprov.eo: In function ast_str_buffer': (.text+0x300): multiple definition ofast_str_buffer’
utils.o:/usr/src/asterisk-14.4.1/include/asterisk/strings.h:722: first defined here
/usr/bin/ld: Dwarf Error: found dwarf version ‘37006’, this reader only handles version 2, 3 and 4 information.
…/res/res_phoneprov.eo: In function ast_tvzero': (.text+0x120): multiple definition ofast_tvzero’
utils.o:/usr/src/asterisk-14.4.1/include/asterisk/time.h:103: first defined here
/usr/bin/ld: Dwarf Error: found dwarf version ‘1024’, this reader only handles version 2, 3 and 4 information.
…/res/res_phoneprov.eo: In function ast_str_truncate': (.text+0x310): multiple definition ofast_str_truncate’
utils.o:/usr/src/asterisk-14.4.1/include/asterisk/strings.h:740: first defined here
/usr/bin/ld: Dwarf Error: found dwarf version ‘12’, this reader only handles version 2, 3 and 4 information.
…/res/res_phoneprov.eo: In function ast_str_set': (.text+0x2300): multiple definition ofast_str_set’
utils.o:/usr/src/asterisk-14.4.1/include/asterisk/strings.h:1096: first defined here
/usr/bin/ld: Dwarf Error: found dwarf version ‘130’, this reader only handles version 2, 3 and 4 information.
…/res/res_phoneprov.eo: In function ast_rq_is_int': (.text+0x390): multiple definition ofast_rq_is_int’
utils.o:/usr/src/asterisk-14.4.1/include/asterisk/config.h:1205: first defined here
/usr/bin/ld: Dwarf Error: found dwarf version ‘12804’, this reader only handles version 2, 3 and 4 information.
…/res/res_phoneprov.eo: In function ast_copy_string': (.text+0x18b0): multiple definition ofast_copy_string’
utils.o:/usr/src/asterisk-14.4.1/include/asterisk/strings.h:389: first defined here
/usr/bin/ld: Dwarf Error: found dwarf version ‘6912’, this reader only handles version 2, 3 and 4 information.
…/res/res_phoneprov.eo: In function ast_str_create': (.text+0x29c0): multiple definition ofast_str_create’
utils.o:/usr/src/asterisk-14.4.1/include/asterisk/strings.h:639: first defined here
/usr/bin/ld: Dwarf Error: found dwarf version ‘0’, this reader only handles version 2, 3 and 4 information.
…/res/res_phoneprov.eo: In function _ast_realloc': (.text+0x1ad0): multiple definition of_ast_realloc’
utils.o:/usr/src/asterisk-14.4.1/include/asterisk/utils.h:612: first defined here
/usr/bin/ld: Dwarf Error: found dwarf version ‘1028’, this reader only handles version 2, 3 and 4 information.
…/res/res_phoneprov.eo: In function ast_strip': (.text+0x2960): multiple definition ofast_strip’
utils.o:/usr/src/asterisk-14.4.1/include/asterisk/strings.h:210: first defined here
/usr/bin/ld: Dwarf Error: found dwarf version ‘12’, this reader only handles version 2, 3 and 4 information.
…/res/res_phoneprov.eo: In function ast_str_copy_string': (.text+0x1be0): multiple definition ofast_str_copy_string’
utils.o:/usr/src/asterisk-14.4.1/include/asterisk/strings.h:825: first defined here
/usr/bin/ld: Dwarf Error: Offset (3084) greater than or equal to .debug_abbrev size (1608).
…/res/res_pjsip_notify.eo: In function __res_pjsip_notify_data_start': (.data+0x0): multiple definition ofglobals’
features_config.o:(.data+0x0): first defined here
/usr/bin/ld: Dwarf Error: Offset (2128) greater than or equal to .debug_abbrev size (1316).
…/res/res_stasis_recording.eo: In function __res_stasis_recording_data_start': (.data+0x0): multiple definition ofoperations’
/usr/bin/ld: Dwarf Error: Offset (2448) greater than or equal to .debug_abbrev size (1465).
…/res/res_stasis_playback.eo:(.data+0x0): first defined here
/usr/bin/ld: Warning: size of symbol operations' changed from 168 in ../res/res_stasis_playback.eo to 144 in ../res/res_stasis_recording.eo /usr/bin/ld: Dwarf Error: Offset (16384) greater than or equal to .debug_abbrev size (1474). ../res/res_xmpp.eo: In function__res_xmpp_data_start’:
(.data+0x0): multiple definition of `global_options’
/usr/bin/ld: Dwarf Error: found dwarf version ‘0’, this reader only handles version 2, 3 and 4 information.
…/res/res_hep.eo:(.data+0x0): first defined here
collect2: ld returned 1 exit status
make[1]: *** [asterisk] Error 1
make: *** [main] Error 2


#4

You appear to have a broken tool chain, or you are trying to link object files compiled with an incompatible compiler.

I would say this was more OS than Asterisk related.


#5

@david551

Please tell me what I have to do for this.


#6

It is not a normal problem, so I have never experienced it and, therefore, I can’t work out what you have done wrong, but it is definitely not fundamentally an Asterisk one.

You may need to hire a consultant who specialises in your OS.