<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
Is the place to fix this in ../include/make/Platform.make?
<div class=""><br class="">
</div>
<div class="">Michael<br class="">
<div class="">
<div style="letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
<div style="letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
<div style="orphans: 2; text-align: -webkit-auto; text-indent: 0px; widows: 2; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
<span class="Apple-style-span" style="border-collapse: separate; orphans: 2; text-indent: 0px; widows: 2; border-spacing: 0px;">
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
<span class="Apple-style-span" style="border-collapse: separate; orphans: 2; text-indent: 0px; widows: 2; border-spacing: 0px;">
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
<span class="Apple-style-span" style="border-collapse: separate; orphans: 2; text-indent: 0px; widows: 2; border-spacing: 0px;">
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
<span class="Apple-style-span" style="border-collapse: separate; orphans: 2; text-indent: 0px; widows: 2; border-spacing: 0px;">
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
<span class="Apple-style-span" style="border-collapse: separate; orphans: 2; text-indent: 0px; widows: 2; border-spacing: 0px;">
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
<span class="Apple-style-span" style="border-collapse: separate; orphans: 2; text-indent: 0px; widows: 2; border-spacing: 0px;">
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
<span class="Apple-style-span" style="border-collapse: separate; orphans: 2; text-indent: 0px; widows: 2; border-spacing: 0px;">
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
<span class="Apple-style-span" style="border-collapse: separate; orphans: 2; text-indent: 0px; widows: 2; border-spacing: 0px;">
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
<div class="">
<div style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-stroke-width: 0px;" class="">
____________________</div>
<div style="font-variant: normal; letter-spacing: normal; line-height: normal; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class="">
<font face="Helvetica" size="3" class="">C. Michael Barton</font></div>
<div style="font-variant: normal; letter-spacing: normal; line-height: normal; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class="">
<font face="Helvetica" size="3" class="">Director, Center for Social Dynamics & Complexity </font></div>
<div style="font-variant: normal; letter-spacing: normal; line-height: normal; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class="">
<font face="Helvetica" size="3" class="">Professor of Anthropology, School of Human Evolution & Social Change</font></div>
<div class=""><font face="Helvetica" size="3" class="">Head, Graduate Faculty in Complex Adaptive Systems Science</font></div>
<div style="font-variant: normal; letter-spacing: normal; line-height: normal; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class="">
<font face="Helvetica" size="3" class="">Arizona State University</font></div>
<div style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-stroke-width: 0px;" class="">
<br class="">
</div>
<font face="Helvetica" size="3" class=""><font class="">voice:  </font><font class="">480-965-6262 (SHESC), 480-965-8130/727-9746 (CSDC)</font><br class="">
<font class="">fax: 480-965-7671 (SHESC),  480-727-0709 (CSDC)</font><br class="">
</font>
<div style="font-variant: normal; letter-spacing: normal; line-height: normal; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class="">
<font face="Helvetica" size="3" class="">www: <a href="http://www.public.asu.edu/~cmbarton" class="">
http://www.public.asu.edu/~cmbarton</a>, <a href="http://csdc.asu.edu" class="">http://csdc.asu.edu</a></font></div>
<br class="">
</div>
<br class="">
</div>
</span><br class="Apple-interchange-newline">
</div>
</span><br class="Apple-interchange-newline">
</div>
</span><br class="Apple-interchange-newline">
</div>
</span><br class="Apple-interchange-newline">
</div>
</span><br class="Apple-interchange-newline">
</div>
</span><br class="Apple-interchange-newline">
</div>
</span><br class="Apple-interchange-newline">
</div>
</span><br class="Apple-interchange-newline">
</div>
<br class="Apple-interchange-newline">
</div>
<br class="Apple-interchange-newline">
</div>
<br class="Apple-interchange-newline">
<br class="Apple-interchange-newline">
</div>
<br class="">
<div>
<blockquote type="cite" class="">
<div class="">On Aug 4, 2017, at 3:50 PM, Eric Hutton <<a href="mailto:hutton.eric@gmail.com" class="">hutton.eric@gmail.com</a>> wrote:</div>
<br class="Apple-interchange-newline">
<div class="">
<div dir="ltr" class="">Hi Michael
<div class=""><br class="">
</div>
<div class="">I found that if I manually add linker flags (like "-L$PREFIX/lib -liconv") I was able to get rid of these errors. I also notice that I had to append them to the end of the compile command (or at least after things like "-lgrass_gis.7.2.0" - I
 guess it has to do with the order that the compiler looks at libraries to resolve sysbols). Then, at runtime $PREFIX/lib needed to appear in the LD_LIBRARY_PATH_VAR when running the tests.</div>
<div class=""><br class="">
</div>
<div class="">I'm not sure of the best way to fix this within the grass build system (simply adding the link flags to LDFLAGS didn't do the trick). Perhaps tweaking Rules.make and the like would do the trick? I think the basic problem is that conda does the
 entire build within a temporary folder that contains installations of all the dependencies and that this temporary folder is not added to all the necessary places. </div>
<div class=""><br class="">
</div>
<div class="">Eric</div>
<div class=""><br class="">
</div>
</div>
<br class="">
<div class="gmail_quote">
<div dir="ltr" class="">On Fri, Aug 4, 2017 at 3:05 PM Michael Barton <<a href="mailto:Michael.Barton@asu.edu" class="">Michael.Barton@asu.edu</a>> wrote:<br class="">
</div>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div style="word-wrap:break-word" class="">After a tedious set of tests, I can say that GRASS will not build with ANY dependency from Anaconda except SQLite. That is, I went through the dependencies one-by-one and replaced the path to a Framework version with
 an Anaconda version in my configure string. I did a make clean between each build attempt. 
<div class=""><br class="">
</div>
<div class="">All the versions are close (secondary or tertiary version number) or identical between William's framework builds and those in Anaconda. 
<div class=""><br class="">
</div>
<div class="">For FreeType and Cairo, the errors of the type I posted yesterday</div>
</div>
</div>
<div style="word-wrap:break-word" class="">
<div class="">
<div class=""><br class="">
</div>
<div class="">ld: symbol(s) not found for architecture x86_64<br class="">
clang: error: linker command failed with exit code 1 (use -v to see invocation)</div>
<div class=""><br class="">
</div>
</div>
</div>
<div style="word-wrap:break-word" class="">
<div class="">
<div class="">For the other dependencies, the errors are that the appropriate library cannot be found, like the following for fftw:</div>
<div class=""><br class="">
</div>
<div class="">dyld: Library not loaded: @rpath/libfftw3.3.dylib<br class="">
  Referenced from: /Users/cmbarton/grass_source/trunk/dist.x86_64-apple-darwin16.7.0/lib/libgrass_gmath.7.3.svn.dylib<br class="">
  Reason: image not found<br class="">
<br class="">
It seems to me like there has to be some kind of systematic reason for this not to work. Something hardwired in a key makefile or something. The Anaconda packages are all current builds of normal dependencies.</div>
<div class=""><br class="">
</div>
<div class="">I am even doing it in an environment in which /Applications/anaconda/bin is first in my PATH (which works fine if the dependencies are Frameworks).</div>
<div class=""><br class="">
</div>
<div class="">Any thoughts on this? </div>
<div class=""><br class="">
</div>
<div class=""></div>
</div>
</div>
<div style="word-wrap:break-word" class="">
<div class="">
<div class="">Michael<br class="">
<div class="">
<div style="text-align:start;text-indent:0px;word-wrap:break-word" class="">
<div style="text-align:start;text-indent:0px;word-wrap:break-word" class="">
<div style="text-align:-webkit-auto;text-indent:0px;word-wrap:break-word" class="">
<span class="m_-135401739931404629Apple-style-span" style="border-collapse:separate;border-spacing:0px">
<div style="word-wrap:break-word" class=""><span class="m_-135401739931404629Apple-style-span" style="border-collapse:separate;text-indent:0px;border-spacing:0px">
<div style="word-wrap:break-word" class=""><span class="m_-135401739931404629Apple-style-span" style="border-collapse:separate;text-indent:0px;border-spacing:0px">
<div style="word-wrap:break-word" class=""><span class="m_-135401739931404629Apple-style-span" style="border-collapse:separate;text-indent:0px;border-spacing:0px">
<div style="word-wrap:break-word" class=""><span class="m_-135401739931404629Apple-style-span" style="border-collapse:separate;text-indent:0px;border-spacing:0px">
<div style="word-wrap:break-word" class=""><span class="m_-135401739931404629Apple-style-span" style="border-collapse:separate;text-indent:0px;border-spacing:0px">
<div style="word-wrap:break-word" class=""><span class="m_-135401739931404629Apple-style-span" style="border-collapse:separate;text-indent:0px;border-spacing:0px">
<div style="word-wrap:break-word" class=""><span class="m_-135401739931404629Apple-style-span" style="border-collapse:separate;text-indent:0px;border-spacing:0px">
<div style="word-wrap:break-word" class="">
<div class="">
<div style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-variant-east-asian: normal; font-variant-position: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-transform: none; white-space: normal; word-spacing: 0px;" class="">
____________________</div>
<div style="letter-spacing:normal;text-transform:none;white-space:normal;word-spacing:0px;font-variant-ligatures:normal;font-variant-caps:normal;font-variant-east-asian:normal;line-height:normal" class="">
<font face="Helvetica" size="3" class="">C. Michael Barton</font></div>
<div style="letter-spacing:normal;text-transform:none;white-space:normal;word-spacing:0px;font-variant-ligatures:normal;font-variant-caps:normal;font-variant-east-asian:normal;line-height:normal" class="">
<font face="Helvetica" size="3" class="">Director, Center for Social Dynamics & Complexity </font></div>
<div style="letter-spacing:normal;text-transform:none;white-space:normal;word-spacing:0px;font-variant-ligatures:normal;font-variant-caps:normal;font-variant-east-asian:normal;line-height:normal" class="">
<font face="Helvetica" size="3" class="">Professor of Anthropology, School of Human Evolution & Social Change</font></div>
<div style="letter-spacing:normal;text-transform:none;white-space:normal;word-spacing:0px" class="">
<font face="Helvetica" size="3" class="">Head, Graduate Faculty in Complex Adaptive Systems Science</font></div>
<div style="letter-spacing:normal;text-transform:none;white-space:normal;word-spacing:0px;font-variant-ligatures:normal;font-variant-caps:normal;font-variant-east-asian:normal;line-height:normal" class="">
<font face="Helvetica" size="3" class="">Arizona State University</font></div>
<div style="letter-spacing: normal; text-transform: none; white-space: normal; word-spacing: 0px; font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-variant-east-asian: normal; font-weight: normal; line-height: normal;" class="">
<br class="">
</div>
<font face="Helvetica" size="3" style="letter-spacing:normal;text-transform:none;white-space:normal;word-spacing:0px" class=""><font class="">voice:  </font><font class=""><a href="tel:(480)%20965-6262" value="+14809656262" target="_blank" class="">480-965-6262</a>
 (SHESC), <a href="tel:(480)%20965-8130" value="+14809658130" target="_blank" class="">480-965-8130</a>/727-9746 (CSDC)</font><br class="">
<font class="">fax: <a href="tel:(480)%20965-7671" value="+14809657671" target="_blank" class="">
480-965-7671</a> (SHESC),  <a href="tel:(480)%20727-0709" value="+14807270709" target="_blank" class="">480-727-0709</a> (CSDC)</font><br class="">
</font>
<div style="letter-spacing:normal;text-transform:none;white-space:normal;word-spacing:0px;font-variant-ligatures:normal;font-variant-caps:normal;font-variant-east-asian:normal;line-height:normal" class="">
<font face="Helvetica" size="3" class="">www: <a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__www.public.asu.edu_-7Ecmbarton&d=DwMFaQ&c=l45AxH-kUV29SRQusp9vYR0n1GycN4_2jInuKy6zbqQ&r=lk-7X7CEOMDN8GaGVhiDsuO6gEp1wbG6nfT1XEEEtR0&m=KtrgOgv-4RMiEJEdKKQg5Z_ZL4pv8gJw3U0lH7fV_jg&s=LIHaJSGN6aEh018lfLuD_oohvcwC4GRCW2pleRj90HE&e=" target="_blank" class="">
http://www.public.asu.edu/~cmbarton</a>, <a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__csdc.asu.edu&d=DwMFaQ&c=l45AxH-kUV29SRQusp9vYR0n1GycN4_2jInuKy6zbqQ&r=lk-7X7CEOMDN8GaGVhiDsuO6gEp1wbG6nfT1XEEEtR0&m=KtrgOgv-4RMiEJEdKKQg5Z_ZL4pv8gJw3U0lH7fV_jg&s=ZZ_j-P8_GLz4WT29WIipvPXFuAZoZlYUntcjvNtYEOs&e=" target="_blank" class="">
http://csdc.asu.edu</a></font></div>
<br class="">
</div>
<br class="">
</div>
</span><br class="m_-135401739931404629Apple-interchange-newline">
</div>
</span><br class="m_-135401739931404629Apple-interchange-newline">
</div>
</span><br class="m_-135401739931404629Apple-interchange-newline">
</div>
</span><br class="m_-135401739931404629Apple-interchange-newline">
</div>
</span><br class="m_-135401739931404629Apple-interchange-newline">
</div>
</span><br class="m_-135401739931404629Apple-interchange-newline">
</div>
</span><br class="m_-135401739931404629Apple-interchange-newline">
</div>
</span><br class="m_-135401739931404629Apple-interchange-newline">
</div>
<br class="m_-135401739931404629Apple-interchange-newline">
</div>
<br class="m_-135401739931404629Apple-interchange-newline">
</div>
<br class="m_-135401739931404629Apple-interchange-newline">
<br class="m_-135401739931404629Apple-interchange-newline">
</div>
<br class="">
</div>
</div>
</div>
<div style="word-wrap:break-word" class="">
<div class="">
<div class="">
<div class="">
<blockquote type="cite" class="">
<div class="">On Aug 4, 2017, at 12:56 AM, Moritz Lennert <<a href="mailto:mlennert@club.worldonline.be" target="_blank" class="">mlennert@club.worldonline.be</a>> wrote:</div>
<br class="m_-135401739931404629Apple-interchange-newline">
<div class="">
<div class="">On 04/08/17 00:33, Vaclav Petras wrote:<br class="">
<blockquote type="cite" class="">Well, the error (below) suggests that wrong library is either linked or included. You need to go through the -L and -I paths and see if you need to set one of these differently or add additional one for iconv. I don't see how
 to set this through ./configure (I don't see any --with-iconv-includes= or --with-iconv-libs=), but you can start by editing the Makefiles or the command itself and changing -L and -I directly.<br class="">
Undefined symbols for architecture x86_64:<br class="">
  "_iconv", referenced from:<br class="">
      _draw_main in text3.o<br class="">
  "_iconv_close", referenced from:<br class="">
      _draw_main in text3.o<br class="">
  "_iconv_open", referenced from:<br class="">
      _draw_main in text3.o<br class="">
ld: symbol(s) not found for architecture x86_64<br class="">
clang: error: linker command failed with exit code 1 (use -v to see invocation)<br class="">
</blockquote>
<br class="">
Just guessing: Could the error be linked to the use of clang ? Have you tried with gcc ?<br class="">
<br class="">
Moritz<br class="">
</div>
</div>
</blockquote>
</div>
<br class="">
</div>
</div>
</div>
</blockquote>
</div>
</div>
</blockquote>
</div>
<br class="">
</div>
</body>
</html>