[asterisk-dev] Compiling issues trunk on OS/X

Johansson Olle E oej at edvina.net
Mon Nov 5 02:45:42 CST 2007


Hello!
Trying to compile trunk on my Mac, I get the following errors. Seems  
like someone changed
ifdef's and that it doesn't work on OS/X... Any help?

/O
--------

  [CC] check_expr.c -> check_expr.o
In file included from check_expr.c:37:
/usr/local/src/asterisk.svn/workarea/include/asterisk/lock.h: In  
function 'ast_mutex_init':
/usr/local/src/asterisk.svn/workarea/include/asterisk/lock.h:680:  
error: invalid operands to binary !=
/usr/local/src/asterisk.svn/workarea/include/asterisk/lock.h: In  
function 'ast_mutex_unlock':
/usr/local/src/asterisk.svn/workarea/include/asterisk/lock.h:697:  
error: invalid operands to binary ==
/usr/local/src/asterisk.svn/workarea/include/asterisk/lock.h: In  
function 'ast_mutex_destroy':
/usr/local/src/asterisk.svn/workarea/include/asterisk/lock.h:708:  
error: invalid operands to binary ==
/usr/local/src/asterisk.svn/workarea/include/asterisk/lock.h: In  
function 'ast_mutex_lock':
/usr/local/src/asterisk.svn/workarea/include/asterisk/lock.h:718:  
error: invalid operands to binary ==
/usr/local/src/asterisk.svn/workarea/include/asterisk/lock.h: In  
function 'ast_mutex_trylock':
/usr/local/src/asterisk.svn/workarea/include/asterisk/lock.h:728:  
error: invalid operands to binary ==
/usr/local/src/asterisk.svn/workarea/include/asterisk/lock.h: In  
function 'ast_rwlock_init':
/usr/local/src/asterisk.svn/workarea/include/asterisk/lock.h:1042:  
error: invalid operands to binary !=
/usr/local/src/asterisk.svn/workarea/include/asterisk/lock.h: In  
function 'ast_rwlock_destroy':
/usr/local/src/asterisk.svn/workarea/include/asterisk/lock.h:1060:  
error: invalid operands to binary ==
/usr/local/src/asterisk.svn/workarea/include/asterisk/lock.h: In  
function 'ast_rwlock_unlock':
/usr/local/src/asterisk.svn/workarea/include/asterisk/lock.h:1070:  
error: invalid operands to binary ==
/usr/local/src/asterisk.svn/workarea/include/asterisk/lock.h: In  
function 'ast_rwlock_rdlock':
/usr/local/src/asterisk.svn/workarea/include/asterisk/lock.h:1082:  
error: invalid operands to binary ==
/usr/local/src/asterisk.svn/workarea/include/asterisk/lock.h: In  
function 'ast_rwlock_tryrdlock':
/usr/local/src/asterisk.svn/workarea/include/asterisk/lock.h:1093:  
error: invalid operands to binary ==
/usr/local/src/asterisk.svn/workarea/include/asterisk/lock.h: In  
function 'ast_rwlock_wrlock':
/usr/local/src/asterisk.svn/workarea/include/asterisk/lock.h:1104:  
error: invalid operands to binary ==
/usr/local/src/asterisk.svn/workarea/include/asterisk/lock.h: In  
function 'ast_rwlock_trywrlock':
/usr/local/src/asterisk.svn/workarea/include/asterisk/lock.h:1115:  
error: invalid operands to binary ==
make[1]: *** [check_expr.o] Error 1
make: *** [utils] Error 2
xoej-2:workarea olle$
xoej-2:workarea olle$ vi include/asterisk/lock.h
xoej-2:workarea olle$ vi include/asterisk/lock.h
xoej-2:workarea olle$ vi check_expr.c
xoej-2:workarea olle$ gcc -version
i686-apple-darwin9-gcc-4.0.1: no input files




More information about the asterisk-dev mailing list