openwrtv4/toolchain/uClibc/config
Hauke Mehrtens 336ad4c9aa toolchain/uClibc: enable UCLIBC_HAS_OBSOLETE_BSD_SIGNAL
This is required to build net-snmp.

If that options is disabled in uClibc then net-snmp doesn't
detect sighold support on its configuration stage and so
defines HAVE_SIGHOLD as 0. That in its turn causes compilation of
the following branch of timerPause() in apps/snmpnetstat:
------------------>8----------------
    int             oldmask;
    oldmask = sigblock(sigmask(SIGALRM));
    if (!signalled) {
        sigpause(0);
    }
    sigsetmask(oldmask);
------------------>8----------------

Now in uClibc all 3 sigblock(), sigmask() and sigsetmask()
were removed back in 2005, see:
https://git.busybox.net/uClibc/commit/?id=5aa7aa7fa7ec2a0fe567ac0b2595b46add6f3594

And all that causes net-snmp linkage to fail this way:
------------------>8----------------
.libs/if.o: In function `intpr':
if.c:(.text+0x908): undefined reference to `sigmask'
if.c:(.text+0x90e): undefined reference to `sigblock'
if.c:(.text+0x924): undefined reference to `sigsetmask'
------------------>8----------------

If we enable UCLIBC_HAS_OBSOLETE_BSD_SIGNAL in uClibc then
branch with sighold is used in timerPause() and everything builds as
expected.

Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com>
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>

SVN-Revision: 49178
2016-04-17 12:49:30 +00:00
..
arc toolchain: add support of ARC architecture 2015-11-10 12:03:59 +00:00
archs toolchain: add support of ARCv2 architecture 2016-02-18 08:22:17 +00:00
arm uclibc: remove version 0.9.33 2015-11-02 18:12:16 +00:00
armeb uclibc: remove version 0.9.33 2015-11-02 18:12:16 +00:00
common toolchain/uClibc: enable UCLIBC_HAS_OBSOLETE_BSD_SIGNAL 2016-04-17 12:49:30 +00:00
debug uclibc: remove version 0.9.33 2015-11-02 18:12:16 +00:00
i386 uclibc: remove version 0.9.33 2015-11-02 18:12:16 +00:00
i686 uclibc: remove version 0.9.33 2015-11-02 18:12:16 +00:00
m68k uclibc: remove version 0.9.33 2015-11-02 18:12:16 +00:00
mips uclibc: remove version 0.9.33 2015-11-02 18:12:16 +00:00
mips64 uclibc: remove version 0.9.33 2015-11-02 18:12:16 +00:00
mips64.32 uclibc: remove version 0.9.33 2015-11-02 18:12:16 +00:00
mips64.64 uclibc: remove version 0.9.33 2015-11-02 18:12:16 +00:00
mips64.n32 uclibc: remove version 0.9.33 2015-11-02 18:12:16 +00:00
mips64el uclibc: remove version 0.9.33 2015-11-02 18:12:16 +00:00
mips64el.32 uclibc: remove version 0.9.33 2015-11-02 18:12:16 +00:00
mips64el.64 uclibc: remove version 0.9.33 2015-11-02 18:12:16 +00:00
mips64el.n32 uclibc: remove version 0.9.33 2015-11-02 18:12:16 +00:00
mipsel uclibc: remove version 0.9.33 2015-11-02 18:12:16 +00:00
mipsel.cobalt uclibc: remove version 0.9.33 2015-11-02 18:12:16 +00:00
powerpc uclibc: remove version 0.9.33 2015-11-02 18:12:16 +00:00
powerpc.e500 uclibc: remove version 0.9.33 2015-11-02 18:12:16 +00:00
sparc uclibc: remove version 0.9.33 2015-11-02 18:12:16 +00:00
sparc.leon uclibc: remove version 0.9.33 2015-11-02 18:12:16 +00:00
x86_64 uclibc: remove version 0.9.33 2015-11-02 18:12:16 +00:00