[asterisk-dev] Update: Cross-compiling woes under openWRT

Brian Capouch brianc at palaver.net
Mon Sep 3 12:18:08 CDT 2007


Vadim Lebedev wrote:

>>
>>After kludging up the above fixes, the build now stops here:
>>
>>In file included from 
>>/usr/src/brianc/trunk/staging_dir/toolchain-mipsel_gcc4.1.2/lib/gcc/mipsel-linux-uclibc/4.1.2/../../../../mipsel-linux-uclibc/sys-include/stdio.h:72,
>>                  from 
>>/usr/src/brianc/trunk/build_dir/mipsel/asterisk-svn-trunk/include/asterisk/utils.h:29,
>>                  from astobj2.c:25:
>>/usr/src/brianc/trunk/staging_dir/toolchain-mipsel_gcc4.1.2/lib/gcc/mipsel-linux-uclibc/4.1.2/../../../../mipsel-linux-uclibc/sys-include/bits/uClibc_stdio.h:278: 
>>error: expected specifier-qualifier-list before 
>>'use_ast_mutex_t_instead_of_pthread_mutex_t'
>>make[4]: *** [astobj2.o] Error 1
>>make[3]: *** [main] Error 2
>>make[3]: Leaving directory 
>>`/usr/src/brianc/trunk/build_dir/mipsel/asterisk-svn-trunk'

> 
> It's a wild guess, but i suggest you add #include <stdio.h> at the 
> beginning of astobj2.c
> 

Actually the workaround was just the opposite.  I hacked up a version of 
utils.h (which is included in astobj2.c) that did NOT include stdio.h, 
and it compiled, albeit with a couple of "implicit declaration" warnings.

I'm sure that wasn't the correct fix, and perhaps that (or one of my 
ast_expr2.c "fixes") causes the resultant server to crash the instant 
any channel begins to pass audio.

But it built :-)

b.

-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.




More information about the asterisk-dev mailing list