Skip to content

Known issues in libraries

Simon Urbanek edited this page Jul 1, 2020 · 9 revisions

The following are various bugs in libraries that we provide recipes for. Ideally, those should be addressed upstream as none of them are macOS-specific, majority of them are due to broken detection of flags for statically built libraries and thus equally present on Linux.

hdf4 4.2.15

Tests Fortran with /usr/local/lib but fails to include it when linking. Requires explicit LIBS=-L/usr/local/lib to fix.

hdf5 1.12.0

There is a bug in the examples - install-examples target ignores $(DESTDIR) and thus fails. Using make install-recursive instead of make install works as install is simply deferring to install-recursive and install-examples.

NetCDF 4.7.4

Fails to include -lsz when linking hdf5 with SZIP support. Requires explicit LIBS=-lsz to fix.

GDAL 3.1.1

  • Fails to include -lsqlite3 when linking PROJ6
  • Fails to include -lsz when checking for HDF5.
  • Uses incorrect flags when checking for GEOS, it completely ignores geos-config --static-clibs and --clibs and hard-codes -lgeos_c. To make things worse, the test for GEOS is so broken that it ignores LIBS (replaces it instead of adding) so can't be fixed without patching. (It also requires -lstdc++ since it uses C compiler to link a C++ library, but arguably that should be really fixed by GEOS on --static-clibs).
  • uses libpq without checking (more precisely libpq-fe.h which is in /usr/local/pgsql/include and thus not detected by default, requires CPPLFAGS=-I/usr/local/pgsql/include).
Clone this wiki locally