[Asterisk-Dev] uClibc compile problem

fli4l-l00ser at gmx.net fli4l-l00ser at gmx.net
Wed Dec 8 10:26:05 MST 2004


Hi list,

I have a problem with Asterisk and uClibc.

I already got the current prebuilt uClibc from www.uclibc.org and 
compiled asterisk with this.

This is the result:

for x in res channels pbx apps codecs formats agi cdr astman stdtime; do 
make -C $x depend || exit 1 ; done
make[1]: Entering directory `/usr/src/asterisk/res'
make[1]: Nothing to be done for `depend'.
make[1]: Leaving directory `/usr/src/asterisk/res'
make[1]: Entering directory `/usr/src/asterisk/channels'
make[1]: Nothing to be done for `depend'.
make[1]: Leaving directory `/usr/src/asterisk/channels'
make[1]: Entering directory `/usr/src/asterisk/pbx'
make[1]: Nothing to be done for `depend'.
make[1]: Leaving directory `/usr/src/asterisk/pbx'
make[1]: Entering directory `/usr/src/asterisk/apps'
make[1]: Nothing to be done for `depend'.
make[1]: Leaving directory `/usr/src/asterisk/apps'
make[1]: Entering directory `/usr/src/asterisk/codecs'
make[1]: Nothing to be done for `depend'.
make[1]: Leaving directory `/usr/src/asterisk/codecs'
make[1]: Entering directory `/usr/src/asterisk/formats'
make[1]: Nothing to be done for `depend'.
make[1]: Leaving directory `/usr/src/asterisk/formats'
make[1]: Entering directory `/usr/src/asterisk/agi'
make[1]: Nothing to be done for `depend'.
make[1]: Leaving directory `/usr/src/asterisk/agi'
make[1]: Entering directory `/usr/src/asterisk/cdr'
make[1]: Nothing to be done for `depend'.
make[1]: Leaving directory `/usr/src/asterisk/cdr'
make[1]: Entering directory `/usr/src/asterisk/astman'
make[1]: Nothing to be done for `depend'.
make[1]: Leaving directory `/usr/src/asterisk/astman'
make[1]: Entering directory `/usr/src/asterisk/stdtime'
make[1]: Nothing to be done for `depend'.
make[1]: Leaving directory `/usr/src/asterisk/stdtime'
cd editline && unset CFLAGS LIBS && test -f config.h || ./configure
make -C editline libedit.a
make[1]: Entering directory `/usr/src/asterisk/editline'
make[1]: `libedit.a' is up to date.
make[1]: Leaving directory `/usr/src/asterisk/editline'
make[1]: Entering directory `/usr/src/asterisk/db1-ast'
make[1]: `libdb1.a' is up to date.
make[1]: Leaving directory `/usr/src/asterisk/db1-ast'
make[1]: Entering directory `/usr/src/asterisk/stdtime'
make[1]: `libtime.a' is up to date.
make[1]: Leaving directory `/usr/src/asterisk/stdtime'
if [ -d CVS ] && ! [ -f .version ]; then echo 
CVS-HEAD-08/13/04-12:00:00-BRI-stuffed-0.1.0-RC4a > .version; fi
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 aescrypt.o 
aestab.o aeskey.o utils.o  editline/libedit.a db1-ast/libdb1.a 
stdtime/libtime.a -ldl -lpthread -lncurses -lm -lresolv   -lssl
dns.o(.text+0x2a): In function `ast_search_dns':
/usr/src/asterisk/dns.c:174: undefined reference to `__res_ninit'
dns.o(.text+0x51):/usr/src/asterisk/dns.c:175: undefined reference to 
`__res_nsearch'
dns.o(.text+0x91):/usr/src/asterisk/dns.c:194: undefined reference to 
`__res_nclose'
collect2: ld returned 1 exit status
make: *** [asterisk] Error 1

Is there someone outside who can help me with this problem?

Many thanks in advance.

cu
Jürgen




More information about the asterisk-dev mailing list