Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 14 Feb 2016 21:24:18 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-ports-bugs@FreeBSD.org
Subject:   [Bug 207192] x11-servers/x11rdp: fix build with clang 3.8.0
Message-ID:  <bug-207192-13@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D207192

            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@FreeBSD.org
          Reporter: dim@FreeBSD.org
                CC: meta+ports@vmeta.jp
             Flags: maintainer-feedback?(meta+ports@vmeta.jp)
                CC: meta+ports@vmeta.jp

Created attachment 166995
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D166995&action=
=3Dedit
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 =3D in6addr_any;
                                                        ^

This is because Xtranssock.c attempts to redefine in6addr_any as a weak sym=
bol,
which does not work with clang 3.8.0.  As a fix, I just placed the customiz=
ed
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

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-207192-13>