<div dir="ltr">no, I am not using FreeBSD, I am using CentOS 6.5, and I tried to omit the -lresolv but it didn't work but lot of errors keep showing off because of this changement. I am using the uClibc toolchains from opencores to achieve this coss compiling process and before this error I encountred lot of some other errors like this one which prove that asterisk don't support uclibc yet:<br>
<br>I had some error in compiling ael_lex the errors comes from the ael.flex in this line:<br>
<br> [CC] ael/ael_lex.c -> ael/ael_lex.o<br>ael.flex: In function ‘ael_yylex’:<br>ael.flex:601:43: error: ‘GLOB_BRACE’ undeclared (first use in this function)<br>ael.flex:601:43: note: each undeclared identifier is reported only once for each function it appears in<br>
make[1]: *** [ael/ael_lex.o] Error 1<br>make: *** [res] Error 2<br><br>and when I looked in the ael.flex I find this:<br><br>#ifdef SOLARIS<br> glob_ret = glob(fnamebuf, GLOB_NOCHECK, NULL, &globbuf);<br>
#else<br> glob_ret = glob(fnamebuf, GLOB_NOMAGIC|GLOB_BRACE, NULL, &globbuf);<br>#endif<br><br>and
the else block is the place where the compilation stack and when I went
to the configuration result I found that the checking action fro
GLOB_NOMAGIC and GLOB_BRACE is a no.<br><br>after that I went to the glob.h header in my toolchain to find this line:<br><br>#if 1 /* uClibc gnu glob does not support these */<br># define GLOB_ALTDIRFUNC (1 << 9)/* Use gl_opendir et al functions. */<br>
# define GLOB_BRACE (1 << 10)/* Expand "{a,b}" to "a" "b". */<br># define GLOB_NOMAGIC (1 << 11)/* If no magic chars, return the pattern. */<br># define GLOB_TILDE (1 << 12)/* Expand ~user and ~ to home directories. */<br>
# define GLOB_ONLYDIR (1 << 13)/* Match only directories. */<br># define GLOB_TILDE_CHECK (1 << 14)/* Like GLOB_TILDE but return an error<br> if the user name is not available. */<br>
<br>so
these constant are not supported by uClibc which mean that asterisk
didn't treat uclibc cases or in another way asterisk still don't support
uclibc.<br><br>I solved this problem anyway but still the problem in linking the asterisk object in the end of the process<br></div>