<div dir="ltr"><br><br><div class="gmail_quote"><div dir="ltr">On Wed, Nov 21, 2018 at 4:22 PM Michael Barton <<a href="mailto:Michael.Barton@asu.edu">Michael.Barton@asu.edu</a>> wrote:<br></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;line-break:after-white-space"><br><div>As far as I can tell, I do not have cpp anywhere in any of the Mac binaries I've done, although I do have a C++ compiler installed. All previous versions compiled and built without this error, and they run fine. So what was changed between 8 October
 and the release of 7.4.2 that makes configure fail if cpp is not found? Where should I look?</div></div></blockquote><div><br></div><div>Do you mean a change in GRASS GIS source code or your system configuration (e.g. updates)? How to decide between them is to configure the last version of GRASS GIS which worked for you. If you can configure and compile from scratch that old version but not the new one, you can try a version in between these two, the go to beginning of this sentence (aka bisect). This way you find the change in GRASS GIS. In case both the old and the new version don't configure, the change is in your system.<br></div><div><br></div><div> </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;line-break:after-white-space"><br>
<div><div><br><blockquote type="cite">
<div>On Nov 12, 2018, at 9:04 PM, Vaclav Petras <<a href="mailto:wenzeslaus@gmail.com" target="_blank">wenzeslaus@gmail.com</a>> wrote:</div>
<br class="m_1664476720698806211Apple-interchange-newline">
<div>
<div dir="ltr">
<div dir="ltr">
<div dir="ltr">
<div dir="ltr">
<div>Since it's complaining about /lib/cpp,</div>
<div><br>
</div>
<div>./configure: line 5164: /lib/cpp: No such file or directory</div>
<div><br>
</div>
<div>I would say the problem is not zlib, but missing C++ compiler (at least on my machine, /lib/cpp eventually points to /usr/bin/cpp-5), although I don't know why ./configure would catch that problem earlier since a successful report contains:</div>
<div><br>
</div>
<div>  C compiler:                 clang -O2 -Wall -pedantic -Wextra <br>
  C++ compiler:               clang++ -std=c++14 -fexceptions<br>
</div>
<div><br>
</div>
<div>The checking phase reports only about C compiler, so the difference is perhaps there.<br>
</div>
<div><br>
</div>
<div>checking for gcc... clang<br>
checking whether the C compiler (clang -O2 -Wall -pedantic -Wextra -s) works... yes<br>
checking whether the C compiler (clang -O2 -Wall -pedantic -Wextra -s) is a cross-compiler... no<br>
checking whether we are using GNU C... yes<br>
checking whether clang accepts -g... yes<br>
<br>
</div>
<div><br>
</div>
<div><br>
On Fri, Nov 9, 2018 at 10:58 PM Michael Barton <<a href="mailto:Michael.Barton@asu.edu" target="_blank">Michael.Barton@asu.edu</a>> wrote:<br>
><br>
> I could see that it could not find zlib in the configure output. I don't know why, since I DO have zlib in the appropriate place
<br>
><br>
> MIchael<br>
><br>
> On Nov 9, 2018, at 4:21 PM, Markus Neteler <<a href="mailto:neteler@osgeo.org" target="_blank">neteler@osgeo.org</a>> wrote:<br>
><br>
> Just scroll to the end of the file.<br>
><br>
><br>
> ; return 0; }<br>
> configure:5066: checking for socket in -lsocket<br>
> configure:5083:<br>
> /Applications/GRASS-7.4.2.app/Contents/Resources/bin/clang -o conftest<br>
> -g -O2    -I/Applications/GRASS-7.4.2.app/Contents/Resources/include<br>
> -L/Applications/GRASS-7.4.2.app/Contents/Resources/lib conftest.c<br>
> -lsocket   1>&5<br>
> ld: library not found for -lsocket<br>
> clang-4.0: error: linker command failed with exit code 1 (use -v to<br>
> see invocation)<br>
> configure: failed program was:<br>
> #line 5072 "configure"<br>
> #include "confdefs.h"<br>
> /* Override any gcc2 internal prototype to avoid an error.  */<br>
> /* We use char because int might match the return type of a gcc2<br>
>    builtin and then its argument prototype would still apply.  */<br>
> char socket();<br>
><br>
> int main() {<br>
> socket()<br>
> ; return 0; }<br>
> configure:5131: checking for location of zlib includes<br>
> configure:5157: checking for zlib.h<br>
> configure:5165: /lib/cpp<br>
> -I/Applications/GRASS-7.4.2.app/Contents/Resources/include conftest.c<br>
><br>
> /dev/null 2>conftest.out<br>
><br>
> ./configure: line 5164: /lib/cpp: No such file or directory<br>
> configure: failed program was:<br>
> #line 5160 "configure"<br>
> #include "confdefs.h"<br>
> #include <zlib.h></div>
</div>
</div>
</div>
</div>
</div>
</blockquote>
</div>
<br>
</div>
</div>

</blockquote></div></div>