[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[netCDF #HXP-254473]: Bug in genlib.h

Hi John,

> I'd like to report a bug in ncgen3/genlib.h.
> Towards the bottom of this file is the code:
> #ifndef HAVE_STRLCAT
> extern size_t strlcat(char *dst, const char *src, size_t siz);
> #endif
> but HAVE_STRLCAT will _never_ be defined in this file, because config.h
> (unless by accident, or by another file) is not included in genlib.h.
> This causes netcdf to fail to build under clang on OSX 10.9 Mavericks.
> One fix would be to #include "config.h" at the top of the file.

Thanks for reporting the problem, which was also reported by another user on 
netcdfgroup mailing list.  Your suggested fix is correct and is incorporated in
the current master branch on GitHub, so it will be in our next release.  In the
meantime, I'll include a note about the issue in our "Known Problems" document


Thanks for reporting the problem.


Russ Rew                                         UCAR Unidata Program
address@hidden                      http://www.unidata.ucar.edu

Ticket Details
Ticket ID: HXP-254473
Department: Support netCDF
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.