[MacPorts] #68889: proj6 build error: error: 'int64_t' in namespace 'std' does not name a type

MacPorts noreply at macports.org
Wed Dec 13 17:58:25 UTC 2023


#68889: proj6 build error: error: 'int64_t' in namespace 'std' does not name a type
--------------------------------------------------+----------------------
 Reporter:  barracuda156                          |      Owner:  stromnov
     Type:  defect                                |     Status:  assigned
 Priority:  Normal                                |  Milestone:
Component:  ports                                 |    Version:  2.8.1
 Keywords:  tiger, leopard, snowleopard, powerpc  |       Port:  proj6
--------------------------------------------------+----------------------
 {{{
 In file included from proj_json_streaming_writer.cpp:34:
 proj_json_streaming_writer.hpp:42:14: error: 'int64_t' in namespace 'std'
 does not name a type
    42 | typedef std::int64_t GIntBig;
       |              ^~~~~~~
 proj_json_streaming_writer.hpp:43:14: error: 'uint64_t' in namespace 'std'
 does not name a type; did you mean 'wint_t'?
    43 | typedef std::uint64_t GUInt64;
       |              ^~~~~~~~
       |              wint_t
 proj_json_streaming_writer.hpp:93:14: error: 'GIntBig' has not been
 declared
    93 |     void Add(GIntBig nVal);
       |              ^~~~~~~
 proj_json_streaming_writer.hpp:93:10: error: 'void
 osgeo::proj::CPLJSonStreamingWriter::Add(int)' cannot be overloaded with
 'void osgeo::proj::CPLJSonStreamingWriter::Add(int)'
    93 |     void Add(GIntBig nVal);
       |          ^~~
 proj_json_streaming_writer.hpp:91:10: note: previous declaration 'void
 osgeo::proj::CPLJSonStreamingWriter::Add(int)'
    91 |     void Add(int nVal) { Add(static_cast<GIntBig>(nVal)); }
       |          ^~~
 proj_json_streaming_writer.hpp:94:14: error: 'GUInt64' has not been
 declared
    94 |     void Add(GUInt64 nVal);
       |              ^~~~~~~
 proj_json_streaming_writer.hpp:94:10: error: 'void
 osgeo::proj::CPLJSonStreamingWriter::Add(int)' cannot be overloaded with
 'void osgeo::proj::CPLJSonStreamingWriter::Add(int)'
    94 |     void Add(GUInt64 nVal);
       |          ^~~
 proj_json_streaming_writer.hpp:91:10: note: previous declaration 'void
 osgeo::proj::CPLJSonStreamingWriter::Add(int)'
    91 |     void Add(int nVal) { Add(static_cast<GIntBig>(nVal)); }
       |          ^~~
 proj_json_streaming_writer.hpp: In member function 'void
 osgeo::proj::CPLJSonStreamingWriter::Add(int)':
 proj_json_streaming_writer.hpp:91:42: error: 'GIntBig' does not name a
 type
    91 |     void Add(int nVal) { Add(static_cast<GIntBig>(nVal)); }
       |                                          ^~~~~~~
 proj_json_streaming_writer.hpp: In member function 'void
 osgeo::proj::CPLJSonStreamingWriter::Add(unsigned int)':
 proj_json_streaming_writer.hpp:92:51: error: 'GIntBig' does not name a
 type
    92 |     void Add(unsigned int nVal) { Add(static_cast<GIntBig>(nVal));
 }
       |                                                   ^~~~~~~
 depbase=`echo apps/geod_set.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
         /opt/local/bin/g++-mp-13 -DHAVE_CONFIG_H -I.
 -DPROJ_LIB=\"/opt/local/lib/proj6/share/proj\" -DMUTEX_pthread
 -I../include  -I/opt/local/include -Wall -Wextra -Winit-self -Wunused-
 parameter -Wformat -Werror=format-security -Wno-format-nonliteral
 -Wlogical-op -Wshadow -Werror=vla -Wdate-time -Wnull-dereference
 -Wduplicated-cond -Wextra-semi -Wfloat-conversion -Wmissing-declarations
 -Wnon-virtual-dtor -Weffc++ -Woverloaded-virtual -Wdeprecated -Wzero-as-
 null-pointer-constant  -pipe -Os -D_GLIBCXX_USE_CXX11_ABI=0 -arch ppc
 -fvisibility=hidden -MT apps/geod_set.o -MD -MP -MF $depbase.Tpo -c -o
 apps/geod_set.o apps/geod_set.cpp &&\
         mv -f $depbase.Tpo $depbase.Po
 proj_json_streaming_writer.cpp: At global scope:
 proj_json_streaming_writer.cpp:45:14: error: 'uint64_t' in namespace 'std'
 does not name a type; did you mean 'wint_t'?
    45 | typedef std::uint64_t GUIntBig;
       |              ^~~~~~~~
       |              wint_t
 proj_json_streaming_writer.cpp:238:6: error: variable or field 'Add'
 declared void
   238 | void CPLJSonStreamingWriter::Add(GIntBig nVal)
       |      ^~~~~~~~~~~~~~~~~~~~~~
 proj_json_streaming_writer.cpp:238:34: error: 'GIntBig' was not declared
 in this scope
   238 | void CPLJSonStreamingWriter::Add(GIntBig nVal)
       |                                  ^~~~~~~
 proj_json_streaming_writer.cpp:244:6: error: variable or field 'Add'
 declared void
   244 | void CPLJSonStreamingWriter::Add(GUInt64 nVal)
       |      ^~~~~~~~~~~~~~~~~~~~~~
 proj_json_streaming_writer.cpp:244:34: error: 'GUInt64' was not declared
 in this scope
   244 | void CPLJSonStreamingWriter::Add(GUInt64 nVal)
       |                                  ^~~~~~~
 make[2]: *** [proj_json_streaming_writer.lo] Error 1
 }}}

-- 
Ticket URL: <https://trac.macports.org/ticket/68889>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list