Opened 7 years ago
Closed 7 years ago
#54203 closed defect (fixed)
gdal @2.2.0: broken on non-C++11 setups
Reported by: | mojca (Mojca Miklavec) | Owned by: | Veence (Vincent) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | |
Keywords: | Cc: | ||
Port: | gdal |
Description
gdal 2.2.0 is broken on non-C++11 setups, but the compilation should theoretically still work with C++03.
The most important part would be to pass --without-cpp11
to configure.args
when not using C++11. The way to check that is probably by testing for stdlib and declare C++11 support non-existent when it's not libc++
, even if that's not exactly correct.
Once you do that, one of the major issues becomes the dance around isnan()
and isinf()
. The master branch / trunk works much better in this respect due to addition of
#elif defined(__cplusplus) && defined(HAVE_STD_IS_NAN) && HAVE_STD_IS_NAN
in port/cpl_port.h
and on 10.7 it leads to successful compilation. 10.6 would probably need a newer compiler, I didn't test yet.
Change History (2)
comment:1 Changed 7 years ago by mojca (Mojca Miklavec)
comment:2 Changed 7 years ago by mojca (Mojca Miklavec)
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note: See
TracTickets for help on using
tickets.
I'm sorry, I didn't know I would manage to fix it so quickly, else I wouldn't open an issue here. Here's a PR: