<div dir="ltr">Your project is linking against the static versions of netCDF and hdf5. I believe the proper solution to your problem is adding <span style="font-size:12.8px">-lcurl, -lz, and -ldl to the linker flags of your project.</span></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Sep 23, 2015 at 3:57 PM, Ryan Jamison <span dir="ltr">&lt;<a href="mailto:ryan.d.jamison@gmail.com" target="_blank">ryan.d.jamison@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">I&#39;m trying to build a code that requires netCDF and hdf5. I keep getting the errors shown in the attached log file. It appears to me there are issues with lcurl and lz.<div><br></div><div><br></div></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Sep 23, 2015 at 2:40 PM, Ryan Schmidt <span dir="ltr">&lt;<a href="mailto:ryandesign@macports.org" target="_blank">ryandesign@macports.org</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span><br>
On Sep 23, 2015, at 2:49 PM, Ryan Jamison wrote:<br>
<br>
&gt; I was wondering how one goes about linking curl (-lcurl), -lz, and -ldl to netCDF that&#39;s build through Macports? Thanks,<br>
<br>
</span>Looks like curl support is added to netcdf by enabling the dap variant. It&#39;s on by default so you should already have it, unless you explicitly disabled it.<br>
<br>
My copy of netcdf is also already linking with libz. I&#39;m not sure if that&#39;s because of curl (which itself depends on libz) or for other reasons. Maybe netcdf needs to have a zlib dependency added.<br>
<br>
My copy of netcdf is not linked with libdl and I don&#39;t see a way in the portfile to do that. What would linking with libdl accomplish?<br>
<br>
</blockquote></div><br></div>
</div></div><br>_______________________________________________<br>
macports-users mailing list<br>
<a href="mailto:macports-users@lists.macosforge.org">macports-users@lists.macosforge.org</a><br>
<a href="https://lists.macosforge.org/mailman/listinfo/macports-users" rel="noreferrer" target="_blank">https://lists.macosforge.org/mailman/listinfo/macports-users</a><br>
<br></blockquote></div><br></div>