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

[netCDF #BZR-716286]: NetCDF Unix Install sizeof off_t



Can you provide the `config.log` file generated when you observe this error? It 
contains more verbose output, which may point us in the right direction.

Thanks!

-Ward

> I'm trying to install the netCDF C library from source on an OmniOS
> machine, and I'm getting a compilation error that I can't quite get past,
> and was wondering if anyone had any recommendations.
> 
> Here's the error message I'm getting:
> checking size of off_t... configure: error: in
> `/usr/local/src/netcdf-c-4.9.2':
> configure: error: cannot compute sizeof (off_t)
> See `config.log' for more details
> 
> I've got libcurl, libz, and hdf5 all installed.
> 
> My configure command:
> ./configure CC="gcc -m64" CXX="g++ -m64" --prefix=/usr/local
> CPPFLAGS="-I/usr/local/include" LDFLAGS="-L/usr/local/lib"
> 
> I'm confused by the error message because when I run the following program
> I don't get any compilation errors, and the sizeof(off_t) gives me the same
> output that an ubuntu distro gives. So I'm not aware of any significant
> differences in the OS when it comes to off_t.
> ```
> #include <stdio.h>
> int main() {
> off_t test;
> printf("%lu \n", sizeof(off_t));
> return 0;
> }
> ```
> 
> In my config.log I see the following error message about off_t.
> conftest.c:147:20: error: expected expression before ')' token
> 147 | if (sizeof ((off_t)))
> |
> 
> If anyone has any recommendations for me I would love to hear them.
> 
> Thanks
> 
> Jacob Adams
> 
> 


Ticket Details
===================
Ticket ID: BZR-716286
Department: Support netCDF
Priority: High
Status: Closed
===================
NOTE: All email exchanges with NSF 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.