Installing from tarball res_adsi fails

Any help here will greatly appreciated as I try to exhaust all possibilities before putting this here.
Thanks for any assistance on this problem.

I am in a test qualification lab environment, so this is not a production system, but we are evaluating the software and procedures for the Asterisk load and build.
Running make after make menuselect I am getting the same error on the screen no matter what version I upgrade to on my system, HP DL320 server

Errors out on the ld command file res_adsi.c:362 every time, except unselecting res_adsi or do not select module embedding options, no options selected in the make menuselect for module embedding.

I have looked and looked to see if it something I have done, since it is no erroring out under a [CC] I do think it has to with gcc, ld seems to be where the problem is located. module linking.

If I do not select app_adsiprog and do not select res_adsi then the module embedding completes with no errors

See the error at the bottom, did want to clutter this with too many messages

CentOS 5.6
Linux 2.6.18-238.9.1.el5 #1 SMP Tue Apr 12 18:10:56 EDT 2011 i686 i686 i386 GNU/Linux

Installed packages
ncurses 5.9 updated this from 5.5 to 5.9

updated gcc manually from 4.1 to 4.6.0
gcc -v
Using built-in specs.
Target: i686-pc-linux-gnu
Configured with: ./configure
Thread model: posix
gcc version 4.6.0 (GCC)

updated ld from 2.17 t o 2.21
ld -v
GNU ld (GNU Binutils)

make -v
GNU Make 3.82
Built for i686-pc-linux-gnu

./configure passed with no errors
make menuselect
make install
make samples
make config
make progdocs very good tool thanks for the effort on all of this, very good tool.

[CC] recno/rec_utils.c -> recno/rec_utils.o
[AR] hash/hash.o hash/hash_bigkey.o hash/hash_buf.o hash/hash_func.o hash/hash_log2.o hash/hash_page.o hash/ndbm.o btree/bt_close.o btree/bt_conv.o btree/bt_debug.o btree/bt_delete.o btree/bt_get.o btree/bt_open.o btree/bt_overflow.o btree/bt_page.o btree/bt_put.o btree/bt_search.o btree/bt_seq.o btree/bt_split.o btree/bt_utils.o db/db.o mpool/mpool.o recno/rec_close.o recno/rec_delete.o recno/rec_get.o recno/rec_open.o recno/rec_put.o recno/rec_search.o recno/rec_seq.o recno/rec_utils.o -> libdb1.a
[LD] …/res/res_adsi.o abstract_jb.o acl.o alaw.o aoc.o app.o ast_expr2.o ast_expr2f.o asterisk.o astfd.o astmm.o astobj2.o audiohook.o autochan.o autoservice.o bridging.o callerid.o ccss.o cdr.o cel.o channel.o chanvars.o cli.o config.o data.o datastore.o db.o devicestate.o dial.o dns.o dnsmgr.o dsp.o enum.o event.o features.o file.o fixedjitterbuf.o frame.o framehook.o fskmodem.o global_datastores.o hashtab.o heap.o http.o image.o indications.o io.o jitterbuf.o loader.o lock.o logger.o manager.o md5.o netsock.o netsock2.o pbx.o plc.o poll.o privacy.o rtp_engine.o say.o sched.o security_events.o sha1.o slinfactory.o srv.o ssl.o stdtime/localtime.o strcompat.o strings.o stun.o syslog.o taskprocessor.o tcptls.o tdd.o term.o test.o threadstorage.o timing.o translate.o udptl.o ulaw.o utils.o version.o xml.o xmldoc.o editline/libedit.a db1-ast/libdb1.a …/apps/ …/bridges/ …/cdr/ …/channels/ …/codecs/ …/formats/ …/funcs/ …/pbx/ …/res/ -> asterisk
/usr/bin/ld: Dwarf Error: Abbrev offset (3240) greater than or equal to .debug_abbrev size (1396).
…/res/res_adsi.eo: In function ast_adsi_disconnect_session': (.text+0x3010): multiple definition ofast_adsi_disconnect_session’
…/res/res_adsi.o:/Asterisk/asterisk- first defined here
…/res/res_adsi.eo: In function ast_adsi_get_cpeid': (.text+0x3120): multiple definition ofast_adsi_get_cpeid’
…/res/res_adsi.o:/Asterisk/asterisk- first defined here
…/res/res_adsi.eo: In function ast_adsi_download_connect': (.text+0x2da0): multiple definition ofast_adsi_download_connect’
…/res/res_adsi.o:/Asterisk/asterisk- first defined here
…/res/res_adsi.eo: In function ast_adsi_transmit_message': (.text+0x2b80): multiple definition ofast_adsi_transmit_message’
…/res/res_adsi.o:/Asterisk/asterisk- first defined here
…/res/res_adsi.eo: In function ast_adsi_load_soft_key': (.text+0x2bc0): multiple definition ofast_adsi_load_soft_key’
…/res/res_adsi.o:/Asterisk/asterisk- first defined here
…/res/res_adsi.eo: In function ast_adsi_set_keys': (.text+0x3990): multiple definition ofast_adsi_set_keys’
…/res/res_adsi.o:/Asterisk/asterisk- first defined here
…/res/res_adsi.eo: In function ast_adsi_read_encoded_dtmf': (.text+0x3070): multiple definition ofast_adsi_read_encoded_dtmf’
…/res/res_adsi.o:/Asterisk/asterisk- first defined here
…/res/res_adsi.eo: In function ast_adsi_get_cpeinfo': (.text+0x32e0): multiple definition ofast_adsi_get_cpeinfo’
…/res/res_adsi.o:/Asterisk/asterisk- first defined here
…/res/res_adsi.eo: In function ast_adsi_set_line': (.text+0x3a20): multiple definition ofast_adsi_set_line’
…/res/res_adsi.o:/Asterisk/asterisk- first defined here
…/res/res_adsi.eo: In function ast_adsi_end_download': (.text+0x2b30): multiple definition ofast_adsi_end_download’
…/res/res_adsi.o:/Asterisk/asterisk- first defined here
…/res/res_adsi.eo: In function ast_adsi_print': (.text+0x3bb0): multiple definition ofast_adsi_print’
…/res/res_adsi.o:/Asterisk/asterisk- first defined here
…/res/res_adsi.eo: In function ast_adsi_download_disconnect': (.text+0x3760): multiple definition ofast_adsi_download_disconnect’
…/res/res_adsi.o:/Asterisk/asterisk- first defined here
…/res/res_adsi.eo: In function ast_adsi_unload_session': (.text+0x4010): multiple definition ofast_adsi_unload_session’
…/res/res_adsi.o:/Asterisk/asterisk- first defined here
…/res/res_adsi.eo: In function ast_adsi_input_format': (.text+0x38d0): multiple definition ofast_adsi_input_format’
…/res/res_adsi.o:/Asterisk/asterisk- first defined here
…/res/res_adsi.eo: In function ast_adsi_begin_download': (.text+0x2ef0): multiple definition ofast_adsi_begin_download’
…/res/res_adsi.o:/Asterisk/asterisk- first defined here
…/res/res_adsi.eo: In function ast_adsi_display': (.text+0x3780): multiple definition ofast_adsi_display’
…/res/res_adsi.o:/Asterisk/asterisk- first defined here
…/res/res_adsi.eo: In function ast_adsi_query_cpeinfo': (.text+0x3050): multiple definition ofast_adsi_query_cpeinfo’
…/res/res_adsi.o:/Asterisk/asterisk- first defined here
…/res/res_adsi.eo: In function ast_adsi_query_cpeid': (.text+0x3030): multiple definition ofast_adsi_query_cpeid’
…/res/res_adsi.o:/Asterisk/asterisk- first defined here
…/res/res_adsi.eo: In function ast_adsi_input_control': (.text+0x3860): multiple definition ofast_adsi_input_control’
…/res/res_adsi.o:/Asterisk/asterisk- first defined here
…/res/res_adsi.eo: In function ast_adsi_clear_screen': (.text+0x3700): multiple definition ofast_adsi_clear_screen’
…/res/res_adsi.o:/Asterisk/asterisk- first defined here
…/res/res_adsi.eo: In function ast_adsi_channel_restore': (.text+0x3a70): multiple definition ofast_adsi_channel_restore’
…/res/res_adsi.o:/Asterisk/asterisk- first defined here
…/res/res_adsi.eo: In function ast_adsi_load_session': (.text+0x3d40): multiple definition ofast_adsi_load_session’
…/res/res_adsi.o:/Asterisk/asterisk- first defined here
…/res/res_adsi.eo: In function ast_adsi_data_mode': (.text+0x36c0): multiple definition ofast_adsi_data_mode’
…/res/res_adsi.o:/Asterisk/asterisk- first defined here
…/res/res_adsi.eo: In function ast_adsi_voice_mode': (.text+0x3720): multiple definition ofast_adsi_voice_mode’
…/res/res_adsi.o:/Asterisk/asterisk- first defined here
…/res/res_adsi.eo: In function ast_adsi_clear_soft_keys': (.text+0x36e0): multiple definition ofast_adsi_clear_soft_keys’
…/res/res_adsi.o:/Asterisk/asterisk- first defined here
…/res/res_adsi.eo: In function ast_adsi_available': (.text+0x3740): multiple definition ofast_adsi_available’
…/res/res_adsi.o:/Asterisk/asterisk- first defined here
…/res/res_adsi.eo: In function ast_adsi_connect_session': (.text+0x2d10): multiple definition ofast_adsi_connect_session’
…/res/res_adsi.o:/Asterisk/asterisk- first defined here
…/res/res_adsi.eo: In function ast_adsi_transmit_message_full': (.text+0x2600): multiple definition ofast_adsi_transmit_message_full’
…/res/res_adsi.o:/Asterisk/asterisk- first defined here
collect2: ld returned 1 exit status
make[1]: *** [asterisk] Error 1
make: *** [main] Error 2
[root@asterisk asterisk-]#


Great. Disable them and move on. Unless you have ADSI-capable phones attached to FXS interfaces on Digium telephony cards, you don’t need to worry about having this in your build.

You’re welcome to file an issue report on the tracker. Guidelines are here:


Thanks for the early reply,

I will wait until we get the cards, we will testing the VoIP trunking via Digium T1/PRI and using the FXO/FXS card as well, mainly for fax testing across the FXS to a fax machine.
If I have a problem once the cards are installed I will see the error persists. I think it will as the ld linking module at the res_adsi has no bearing on the card being installed, but I guess I will need to have it to verify.