No subject


Thu Jul 12 09:23:04 CDT 2007


target CFLAGS in the COPTS variable.  I tweaked the Makefile in 1.4 and trunk to
add the contents of COPTS to CFLAGS.  This should fix it.

    </pre>
  </blockquote>
  <pre wrap=""><!---->
The build system still kicks out the COPTS warning as it processes each 
.c file.

  </pre>
  <blockquote type="cite">
    <blockquote type="cite">
      <pre wrap="">2. I couldn't get the build to go at all until I added this code to the 
bottom of the files ~/utils/extconf.c and ~utils/check_expr.c:

AST_MUTEX_DEFINE_STATIC(fetchadd_m); /* used for all fetc&amp;add ops */
int ast_atomic_fetchadd_int_slow(volatile int *p, int v)
      </pre>
    </blockquote>
  </blockquote>
  <pre wrap=""><!---->  . . . .
  </pre>
  <blockquote type="cite">
    <pre wrap="">This should be fixed in trunk rev 80262.  I didn't make the change in 1.4
because I wasn't sure the problem existed there or not.  If you find that it is,
I'll backport it.

    </pre>
  </blockquote>
  <pre wrap=""><!---->
I still have to add the function ast_atomic_fetchadd_int_slow() to both 
extconf.c and check_expr.c to get the compiler to proceed.

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'

I wish I could fix this stuff up on my own, but I can't.  I hope 
reporting it is of some use anyways.

Thanks.

b.





  </pre>
</blockquote>
Brian<br>
<br>
It's a wild guess, but i suggest you add #include &lt;stdio.h&gt; at
the beginning of astobj2.c<br>
<br>
Thanks<br>
Vadim<br>
</body>
</html>

--------------040207020808070103060501--



More information about the asterisk-dev mailing list