Opened 18 months ago
Closed 18 months ago
#67468 closed defect (fixed)
GDAL needs -DBUILD_WITHOUT_64BIT_OFFSET on i386
Reported by: | barracuda156 | Owned by: | Veence (Vincent) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.8.1 |
Keywords: | snowleopard, i386 | Cc: | |
Port: | gdal |
Description
I/opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_gis_gdal/gdal/work/gdal-3.7.0/frmts/gtiff/libgeotiff -I/opt/local/include -I/opt/local/lib/proj9/include -pipe -DGDAL_COMPILATION -DNDEBUG -I/opt/local/include -I/opt/local/include/LegacySupport -stdlib=libc++ -fno-finite-math-only -fvisibility=hidden -arch i386 -mmacosx-version-min=10.6 -fPIC -Wall -Wextra -Winit-self -Wunused-parameter -Wmissing-declarations -Wshorten-64-to-32 -Wshadow -Wshadow-field -Wmissing-include-dirs -Wformat -Werror=format-security -Wno-format-nonliteral -Werror=vla -Wdate-time -Wnull-dereference -Wextra-semi -Wcomma -Wfloat-conversion -Wdocumentation -Wno-documentation-deprecated-sync -Wunused-private-field -Wnon-virtual-dtor -Woverloaded-virtual -Wsuggest-override -fno-operator-names -Wzero-as-null-pointer-constant -Weffc++ -MD -MT frmts/gtiff/CMakeFiles/gdal_GTIFF.dir/gt_citation.cpp.o -MF CMakeFiles/gdal_GTIFF.dir/gt_citation.cpp.o.d -o CMakeFiles/gdal_GTIFF.dir/gt_citation.cpp.o -c /opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_gis_gdal/gdal/work/gdal-3.7.0/frmts/gtiff/gt_citation.cpp /opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_gis_gdal/gdal/work/gdal-3.7.0/port/cpl_vsil_unix_stdio_64.cpp:141:1: error: static_assert failed due to requirement 'sizeof (ftell(nullptr)) == sizeof(unsigned long long)' "File API does not seem to support 64-bit offset. If you still want to build GDAL without > 4GB file support, add the -DBUILD_WITHOUT_64BIT_OFFSET define" static_assert(sizeof(VSI_FTELL64(nullptr)) == sizeof(vsi_l_offset), ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_gis_gdal/gdal/work/gdal-3.7.0/port/cpl_vsil_unix_stdio_64.cpp:328:41: warning: implicit conversion loses integer precision: 'vsi_l_offset' (aka 'unsigned long long') to 'long' [-Wshorten-64-to-32] const int nResult = VSI_FSEEK64(fp, nOffsetIn, nWhence); ~~~~~~~~~~~ ^~~~~~~~~ /opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_gis_gdal/gdal/work/gdal-3.7.0/port/cpl_vsil_unix_stdio_64.cpp:435:29: warning: implicit conversion loses integer precision: 'vsi_l_offset' (aka 'unsigned long long') to 'long' [-Wshorten-64-to-32] if (VSI_FSEEK64(fp, m_nOffset, SEEK_SET) != 0) ~~~~~~~~~~~ ^~~~~~~~~ /opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_gis_gdal/gdal/work/gdal-3.7.0/port/cpl_vsil_unix_stdio_64.cpp:497:29: warning: implicit conversion loses integer precision: 'vsi_l_offset' (aka 'unsigned long long') to 'long' [-Wshorten-64-to-32] if (VSI_FSEEK64(fp, m_nOffset, SEEK_SET) != 0) ~~~~~~~~~~~ ^~~~~~~~~ 3 warnings and 1 error generated.
I will verify if ppc
needs it too or not.
Change History (1)
comment:1 Changed 18 months ago by barracuda156
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Note: See
TracTickets for help on using
tickets.
In 969f0662f2dcf2e8963c40509987073412829339/macports-ports (master):