[Asterisk-Users] asterisk installation error
andrewg at felinemenace.org
andrewg at felinemenace.org
Sun Nov 16 21:49:19 MST 2003
On Sun, Nov 16, 2003 at 08:33:22PM -0800, C M wrote:
> hi,
>
> i am getting these errors while installing asterisk. i
> reconfigured kernel and i have all the modules
> installed.
> kernel-source
> readline
> readline-devel
> openssl
> openssl-devel
>
> this is the error: (at the last part of the
> installation)
>
> gcc -g -o asterisk -Wl,-E io.o sched.o logger.o
> frame.o loader.o config.o channel.o translate.o file.o
> say.o pbx.o cli.o md5.o term.o ulaw.o alaw.o
> callerid.o fskmodem.o image.o app.o cdr.o tdd.o acl.o
> rtp.o manager.o asterisk.o ast_expr.o dsp.o chanvars.o
> indications.o autoservice.o db.o privacy.o astmm.o
> enum.o srv.o dns.o -lresolv editline/libedit.a
> db1-ast/libdb1.a stdtime/libtime.a
seems like the libraries it uses didn't get compiled it, this might be a
automake/etc problem. You can go through manually and add -ldl -lm -lphread
(might be -ptread on yours), and stuff like -lncurses (might be -lcurses) and
stuff. You might have more fun by trying make clean and recompiling.
> loader.o: In function `ast_unload_resource':
> /usr/src/asterisk/loader.c:132: undefined reference to
> `dlclose'
> loader.o: In function `ast_load_resource':
> /usr/src/asterisk/loader.c:226: undefined reference to
> `dlopen'
> /usr/src/asterisk/loader.c:228: undefined reference to
> `dlerror'
> /usr/src/asterisk/loader.c:233: undefined reference to
> `dlsym'
> /usr/src/asterisk/loader.c:235: undefined reference to
> `dlsym'
> /usr/src/asterisk/loader.c:240: undefined reference to
> `dlsym'
> /usr/src/asterisk/loader.c:242: undefined reference to
> `dlsym'
> /usr/src/asterisk/loader.c:247: undefined reference to
> `dlsym'
> loader.o:/usr/src/asterisk/loader.c:249: more
> undefined references to `dlsym' follow
> loader.o: In function `ast_load_resource':
> /usr/src/asterisk/loader.c:282: undefined reference to
> `dlclose'
> loader.o: In function `ast_update_module_list':
> /usr/src/asterisk/loader.c:434: undefined reference to
> `pthread_mutex_trylock'
> channel.o: In function `ast_queue_frame':
> /usr/src/asterisk/channel.c:396: undefined reference
> to `pthread_kill'
> channel.o: In function `ast_do_masquerade':
> /usr/src/asterisk/channel.c:2112: undefined reference
> to `pthread_kill'
> channel.o: In function `tonepair_generator':
> /usr/src/asterisk/channel.c:2418: undefined reference
> to `sin'
> /usr/src/asterisk/channel.c:2418: undefined reference
> to `sin'
> channel.o: In function `ast_softhangup':
> /usr/src/asterisk/channel.c:587: undefined reference
> to `pthread_kill'
> channel.o: In function `ast_softhangup_nolock':
> /usr/src/asterisk/channel.c:587: undefined reference
> to `pthread_kill'
> pbx.o: In function `ast_async_goto':
> /usr/src/asterisk/pbx.c:1873: undefined reference to
> `pthread_create'
> pbx.o: In function `ast_pbx_outgoing_exten':
> /usr/src/asterisk/pbx.c:1873: undefined reference to
> `pthread_create'
> /usr/src/asterisk/pbx.c:3857: undefined reference to
> `pthread_create'
> pbx.o: In function `ast_pbx_outgoing_app':
> /usr/src/asterisk/pbx.c:3920: undefined reference to
> `pthread_create'
> /usr/src/asterisk/pbx.c:3952: undefined reference to
> `pthread_create'
> pbx.o:/usr/src/asterisk/pbx.c:1873: more undefined
> references to `pthread_create' follow
> callerid.o: In function `callerid_init':
> /usr/src/asterisk/callerid.c:97: undefined reference
> to `cos'
> /usr/src/asterisk/callerid.c:98: undefined reference
> to `sin'
> /usr/src/asterisk/callerid.c:99: undefined reference
> to `cos'
> /usr/src/asterisk/callerid.c:100: undefined reference
> to `sin'
> /usr/src/asterisk/callerid.c:101: undefined reference
> to `cos'
> /usr/src/asterisk/callerid.c:102: undefined reference
> to `sin'
> /usr/src/asterisk/callerid.c:103: undefined reference
> to `cos'
> /usr/src/asterisk/callerid.c:104: undefined reference
> to `sin'
> /usr/src/asterisk/callerid.c:105: undefined reference
> to `cos'
> /usr/src/asterisk/callerid.c:106: undefined reference
> to `sin'
> callerid.o: In function `vmwi_generate':
> /usr/src/asterisk/callerid.c:441: undefined reference
> to `rint'
> /usr/src/asterisk/callerid.c:441: undefined reference
> to `rint'
> /usr/src/asterisk/callerid.c:441: undefined reference
> to `rint'
> /usr/src/asterisk/callerid.c:444: undefined reference
> to `rint'
> /usr/src/asterisk/callerid.c:446: undefined reference
> to `rint'
> callerid.o:/usr/src/asterisk/callerid.c:446: more
> undefined references to `rint' follow
> tdd.o: In function `tdd_init':
> /usr/src/asterisk/tdd.c:70: undefined reference to
> `cos'
> /usr/src/asterisk/tdd.c:71: undefined reference to
> `sin'
> /usr/src/asterisk/tdd.c:72: undefined reference to
> `cos'
> /usr/src/asterisk/tdd.c:73: undefined reference to
> `sin'
> manager.o: In function `accept_thread':
> /usr/src/asterisk/manager.c:753: undefined reference
> to `pthread_create'
> manager.o: In function `init_manager':
> /usr/src/asterisk/manager.c:938: undefined reference
> to `pthread_create'
> asterisk.o: In function `listener':
> /usr/src/asterisk/asterisk.c:254: undefined reference
> to `pthread_create'
> asterisk.o: In function `ast_makesocket':
> /usr/src/asterisk/asterisk.c:307: undefined reference
> to `pthread_create'
> asterisk.o: In function `console_verboser':
> /usr/src/asterisk/asterisk.c:559: undefined reference
> to `pthread_kill'
> asterisk.o: In function `main':
> /usr/src/asterisk/asterisk.c:1372: undefined reference
> to `pthread_sigmask'
> /usr/src/asterisk/asterisk.c:1435: undefined reference
> to `pthread_sigmask'
> dsp.o: In function `ast_dtmf_detect_init':
> /usr/src/asterisk/dsp.c:213: undefined reference to
> `cos'
> /usr/src/asterisk/dsp.c:213: undefined reference to
> `cos'
> /usr/src/asterisk/dsp.c:213: undefined reference to
> `cos'
> /usr/src/asterisk/dsp.c:213: undefined reference to
> `cos'
> /usr/src/asterisk/dsp.c:213: undefined reference to
> `cos'
> dsp.o:/usr/src/asterisk/dsp.c:213: more undefined
> references to `cos' follow
> indications.o: In function `playtones_generator':
> /usr/src/asterisk/indications.c:106: undefined
> reference to `sin'
> /usr/src/asterisk/indications.c:106: undefined
> reference to `sin'
> autoservice.o: In function `ast_autoservice_start':
> /usr/src/asterisk/autoservice.c:109: undefined
> reference to `pthread_create'
> /usr/src/asterisk/autoservice.c:115: undefined
> reference to `pthread_kill'
> autoservice.o: In function `ast_autoservice_stop':
> /usr/src/asterisk/autoservice.c:146: undefined
> reference to `pthread_kill'
> editline/libedit.a(editline.o_a): In function
> `term_move_to_line':
> /usr/src/asterisk/editline/term.c:554: undefined
> reference to `tgoto'
> /usr/src/asterisk/editline/term.c:554: undefined
> reference to `tputs'
> /usr/src/asterisk/editline/term.c:567: undefined
> reference to `tgoto'
> /usr/src/asterisk/editline/term.c:567: undefined
> reference to `tputs'
> /usr/src/asterisk/editline/term.c:572: undefined
> reference to `tputs'
> editline/libedit.a(editline.o_a): In function
> `term_move_to_char':
> /usr/src/asterisk/editline/term.c:643: undefined
> reference to `tgoto'
> /usr/src/asterisk/editline/term.c:643: undefined
> reference to `tputs'
> editline/libedit.a(editline.o_a): In function
> `term_deletechars':
> /usr/src/asterisk/editline/term.c:734: undefined
> reference to `tgoto'
> /usr/src/asterisk/editline/term.c:734: undefined
> reference to `tputs'
> /usr/src/asterisk/editline/term.c:739: undefined
> reference to `tputs'
> /usr/src/asterisk/editline/term.c:743: undefined
> reference to `tputs'
> /usr/src/asterisk/editline/term.c:746: undefined
> reference to `tputs'
> editline/libedit.a(editline.o_a): In function
> `term_insertwrite':
> /usr/src/asterisk/editline/term.c:775: undefined
> reference to `tgoto'
> /usr/src/asterisk/editline/term.c:775: undefined
> reference to `tputs'
> /usr/src/asterisk/editline/term.c:782: undefined
> reference to `tputs'
> /usr/src/asterisk/editline/term.c:790: undefined
> reference to `tputs'
> /usr/src/asterisk/editline/term.c:792: undefined
> reference to `tputs'
> /usr/src/asterisk/editline/term.c:797: undefined
> reference to `tputs'
> editline/libedit.a(editline.o_a):/usr/src/asterisk/editline/term.c:805:
> more undefined references to `tputs' follow
> editline/libedit.a(editline.o_a): In function
> `term_set':
> /usr/src/asterisk/editline/term.c:911: undefined
> reference to `tgetent'
> /usr/src/asterisk/editline/term.c:929: undefined
> reference to `tgetflag'
> /usr/src/asterisk/editline/term.c:930: undefined
> reference to `tgetflag'
> /usr/src/asterisk/editline/term.c:932: undefined
> reference to `tgetflag'
> /usr/src/asterisk/editline/term.c:933: undefined
> reference to `tgetflag'
> /usr/src/asterisk/editline/term.c:935: undefined
> reference to `tgetflag'
> editline/libedit.a(editline.o_a):/usr/src/asterisk/editline/term.c:936:
> more undefined references to `tgetflag' follow
> editline/libedit.a(editline.o_a): In function
> `term_set':
> /usr/src/asterisk/editline/term.c:938: undefined
> reference to `tgetnum'
> /usr/src/asterisk/editline/term.c:939: undefined
> reference to `tgetnum'
> /usr/src/asterisk/editline/term.c:941: undefined
> reference to `tgetstr'
> editline/libedit.a(editline.o_a): In function
> `term_echotc':
> /usr/src/asterisk/editline/term.c:1439: undefined
> reference to `tgetstr'
> /usr/src/asterisk/editline/term.c:1574: undefined
> reference to `tgoto'
> /usr/src/asterisk/editline/term.c:1574: undefined
> reference to `tputs'
> collect2: ld returned 1 exit status
> make: *** [asterisk] Error 1
> [root at localhost asterisk]#
>
>
> =====
> Designs
>
> __________________________________
> Do you Yahoo!?
> Protect your identity with Yahoo! Mail AddressGuard
> http://antispam.yahoo.com/whatsnewfree
> _______________________________________________
> Asterisk-Users mailing list
> Asterisk-Users at lists.digium.com
> http://lists.digium.com/mailman/listinfo/asterisk-users
More information about the asterisk-users
mailing list