[Asterisk-bsd] Latest CVS won't build on FBSD 5.3-RELEASE

Chris Stenton jacs at gnome.co.uk
Mon Mar 7 05:52:47 CST 2005


will submit patch but here is a work around

--- utils.c.org Mon Mar  7 11:38:20 2005
+++ utils.c     Mon Mar  7 11:43:42 2005
@@ -389,7 +389,9 @@
        return 0;
 }
 
-
+#ifndef __linux__
+#undef pthread_create /* For ast_pthread_create function only */
+#endif /* ! LINUX */
 int ast_pthread_create_stack(pthread_t *thread, pthread_attr_t *attr,
void *(*start_routine)(void *), void *data, size_t stacksize)
 {
        pthread_attr_t lattr;


Chris


On Sun, 2005-03-06 at 18:11 -0600, msg wrote:
> Preston Garrison wrote:
> > libpri would never build, use ports.  As for asterisk something is using 
> > pthread_create, replace the call with ast_pthread_create
> > 
> > 
> 
> I haven't reported it yet (still struggling with hardware issues) but,
> if you replace as above (on fbsd 4.11-RELEASE), asterisk will not
> finish booting (no dots in console mode, hangs).  If one uses
> 'pthread_create' instead, booting completes, but asterisk dumps core
> (bus error) during boot (after loading chan_phone.so)
> 
> 
> _______________________________________________
> Asterisk-BSD mailing list
> Asterisk-BSD at lists.digium.com
> http://lists.digium.com/mailman/listinfo/asterisk-bsd
-- 



More information about the Asterisk-BSD mailing list