[Bug 207192] x11-servers/x11rdp: fix build with clang 3.8.0

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Sun Feb 14 21:24:19 UTC 2016


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=207192

            Bug ID: 207192
           Summary: x11-servers/x11rdp: fix build with clang 3.8.0
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: Individual Port(s)
          Assignee: freebsd-ports-bugs at FreeBSD.org
          Reporter: dim at FreeBSD.org
                CC: meta+ports at vmeta.jp
             Flags: maintainer-feedback?(meta+ports at vmeta.jp)
                CC: meta+ports at vmeta.jp

Created attachment 166995
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=166995&action=edit
Fix ambiguous reference to in6addr_any

During a recent exp-run for bug 206074, it was found that x11-servers/x11rdp
gives errors with clang 3.8.0 [1]:

/wrkdirs/usr/ports/x11-servers/x11rdp/work/x11rdp_xorg71/build_dir/include/X11/Xtrans/Xtranssock.c:1027:50:
error: reference to 'in6addr_any' is ambiguous
        ((struct sockaddr_in6 *)&sockname)->sin6_addr = in6addr_any;
                                                        ^

This is because Xtranssock.c attempts to redefine in6addr_any as a weak symbol,
which does not work with clang 3.8.0.  As a fix, I just placed the customized
in6addr_any definition between #ifdef __FreeBSD__ guards.

[1]
http://package22.nyi.freebsd.org/data/headamd64PR206074-default/2016-02-14_06h53m40s/logs/errors/x11rdp-0.5.0.299_1.log

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


More information about the freebsd-ports-bugs mailing list