[Bug 3865] New: getconf ARG_MAX returns undefined, confusing configure

bugzilla at busybox.net bugzilla at busybox.net
Fri Jun 17 12:56:37 UTC 2011


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

           Summary: getconf ARG_MAX returns undefined, confusing configure
           Product: uClibc
           Version: 0.9.31
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: minor
          Priority: P5
         Component: Other
        AssignedTo: unassigned at uclibc.org
        ReportedBy: michael at talamasca.ocis.net
                CC: uclibc-cvs at uclibc.org
   Estimated Hours: 0.0


Created attachment 3397
  --> https://bugs.busybox.net/attachment.cgi?id=3397
Patch to make sysconf always return ARG_MAX

When uClibc's getconf utility is installed, and uClibc is not built for
threads, GNU autoconf scripts will malfunction when determining the maximum
length of command-line arguments.

This is because uClibc's sysconf() returns -1, causing getconf to print
"undefined".  The autoconf scripts cannot tolerate a non-numeric response
there.

Attached is a patch that forces sysconf to return legacy_ARG_MAX as a last
resort, rather than -1.

-- 
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 uClibc-cvs mailing list