[asterisk-dev] too many string wrappers...

Russell Bryant russell at digium.com
Fri Dec 15 16:43:50 MST 2006


Luigi Rizzo wrote:
> and it's done now :)

... but I think it broke the build on Linux.  Here is the output since I haven't 
quite figured it out yet.

    [CC] ast_expr2f.c -> ast_expr2f.o
In file included from /include/asterisk/utils.h:38,
                  from /include/asterisk/strings.h:33,
                  from ast_expr2.fl:49:
/include/asterisk/lock.h: In function '__ast_pthread_mutex_init':
/include/asterisk/lock.h:165: warning: implicit declaration of function 
'pthread_mutexattr_settype'
/include/asterisk/lock.h:165: error: 'PTHREAD_MUTEX_RECURSIVE' undeclared (first 
use in this function)
/include/asterisk/lock.h:165: error: (Each undeclared identifier is reported 
only once
/include/asterisk/lock.h:165: error: for each function it appears in.)
/include/asterisk/lock.h: In function '__ast_pthread_mutex_destroy':
/include/asterisk/lock.h:206: error: expected expression before '{' token
/include/asterisk/lock.h: At top level:
/include/asterisk/lock.h:621: error: expected '=', ',', ';', 'asm' or 
'__attribute__' before 'ast_rwlock_t'/include/asterisk/lock.h:623: error: 
expected ')' before '*' token
/include/asterisk/lock.h:636: error: expected ')' before '*' token
/include/asterisk/lock.h:641: error: expected ')' before '*' token
/include/asterisk/lock.h:646: error: expected ')' before '*' token
/include/asterisk/lock.h:651: error: expected ')' before '*' token
/include/asterisk/lock.h:656: error: expected ')' before '*' token
/include/asterisk/lock.h:661: error: expected ')' before '*' token
In file included from /include/asterisk/strings.h:33,
                  from ast_expr2.fl:49:
/include/asterisk/utils.h: In function '_ast_strndup':
/include/asterisk/utils.h:431: warning: implicit declaration of function 'strndup'
/include/asterisk/utils.h:431: warning: incompatible implicit declaration of 
built-in function 'strndup'
/include/asterisk/utils.h: In function '_ast_asprintf':
/include/asterisk/utils.h:456: warning: implicit declaration of function 'vasprintf'
make[1]: *** [ast_expr2f.o] Error 1
make: *** [utils] Error 2

-- 
Russell Bryant
Software Engineer
Digium, Inc.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: russell.vcf
Type: text/x-vcard
Size: 266 bytes
Desc: not available
Url : http://lists.digium.com/pipermail/asterisk-dev/attachments/20061215/48a60a81/russell.vcf


More information about the asterisk-dev mailing list