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

[UDUNITS #OBJ-198091]: udunits 2.2.26 fails to build against clang 12.0.0


I don't understand why my clang(1) doesn't have this problem.

I suspect the problem is the default definition of _XOPEN_SOURCE at the top of 
"converter.c". I've modified that to work in your environment, hopefully.

Use this command to get it:

    wget ftp://ftp.unidata.ucar.edu/pub/udunits/beta/udunits-

> % pwd
> /Users/grubin/test/udunits-
> % echo $CC $CFLAGS
> clang -fPIC
> % clang --version
> Apple clang version 12.0.0 (clang-1200.0.32.21)
> Target: x86_64-apple-darwin19.6.0
> Thread model: posix
> InstalledDir:
> /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
> % echo $FC $FCFLAGS
> gfortran -fPIC
> % gfortran --version
> GNU Fortran (Homebrew GCC 10.2.0) 10.2.0
> % ./configure CFLAGS=-std=c99 >configure.log 2>&1
> % make V=Y > make.log 2>&1
> Log files are attached.

Steve Emmerson

Ticket Details
Ticket ID: OBJ-198091
Department: Support UDUNITS
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.