[Tile-serving] [openstreetmap/osm2pgsql] compilation failure with gcc-13 (Issue #1957)

fvalenduc notifications at github.com
Thu May 4 17:37:55 UTC 2023


Compilation with gcc-13 doens't work. I get this error:

In file included from /usr/src/osm2pgsql/src/flex-index.cpp:10:
/usr/src/osm2pgsql/src/flex-index.hpp:74:25: error: 'uint8_t' has not been declared
   74 |     void set_fillfactor(uint8_t fillfactor)
      |                         ^~~~~~~
/usr/src/osm2pgsql/src/flex-index.hpp:95:5: error: 'uint8_t' does not name a type
   95 |     uint8_t m_fillfactor = 0;
      |     ^~~~~~~
/usr/src/osm2pgsql/src/flex-index.hpp:17:1: note: 'uint8_t' is defined in header '<cstdint>'; did you forget to '#include <cstdint>'?
   16 | #include <vector>
  +++ |+#include <cstdint>
   17 | 
/usr/src/osm2pgsql/src/flex-index.hpp: In member function 'void flex_index_t::set_fillfactor(int)':
/usr/src/osm2pgsql/src/flex-index.hpp:79:9: error: 'm_fillfactor' was not declared in this scope; did you mean 'fillfactor'?
   79 |         m_fillfactor = fillfactor;
      |         ^~~~~~~~~~~~
      |         fillfactor
/usr/src/osm2pgsql/src/flex-index.cpp: In member function 'std::string flex_index_t::create_index(const std::string&) const':
/usr/src/osm2pgsql/src/flex-index.cpp:50:9: error: 'm_fillfactor' was not declared in this scope; did you mean 'set_fillfactor'?
   50 |     if (m_fillfactor != 0) {
      |         ^~~~~~~~~~~~
      |         set_fillfactor
make[2]: *** [src/CMakeFiles/osm2pgsql_lib.dir/build.make:622: src/CMakeFiles/osm2pgsql_lib.dir/flex-index.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....

Does anybody have any idea about this ?

Thanks in advance for your help.


-- 
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/osm2pgsql/issues/1957
You are receiving this because you are subscribed to this thread.

Message ID: <openstreetmap/osm2pgsql/issues/1957 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/tile-serving/attachments/20230504/01ef2341/attachment.htm>


More information about the Tile-serving mailing list