<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>I'm having trouble configuring <span class="Apple-style-span" style="font-size: 13px; ">MOAB for parallel support and giving it locations of netcdf, hdf5, zlib and szip.</span></div><div><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 13px;"><br></span></font></div><div><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 13px;">While checking for netcdf_c++ on configure line 27906 it fails the conftest compile. But it's really due to the libraries being listed in the wrong order.</span></font></div><div><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 13px;"><br></span></font></div><div><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 13px;">The build command is:</span></font></div><div><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 13px;"><br></span></font></div><div><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 13px;"><div>configure:27938: /homes/sharp/3rdparty/mpich2/mpich2-1.1.1p1/gcc/bin/mpicxx -o conftest -Wall -pipe -I/homes/sharp/3rdparty/netcdf/netcdf-4.0.1/parallel/gcc/include -DUNORDERED_MAP_NS=std::tr1 -DHAVE_UNORDERED_MAP=tr1/unordered_map -L/homes/sharp/3rdparty/netcdf/netcdf-4.0.1/parallel/gcc/lib -L/homes/sharp/3rdparty/zlib/zlib-1.2.3/gcc/lib -L/homes/sharp/3rdparty/szip/szip-2.1/gcc/lib -L/homes/sharp/3rdparty/hdf5/hdf5-1.8.3/parallel/gcc/lib conftest.cpp -lm -lnetcdf_c++ -lnetcdf -lhdf5_hl -lsz -lz -lhdf5 >&5</div><div><br></div><div>but this will fail the compilation.</div><div><br></div><div>However if the -lhdf5 is moved before the -lsz and -lz but still after the -lhdf5_hl it works.</div><div><br></div><div>The configure line is below.</div><div><br></div><div>Is this a bug? If so I'll enter it.</div></span></font></div><div><br></div><div>./configure --prefix=/homes/sharp/libs/MOAB/beta/parallel/gcc_opt --with-mpi=/homes/sharp/3rdparty/mpich2/mpich2-1.1.1p1/gcc/bin --with-netcdf=/homes/sharp/3rdparty/netcdf/netcdf-4.0.1/parallel/gcc --with-hdf5=/homes/sharp/3rdparty/hdf5/hdf5-1.8.3/parallel/gcc --with-zlib=/homes/sharp/3rdparty/zlib/zlib-1.2.3/gcc --with-szip=/homes/sharp/3rdparty/szip/szip-2.1/gcc --disable-debug --enable-production</div><div><br></div><div><br></div><div>--Bob</div></body></html>