[Buildroot] [PATCH] uclibc: snapshot: add BSD obsolete signal functions

Baruch Siach baruch at tkos.co.il
Thu Jan 2 12:33:16 UTC 2014


Hi Thomas,

On Thu, Jan 02, 2014 at 01:23:18PM +0100, Thomas Petazzoni wrote:
> On Thu,  2 Jan 2014 13:53:03 +0200, Baruch Siach wrote:
> > Fixes
> > http://autobuild.buildroot.net/results/70b/70b79ca0aa97ed451a5679029955ed3709c84b67/.
> > 
> > Signed-off-by: Baruch Siach <baruch at tkos.co.il>
> > ---
> >  package/uclibc/uClibc-snapshot.config | 2 +-
> >  1 file changed, 1 insertion(+), 1 deletion(-)
> > 
> > diff --git a/package/uclibc/uClibc-snapshot.config b/package/uclibc/uClibc-snapshot.config
> > index 9ca3f9ea983d..890aefd8ec59 100644
> > --- a/package/uclibc/uClibc-snapshot.config
> > +++ b/package/uclibc/uClibc-snapshot.config
> > @@ -152,7 +152,7 @@ UCLIBC_LINUX_SPECIFIC=y
> >  UCLIBC_HAS_GNU_ERROR=y
> >  UCLIBC_BSD_SPECIFIC=y
> >  UCLIBC_HAS_BSD_ERR=y
> > -# UCLIBC_HAS_OBSOLETE_BSD_SIGNAL is not set
> > +UCLIBC_HAS_OBSOLETE_BSD_SIGNAL=y
> 
> We don't have this option enabled in the uClibc-0.9.33.config. Is there
> a reason why it should be enabled for the uClibc-snapshot.config and
> not for uClibc-0.9.33.config ? Does netsnmp builds with uClibc 0.9.33
> on some other architecture?

The netsnmp configure scripts tests for sighold(). This test fails when 
UCLIBC_HAS_OBSOLETE_BSD_SIGNAL is disabled. In this case the code in 
apps/snmpnetstat/if.c uses the alternative sigblock() API. This has been 
removed completely from uClibc after 0.9.33 with commit 5aa7aa7fa7ec2a 
(signal: remove sigblock, siggetmask and sigsetmask). That's why we need 
UCLIBC_HAS_OBSOLETE_BSD_SIGNAL for netsnmp to build only when uClibc snapshot 
is selected.

baruch

-- 
     http://baruch.siach.name/blog/                  ~. .~   Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
   - baruch at tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -



More information about the buildroot mailing list