I'm trying to compile netCDF-C 4.9.3 on Solaris 11 (x86) with Oracle
Solaris Studio 12.3.
I launched the configure script but it threw the following error:
checking size of off_t... configure: error: in
'/export/home/jeffries/Downloads/netcdf-c-4-9-3':
configure: error: cannot compute sizeof (off_t)
I tried to compile and link the code that generated the error (conftest.c):
# cc -o conftest -fno-strict-aliasing -lzstd conftest.c
The error message was:
ld: fatal: option '-fno-strict-aliasing' is incompatible with building a
dynamic executable
The actual error comes from the linker.
Any ideas to overcome this error?
Luis