[Tile-serving] [osm2pgsql-dev/osm2pgsql] Build fails with newer fmt libraries version 12 (Issue #2456)
Dirk Stöcker
notifications at github.com
Thu Apr 2 10:41:22 UTC 2026
stoecker created an issue (osm2pgsql-dev/osm2pgsql#2456)
FMT libraries version >= 12 dropped localtime function.
```
[ 156s] /home/abuild/rpmbuild/BUILD/osm2pgsql-2.2.0-build/osm2pgsql-2.2.0/src/logging.cpp: In member function ‘void logger_t::generate_common_prefix(std::string*, const fmt::v12::text_style&, const char*) const’:
[ 156s] /home/abuild/rpmbuild/BUILD/osm2pgsql-2.2.0-build/osm2pgsql-2.2.0/src/logging.cpp:31:30: error: ‘localtime’ is not a member of ‘fmt’
[ 156s] 31 | fmt::localtime(std::time(nullptr)));
[ 156s] | ^~~~~~~~~
[ 156s] /home/abuild/rpmbuild/BUILD/osm2pgsql-2.2.0-build/osm2pgsql-2.2.0/src/logging.cpp:31:30: note: suggested alternatives:
[ 156s] In file included from /usr/include/pthread.h:23,
[ 156s] from /usr/include/c++/15/s390x-suse-linux/bits/gthr-default.h:35,
[ 156s] from /usr/include/c++/15/s390x-suse-linux/bits/gthr.h:157,
[ 156s] from /usr/include/c++/15/ext/atomicity.h:37,
[ 156s] from /usr/include/c++/15/bits/locale_classes.h:43,
[ 156s] from /usr/include/c++/15/locale:43,
[ 156s] from /usr/include/fmt/format-inl.h:26,
[ 156s] from /usr/include/fmt/format.h:4387,
[ 156s] from /home/abuild/rpmbuild/BUILD/osm2pgsql-2.2.0-build/osm2pgsql-2.2.0/src/format.hpp:14,
[ 156s] from /home/abuild/rpmbuild/BUILD/osm2pgsql-2.2.0-build/osm2pgsql-2.2.0/src/logging.hpp:13,
[ 156s] from /home/abuild/rpmbuild/BUILD/osm2pgsql-2.2.0-build/osm2pgsql-2.2.0/src/logging.cpp:10:
[ 156s] /usr/include/time.h:136:19: note: ‘localtime’
[ 156s] 136 | extern struct tm *localtime (const time_t *__timer) __THROW;
[ 156s] | ^~~~~~~~~
[ 156s] /usr/include/time.h:136:19: note: ‘localtime’
```
See also https://build.opensuse.org/public/build/Application:Geo/openSUSE_Tumbleweed/s390x/osm2pgsql/_log
--
Reply to this email directly or view it on GitHub:
https://github.com/osm2pgsql-dev/osm2pgsql/issues/2456
You are receiving this because you are subscribed to this thread.
Message ID: <osm2pgsql-dev/osm2pgsql/issues/2456 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/tile-serving/attachments/20260402/a16d73f9/attachment.htm>
More information about the Tile-serving
mailing list