bugpktools - Bugs: bug #64873, Fails to build with GDAL 3.8.0

 
 

bug #64873: Fails to build with GDAL 3.8.0

Submitter:  None
Submitted:  Wed 08 Nov 2023 03:16:38 PM UTC
   
 
Category:  None Severity:  3 - Normal
Item Group:  None Status:  None
Privacy:  Public Assigned to:  None
Open/Closed:  Open Operating System:  * GNU/Linux
* Mandatory Fields

Add a New Comment Rich Markup
   

Wed 08 Nov 2023 08:28:50 PM UTC, comment #1: 

This is fixed by patching GDAL:

 https://github.com/OSGeo/gdal/pull/8682

Bas Couwenberg <sebastic>
Wed 08 Nov 2023 03:16:38 PM UTC, original submission:  

As reported in Debian Bug #1055587:

 https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1055587

Your package FTBFS with GDAL 3.8.0 from experimental:

 In file included from /usr/include/gdal/ogr_geometry.h:36,
                  from /usr/include/gdal/ogr_feature.h:36,
                  from /usr/include/gdal/ogrsf_frmts.h:35,
                  from /build/pktools-2.6.7.6+ds/src/imageclasses/ImgReaderOgr.h:30,
                  from /build/pktools-2.6.7.6+ds/src/imageclasses/ImgReaderOgr.cc:22:
 /usr/include/gdal/cpl_json.h:97:36: error: expected ')' before 'nVal'
    97 |     explicit CPLJSONObject(uint64_t nVal);
       |                           ~        ^~~~~
       |                                    )
 /usr/include/gdal/cpl_json.h:119:41: error: 'uint64_t' has not been declared
   119 |     void Add(const std::string &osName, uint64_t nValue);
       |                                         ^~~~~~~~
 /usr/include/gdal/cpl_json.h:119:10: error: 'void CPLJSONObject::Add(const std::string&, int)' cannot be overloaded with 'void CPLJSONObject::Add(const std::string&, int)'
   119 |     void Add(const std::string &osName, uint64_t nValue);
       |          ^~~
 /usr/include/gdal/cpl_json.h:117:10: note: previous declaration 'void CPLJSONObject::Add(const std::string&, int)'
   117 |     void Add(const std::string &osName, int nValue);
       |          ^~~
 /usr/include/gdal/cpl_json.h:131:41: error: 'uint64_t' has not been declared
   131 |     void Set(const std::string &osName, uint64_t nValue);
       |                                         ^~~~~~~~
 /usr/include/gdal/cpl_json.h:131:10: error: 'void CPLJSONObject::Set(const std::string&, int)' cannot be overloaded with 'void CPLJSONObject::Set(const std::string&, int)'
   131 |     void Set(const std::string &osName, uint64_t nValue);
       |          ^~~
 /usr/include/gdal/cpl_json.h:129:10: note: previous declaration 'void CPLJSONObject::Set(const std::string&, int)'
   129 |     void Set(const std::string &osName, int nValue);
       |          ^~~
 /usr/include/gdal/cpl_json.h:245:14: error: 'uint64_t' has not been declared
   245 |     void Add(uint64_t nValue);
       |              ^~~~~~~~
 /usr/include/gdal/cpl_json.h:245:10: error: 'void CPLJSONArray::Add(int)' cannot be overloaded with 'void CPLJSONArray::Add(int)'
   245 |     void Add(uint64_t nValue);
       |          ^~~
 /usr/include/gdal/cpl_json.h:243:10: note: previous declaration 'void CPLJSONArray::Add(int)'
   243 |     void Add(int nValue);
       |          ^~~
 In file included from /usr/include/gdal/ogr_geometry.h:36,
                  from /usr/include/gdal/ogr_feature.h:36,
                  from /build/pktools-2.6.7.6+ds/src/base/Optionpk.h:38,
                  from /build/pktools-2.6.7.6+ds/src/fileclasses/FileReaderAscii.h:26,
                  from /build/pktools-2.6.7.6+ds/src/fileclasses/FileReaderAscii.cc:22:
 /usr/include/gdal/cpl_json.h:97:36: error: expected ')' before 'nVal'
    97 |     explicit CPLJSONObject(uint64_t nVal);
       |                           ~        ^~~~~
       |                                    )
 /usr/include/gdal/cpl_json.h:119:41: error: 'uint64_t' has not been declared
   119 |     void Add(const std::string &osName, uint64_t nValue);
       |                                         ^~~~~~~~
 /usr/include/gdal/cpl_json.h:119:10: error: 'void CPLJSONObject::Add(const std::string&, int)' cannot be overloaded with 'void CPLJSONObject::Add(const std::string&, int)'
   119 |     void Add(const std::string &osName, uint64_t nValue);
       |          ^~~
 /usr/include/gdal/cpl_json.h:117:10: note: previous declaration 'void CPLJSONObject::Add(const std::string&, int)'
   117 |     void Add(const std::string &osName, int nValue);
       |          ^~~
 /usr/include/gdal/cpl_json.h:131:41: error: 'uint64_t' has not been declared
   131 |     void Set(const std::string &osName, uint64_t nValue);
       |                                         ^~~~~~~~
 /usr/include/gdal/cpl_json.h:131:10: error: 'void CPLJSONObject::Set(const std::string&, int)' cannot be overloaded with 'void CPLJSONObject::Set(const std::string&, int)'
   131 |     void Set(const std::string &osName, uint64_t nValue);
       |          ^~~
 /usr/include/gdal/cpl_json.h:129:10: note: previous declaration 'void CPLJSONObject::Set(const std::string&, int)'
   129 |     void Set(const std::string &osName, int nValue);
       |          ^~~
 /usr/include/gdal/cpl_json.h:245:14: error: 'uint64_t' has not been declared
   245 |     void Add(uint64_t nValue);
       |              ^~~~~~~~
 /usr/include/gdal/cpl_json.h:245:10: error: 'void CPLJSONArray::Add(int)' cannot be overloaded with 'void CPLJSONArray::Add(int)'
   245 |     void Add(uint64_t nValue);
       |          ^~~
 /usr/include/gdal/cpl_json.h:243:10: note: previous declaration 'void CPLJSONArray::Add(int)'
   243 |     void Add(int nValue);
       |          ^~~

The full buildlog is attached.

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

Attached Files
file #55316:  pktools_2.6.7.6+ds-5_amd64.build added by None (144KiB - application/octet-stream)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by sebastic (Posted a comment)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follows 1 latest change.

    Date Changed by Updated Field Previous Value => Replaced by
    2023-11-08 None Attached File- Added pktools_2.6.7.6+ds-5_amd64.build, #55316

    Back to the top

    Powered by Savane 3.14-3b9d.
    Corresponding source code