This archive contains answers to questions sent to Unidata support through mid-2025. Note that the archive is no longer being updated. We provide the archive for reference; many of the answers presented here remain technically correct, even if somewhat outdated. For the most up-to-date information on the use of NSF Unidata software and data services, please consult the Software Documentation first.
Hi, re: > Could someone help me with a Gempak compiler issue? > > I have downloaded NetCDF with brew and Macports and linked the NetCDF > directory using export. Also, I downloaded Fortran-NetCDF and GCC-9 > using MacPorts. I attached the make.out for you to review. GEMPAK is distributed with source for the netCDF distribution, and its make files are setup to use the netCDF library that is built as part of the distribution, not one that is installed externally. A quick look at the make.out file you attached shows that the build of the netCDF library failed with: mv -f .deps/libnetcdf4_la-nc4dispatch.Tpo .deps/libnetcdf4_la-nc4dispatch.Plo /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -I../include -DNDEBUG -Df2cFortran -I/Users/traviswashington/Desktop/gempak/GEMPAK7/os/darwin/include -O -I../libsrc -MT libnetcdf4_la-nc4attr.lo -MD -MP -MF .deps/libnetcdf4_la-nc4attr.Tpo -c -o libnetcdf4_la-nc4attr.lo `test -f 'nc4attr.c' || echo './'`nc4attr.c libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -I../include -DNDEBUG -Df2cFortran -I/Users/traviswashington/Desktop/gempak/GEMPAK7/os/darwin/include -O -I../libsrc -MT libnetcdf4_la-nc4attr.lo -MD -MP -MF .deps/libnetcdf4_la-nc4attr.Tpo -c nc4attr.c -fno-common -DPIC -o .libs/libnetcdf4_la-nc4attr.o In file included from ../include/hdf5.h:24, from ../include/nc4internal.h:18, from nc4attr.c:15: ../include/H5public.h:37:10: fatal error: features.h: No such file or directory 37 | #include <features.h> /*for setting POSIX, BSD, etc. compatibility */ | ^~~~~~~~~~~~ compilation terminated. make[6]: *** [libnetcdf4_la-nc4attr.lo] Error 1 make[5]: *** [all-recursive] Error 1 A Google search using 'features.h not found mac' as a search key returns several pages that discuss this problem. The most promising of the links I looked at suggest a solution that includes command line tools using Xcode and using the C compiler that gets installed using Xcode. Cheers, Tom -- **************************************************************************** Unidata User Support UCAR Unidata Program (303) 497-8642 P.O. Box 3000 address@hidden Boulder, CO 80307 ---------------------------------------------------------------------------- Unidata HomePage http://www.unidata.ucar.edu **************************************************************************** Ticket Details =================== Ticket ID: YRS-108592 Department: Support GEMPAK Priority: Normal Status: Closed =================== NOTE: All email exchanges with Unidata User Support are recorded in the Unidata inquiry tracking system and then made publicly available through the web. If you do not want to have your interactions made available in this way, you must let us know in each email you send to us.