<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        font-size:12.0pt;
        font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
span.EmailStyle20
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style>
</head>
<body lang="EN-US" link="blue" vlink="purple" style="word-wrap:break-word">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt">Thank you very much. I am sorry for a long delay in response. I have been dragged by other projects and do not have time to work on this until now. I will look at the links you show and work on it to see
if it works.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">Trinh<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span style="color:black">From: </span></b><span style="color:black"><xcrysden-bounces@democritos.it> on behalf of Gavin Abo <gabo13279@gmail.com><br>
<b>Reply-To: </b>XCrySDen mailing list <xcrysden@democritos.it><br>
<b>Date: </b>Monday, August 16, 2021 at 9:19 PM<br>
<b>To: </b>"xcrysden@democritos.it" <xcrysden@democritos.it><br>
<b>Subject: </b>[EXTERNAL] Re: [xcrysden] Problem with installing xcrysden on Mac OS 10.17.7 (Catalina)<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
</div>
<p>At [1] , I read Xcode 12 has a new "feature":<br>
<i><br>
<b>Clang</b> now reports an error when you use a function without an explicit declaration when
<span style="color:blue">building C</span> or Objective-C code for macOS (-Werror=implicit-function-declaration flag is on). This additional error detection unifies Clang’s behavior for iOS/tvOS and macOS 64-bit targets for this diagnostic. (49917738)</i><br>
<i><br>
<a href="https://urldefense.us/v3/__https:/developer.apple.com/documentation/xcode-release-notes/xcode-12-release-notes__;!!PvBDto6Hs4WbVuu7!bF4ebOb40gqymR6j5ATvcPOTdqoNUR2jNOxgGyODnPbY3wofvyrUMLKSGVId8r2D1wK4$">https://developer.apple.com/documentation/xcode-release-notes/xcode-12-release-notes</a></i><o:p></o:p></p>
<p>At [2], I read that gcc might default to clang with homebrew. If that is the case, have you tried change it to use gcc [3]?<o:p></o:p></p>
<p>If that does not resolve the issue, I'm not a Mac user such that I unfortunately cannot be of much help with that. Perhaps, there is a Mac user in the list that will respond if they have solution for that error.<o:p></o:p></p>
<p class="MsoNormal" style="margin-bottom:12.0pt">[1] <a href="https://urldefense.us/v3/__https:/github.com/astropy/astropy/issues/10770__;!!PvBDto6Hs4WbVuu7!bF4ebOb40gqymR6j5ATvcPOTdqoNUR2jNOxgGyODnPbY3wofvyrUMLKSGVId8ou0i-ZE$">
https://github.com/astropy/astropy/issues/10770</a><br>
[2] <a href="https://urldefense.us/v3/__https:/github.com/openvenues/libpostal/issues/511__;!!PvBDto6Hs4WbVuu7!bF4ebOb40gqymR6j5ATvcPOTdqoNUR2jNOxgGyODnPbY3wofvyrUMLKSGVId8uRXlS2t$">
https://github.com/openvenues/libpostal/issues/511</a><br>
[3] <a href="https://urldefense.us/v3/__https:/apple.stackexchange.com/questions/245891/installed-gcc-with-homebrew-now-how-to-use-that-gcc-instead-of-clang__;!!PvBDto6Hs4WbVuu7!bF4ebOb40gqymR6j5ATvcPOTdqoNUR2jNOxgGyODnPbY3wofvyrUMLKSGVId8ixlA3xZ$">
https://apple.stackexchange.com/questions/245891/installed-gcc-with-homebrew-now-how-to-use-that-gcc-instead-of-clang</a><o:p></o:p></p>
<div>
<p class="MsoNormal">On 8/16/2021 11:02 AM, Vo, Trinh T (US 398K) wrote:<o:p></o:p></p>
</div>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<p class="MsoNormal"><span style="font-size:14.0pt">Dear Developer,</span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:14.0pt"> </span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:14.0pt">I compiled from source code of xcrysden on my new laptop, and I encountered the following errors:</span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:14.0pt"> </span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:14.0pt"># <span style="color:blue">
Compiling XCRYSDEN C-code</span> #</span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:14.0pt"># #</span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:14.0pt">#------------------------------#</span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:14.0pt"> </span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:14.0pt">cd C; /Applications/Xcode.app/Contents/Developer/usr/bin/make "TOPDIR=/Users/trinhvo/xcrysden-1.6.2" compile</span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:14.0pt">make TOPDIR=/Users/trinhvo/xcrysden-1.6.2</span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:14.0pt">gcc -ffast-math -funroll-loops -fPIC -pedantic -Wall -I/usr/include/tcl8.6 -I/usr/local/Cellar/tcl-tk/8.6.11_1/include -I/usr/local/Cellar/tcl-tk/8.6.11_1/include -c xcAppInit.c</span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:14.0pt">xcAppInit.c:407:3: <b><span style="color:red">error</span></b>: implicit declaration of function 'XGetErrorText' is</span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:14.0pt"> invalid in C99 [-Werror,-Wimplicit-function-declaration]</span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:14.0pt"> XGetErrorText(display,event->error_code,buffer,sizeof(buffer)-1);</span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:14.0pt"> ^</span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:14.0pt">xcAppInit.c:1834:7: warning: 'glDrawBuffer' is deprecated: first deprecated in</span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:14.0pt"> macOS 10.14 - OpenGL API deprecated. (Define GL_SILENCE_DEPRECATION to</span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:14.0pt"> silence these warnings) [-Wdeprecated-declarations]</span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:14.0pt"> glDrawBuffer(GL_BACK);</span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:14.0pt"> </span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:14.0pt">I do not know how to fix this error. I have installed all the required libs using homebrew</span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:14.0pt"> - Tcl/Tk</span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:14.0pt"> - mesa and mesa-glu</span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:14.0pt"> - FFTW3</span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:14.0pt">For these libs, I download from web)</span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:14.0pt"> - BWidget </span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:14.0pt"> - Togl (2.0 or later).
</span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:14.0pt"> </span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:14.0pt">I appreciate if you could help me to fix this error.</span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:14.0pt"> </span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:14.0pt">Thank you very much,</span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:14.0pt"> </span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:14.0pt">Trinh</span><o:p></o:p></p>
</blockquote>
</div>
</body>
</html>