[Asterisk-Users] compile in uclibc enviroment

Holger von Ameln holger at von.ameln.de
Thu Jun 19 02:47:20 MST 2003


Marian Danisek wrote:

>hello,
>
>i try to compile * in uclibc enviroment (uclibc 0.9.19 ), but still
>getting following error 
>
>does anyone know how to solve it ?
>
>regards 
>
>Marian
>
>
>---------
>
>gcc -g  -o asterisk -rdynamic 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 -ldl -lpthread
>-lncurses -lm -lresolv   editline/libedit.a db1-ast/libdb1.a
>enum.o: In function `ast_get_enum':
>/usr/src/asterisk-cvs/enum.c:279: undefined reference to `__res_ninit'
>/usr/src/asterisk-cvs/enum.c:307: undefined reference to `__res_nsearch'
>/usr/src/asterisk-cvs/enum.c:325: undefined reference to `__res_nclose'
>enum.o: In function `parse_naptr':
>/usr/src/asterisk-cvs/enum.c:157: undefined reference to `__dn_expand'
>srv.o: In function `ast_get_srv':
>/usr/src/asterisk-cvs/srv.c:279: undefined reference to `__res_ninit'
>/usr/src/asterisk-cvs/srv.c:282: undefined reference to `__res_nsearch'
>/usr/src/asterisk-cvs/srv.c:297: undefined reference to `__res_nclose'
>srv.o: In function `parse_srv':
>/usr/src/asterisk-cvs/srv.c:136: undefined reference to `__dn_expand'
>collect2: ld returned 1 exit status
>make: *** [asterisk] Error 1
>
>  
>
Hi,

Stephen Davis offered to send me a patch that leaves out enum support. 
That would at least solve the undefined references to res_ninit, 
res_nsearch and res_nclose in enum.c.

Cheers,
Holger




More information about the asterisk-users mailing list