#68889 closed defect (fixed)

proj6 build error: error: 'int64_t' in namespace 'std' does not name a type

Reported by: barracuda156 Owned by: stromnov (Andrey Stromnov)
Priority: Normal Milestone:
Component: ports Version: 2.8.1
Keywords: tiger, leopard, snowleopard, powerpc Cc:
Port: proj6, proj7, proj8

Description

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

Change History (5)

comment:2 Changed 11 months ago by barracuda156

Port: proj7 proj8 added

comment:3 in reply to:  1 Changed 11 months ago by nilason (Nicklas Larsson)

Replying to barracuda156:

This has to be backported: https://github.com/OSGeo/PROJ/commit/b0b8937c56ced8eb0ffef532b9c691a1a5fc8634

They probably need to be patched, unlikely the pre-9 versions will ever be updated upstream.

comment:4 Changed 11 months ago by barracuda156

comment:5 Changed 11 months ago by barracuda156

Resolution: fixed
Status: assignedclosed
Note: See TracTickets for help on using tickets.