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

Luigi Rizzo rizzo at icir.org
Fri Dec 15 17:34:30 MST 2006


On Fri, Dec 15, 2006 at 06:43:50PM -0500, Russell Bryant wrote:
> 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.

certainly a missing header.
Unfortunately there is a bit of cross-dependency between
strings.h and threadstorage.

let me check...

	cheers
	luigi

>     [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.


> _______________________________________________
> --Bandwidth and Colocation provided by Easynews.com --
> 
> asterisk-dev mailing list
> To UNSUBSCRIBE or update options visit:
>    http://lists.digium.com/mailman/listinfo/asterisk-dev



More information about the asterisk-dev mailing list