[asterisk-embedded] how to solve this problem

Tzafrir Cohen tzafrir.cohen at xorcom.com
Sun Apr 27 11:03:17 CDT 2014


On Sat, Apr 26, 2014 at 06:18:33PM +0100, Mohammed Essaid Mezerreg wrote:
> hello,
> while cross-compling asterisk to run on openrisc 1200 I recieved this errors
> 
> [LD] abstract_jb.o acl.o adsi.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  -> asterisk
> /opt/or1k-toolchain/lib/gcc/or1k-linux-uclibc/4.9.0/../../../../or1k-linux-uclibc/bin/ld:
> cannot find -lresolv
> utils.o: In function `ast_gethostbyname':
> /home/mohessaid/asterisk-1.8.19.0/main/utils.c:228: warning:
> gethostbyname_r is obsolescent, use getnameinfo() instead.
> collect2: error: ld returned 1 exit status
> make[1]: *** [asterisk] Error 1
> make: *** [main] Error 2

Do you get the same errors if you try to build Asterisk with uclibc on
x86?

-- 
               Tzafrir Cohen
icq#16849755              jabber:tzafrir.cohen at xorcom.com
+972-50-7952406           mailto:tzafrir.cohen at xorcom.com
http://www.xorcom.com



More information about the asterisk-embedded mailing list