<div dir="ltr">Alan and team,<div><br></div><div>Thank you for the quick response. It looks like the _BSD_SOURCE and _SVID_SOURCE macros were deprecated back in 2015, in glibc 2.19 and beyond. Here is more information on the change from { _BSD_SOURCE, _SVID_SOURCE } to _DEFAULT_SOURCE:</div><div><br></div><div><a href="https://man7.org/linux/man-pages/man7/feature_test_macros.7.html">https://man7.org/linux/man-pages/man7/feature_test_macros.7.html</a><br></div><div><br></div><div><a href="https://stackoverflow.com/questions/29201515/what-does-d-default-source-do">https://stackoverflow.com/questions/29201515/what-does-d-default-source-do</a><br></div><div><br></div><div>I modified /usr/lib64/X11/config/<a href="http://linux.cf">linux.cf</a> and made these changes. I will be testing these changes as part of the TightVNC build. I will let you know if I encounter any issues.</div><div><br></div><div>Thank you again,</div><div><br></div><div>Ken Zalewski</div><div>Troy, NY</div><div><br></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Jul 18, 2022 at 5:41 PM Alan Coopersmith <<a href="mailto:alan.coopersmith@oracle.com">alan.coopersmith@oracle.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">I've cc'ed the xorg-devel mailing list to reach the other X.Org developers,<br>
as I primarily work on Solaris, not Linux, myself.<br>
<br>
I have no objection to such a change, and would accept a merge request [1] to<br>
do it from someone who can test it, but I don't know if there needs to be<br>
any sort of version check to use the older defines on older releases, and<br>
the newer defines on newer ones, or even if we could check that in Imake,<br>
since I believe it depends on the GNU libc version, not the Linux version.<br>
<br>
Really though, TightVNC needs to move to a modern build system if it wants<br>
to build on modern platforms, because we're not really maintaining Imake<br>
and haven't done so in many years now.<br>
<br>
-alan-<br>
<br>
[1] <a href="https://gitlab.freedesktop.org/xorg/util/cf/-/merge_requests" rel="noreferrer" target="_blank">https://gitlab.freedesktop.org/xorg/util/cf/-/merge_requests</a><br>
<br>
On 7/18/22 12:58, Ken Zalewski wrote:<br>
> Hi Alan,<br>
> <br>
> I saw that you released xorg-cf-files 1.0.7 back in 2021, via this archived email:<br>
> <a href="https://lists.x.org/archives/xorg-announce/2021-August/003105.html" rel="noreferrer" target="_blank">https://lists.x.org/archives/xorg-announce/2021-August/003105.html</a> <br>
> <<a href="https://lists.x.org/archives/xorg-announce/2021-August/003105.html" rel="noreferrer" target="_blank">https://lists.x.org/archives/xorg-announce/2021-August/003105.html</a>><br>
> <br>
> I realize that the Imake system is antiquated, but it is still necessary to <br>
> build TightVNC on Linux. I wanted to point out that GCC now issues a <br>
> deprecation warning when using -D_BSD_SOURCE and -D_SVID_SOURCE. I believe the <br>
> correct define is now -D_DEFAULT_SOURCE.<br>
> <br>
> I tracked this down to the file:<br>
> /usr/lib64/X11/config/<a href="http://linux.cf" rel="noreferrer" target="_blank">linux.cf</a> <<a href="http://linux.cf" rel="noreferrer" target="_blank">http://linux.cf</a>><br>
> <br>
> When I modify lines 241 and 260 to replace "-D_BSD_SOURCE -D_SVID_SOURCE" with <br>
> "-D_DEFAULT_SOURCE", I no longer receive the deprecation notices.<br>
> <br>
> Would it be possible to issue a new minor release of xorg-cf-files with this fix?<br>
> <br>
> Thank you,<br>
> <br>
> Ken Zalewski<br>
> Troy, NY<br>
> <br>
> <br>
> <br>
> <br>
<br>
<br>
-- <br>
-Alan Coopersmith- <a href="mailto:alan.coopersmith@oracle.com" target="_blank">alan.coopersmith@oracle.com</a><br>
Oracle Solaris Engineering - <a href="https://blogs.oracle.com/solaris" rel="noreferrer" target="_blank">https://blogs.oracle.com/solaris</a><br>
</blockquote></div>