Uploaded image for project: 'CouchDB'
  1. CouchDB
  2. COUCHDB-2761

Build errors in Fedora 22 regarding _BSD_SOURCE

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.7.0
    • Component/s: Build System
    • Labels:
      None

      Description

      When building from source on Fedora 22 64bit, it configures OK, but when you try to run `make`, it outputs this error message:
      _BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE

      If I grep through all the source files and replace "_BSD_SOURCE" with "_DEFAULT_SOURCE", `make` will run OK.

        Activity

        Hide
        jira-bot ASF subversion and git services added a comment -

        Commit 90a9dac99e38b4f2b0cb896ac7027a0948bd5437 in couchdb's branch refs/heads/1.x.x from Alexander Shorin
        [ https://git-wip-us.apache.org/repos/asf?p=couchdb.git;h=90a9dac ]

        Fix glibc >= 2.20 support

        Since 2.20 _BSD_SOURCE is deprecated in favor of _DEFAULT_SOURCE.
        While _DEFAULT_SOURCE is safely ignored in <2.19, it implicitly
        overrides _BSD_SOURCE if both are defined which helps to bypass
        compilation warning.

        COUCHDB-2761

        Show
        jira-bot ASF subversion and git services added a comment - Commit 90a9dac99e38b4f2b0cb896ac7027a0948bd5437 in couchdb's branch refs/heads/1.x.x from Alexander Shorin [ https://git-wip-us.apache.org/repos/asf?p=couchdb.git;h=90a9dac ] Fix glibc >= 2.20 support Since 2.20 _BSD_SOURCE is deprecated in favor of _DEFAULT_SOURCE. While _DEFAULT_SOURCE is safely ignored in <2.19, it implicitly overrides _BSD_SOURCE if both are defined which helps to bypass compilation warning. COUCHDB-2761
        Hide
        kxepal Alexander Shorin added a comment -

        Fix with 90a9dac, Simple replace breaks support of glibc <2.19, the fix helps to support both older and newer glibc releases.

        Show
        kxepal Alexander Shorin added a comment - Fix with 90a9dac , Simple replace breaks support of glibc <2.19, the fix helps to support both older and newer glibc releases.

          People

          • Assignee:
            kxepal Alexander Shorin
            Reporter:
            tcaddy Teddy Caddy
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development