[Bug 10715] New: IPv6 configure test fails on musl c-library

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

[Bug 10715] New: IPv6 configure test fails on musl c-library

samba-bugs
https://bugzilla.samba.org/show_bug.cgi?id=10715

           Summary: IPv6 configure test fails on musl c-library
           Product: rsync
           Version: 3.1.1
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P5
         Component: core
        AssignedTo: [hidden email]
        ReportedBy: [hidden email]
         QAContact: [hidden email]


The autoconfigure tests for IPv6 relies on C-library internals, and it
currently fails for musl c-library based linux. For Alpine Linux bug report see
http://bugs.alpinelinux.org/issues/3158.

A better test (and non-OS dependent) would be to try creating AF_INET6 socket,
if it succeeds, then IPv6 is supported.

See e.g.:

http://ftp.netbsd.org/pub/NetBSD/NetBSD-release-6/src/crypto/dist/ipsec-tools/configure.ac
(and search for --disable-ipv6)

--
Configure bugmail: https://bugzilla.samba.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
--
Please use reply-all for most replies to avoid omitting the mailing list.
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html
Reply | Threaded
Open this post in threaded view
|

[Bug 10715] IPv6 configure test fails on musl c-library

Samba - rsync mailing list
https://bugzilla.samba.org/show_bug.cgi?id=10715

Pierre-Olivier Mercier <[hidden email]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[hidden email]

--- Comment #1 from Pierre-Olivier Mercier <[hidden email]> ---
Created attachment 13546
  --> https://bugzilla.samba.org/attachment.cgi?id=13546&action=edit
Proposed patch to fix the issue

Please find attached a proposal patch following Timo's suggestion: I replace
the long specific C library detection (which in our case forgot musl's users)
by a single feature test that all C libraries have to implement in order to
have a compiling rsync with IPv6 support.

After applying this patch, I was able to compile an IPv6 ready rsync with musl,
while keeping the same behaviour with the glibc under Linux. This should be
tested against others libc I don't have access to.

--
You are receiving this mail because:
You are the QA Contact for the bug.

--
Please use reply-all for most replies to avoid omitting the mailing list.
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html