From mboxrd@z Thu Jan 1 00:00:00 1970 From: Peter Seiderer Date: Thu, 19 Nov 2015 20:12:13 +0100 Subject: [Buildroot] [RFC v1] directfb: fix musl compile In-Reply-To: <87vb8z9djd.fsf@dell.be.48ers.dk> References: <1447110344-1446-1-git-send-email-ps.report@gmx.net> <87vb8z9djd.fsf@dell.be.48ers.dk> Message-ID: <20151119201213.6e82f6b8@gmx.net> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: buildroot@busybox.net Hello Peter, On Wed, 18 Nov 2015 22:57:10 +0100, Peter Korsgaard wrote: > >>>>> "Peter" == Peter Seiderer writes: > > Hi, > > > - use 'union sigval' instead of sigval_t (same as suggested > > for canfestival by Yann E. MORIN, see [2]) > > > - delete DIRECT_RECURSIVE_MUTEX_INITIALIZER define (which uses unknown > > PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP) > > > - use DIRECT_MUTEX_INITIALIZER instead for trace.c (no recursive > > mutex needed) > > > - use pthread_once and direct_recursive_mutex_init instead for > > directfb.c > > > Fixes [1]: > > > system.c:114:6: error: unknown type name 'sigval_t' > > > and > > > ../lib/direct/os/linux/glibc/mutex.h:49:53: error: ?PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP? undeclared (first use in this function) > > > [1] http://autobuild.buildroot.net/results/548/548bf7b800a946e97135c0ba66363f388e517d6f > > [2] https://patchwork.ozlabs.org/patch/509731 > > > Signed-off-by: Peter Seiderer > > --- > > RFC: not yet runtime tested > > Thanks, but I don't feel confident applying such a patch, especially as > upstream seems dead so we cannot get their feedback on it / will have to > carry it along ourselves - So I've instead marked directfb as !musl. > O.k. According to [1] the directfb source code is (temporarily?) hosted on github [2] by one of the developers... If I find some more time to work on my patch I will try to submit it there... Regards, Peter [1] http://www.phoronix.com/scan.php?page=news_item&px=DirectFB-On-GitHub [2] https://github.com/deniskropp/DirectFB/