[Bug 3613] New: Lack of feature test macros in building config

bugzilla at busybox.net bugzilla at busybox.net
Wed Apr 13 16:57:02 UTC 2011


https://bugs.busybox.net/show_bug.cgi?id=3613

           Summary: Lack of feature test macros in building config
           Product: Busybox
           Version: unspecified
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P5
         Component: Standard Compliance
        AssignedTo: unassigned at busybox.net
        ReportedBy: bugdal at aerifal.cx
                CC: busybox-cvs at busybox.net
   Estimated Hours: 0.0


Created attachment 3205
  --> https://bugs.busybox.net/attachment.cgi?id=3205
Proposed fix for this issue.

This report concerns my attempts to get BusyBox building out-of-the-box with
musl (http://www.etalabs.net/musl/).

The BusyBox config system makes use of interfaces that are not available to a
conforming program unless _POSIX_C_SOURCE or _XOPEN_SOURCE is defined, leading
to errors like (during "make menuconfig"):

scripts/kconfig/mconf.c:454:19: error: storage size of ‘sa’ isn’t known
scripts/kconfig/mconf.c:455:2: error: ‘sigset_t’ undeclared (first use in this
function)

Adding -D_XOPEN_SOURCE=700 -D_GNU_SOURCE to HOSTCFLAGS in the main Makefile
fixes the issue. Note that unlike CFLAGS, where feature test macros can easily
be added interactively in menuconfig or by editing the .config file, the
HOSTCFLAGS must be specified on the "make" command line or the build process
can't even get to the point of configuration.

Ideally I'd like to see the same added to the target CFLAGS.

-- 
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


More information about the busybox-cvs mailing list