Opened 4 years ago

Closed 3 years ago

#61350 closed defect (fixed)

restinio @0.4.8: fatal error: 'fmt/time.h' file not found

Reported by: mouse07410 (Mouse) Owned by: Lord-Kamina (Gregorio Litenstein)
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc:
Port: restinio

Description

Port of the fmt library omits fmt/time.h file.

As a result, one cannot compile code for/with port RESTinio, because its internal header files require fmt/time.h.

This is on Catalina 10.15.7 with Xcode-12.0.1, but I'm pretty sure that's irrelevant.

clang++ -std=gnu++2a -O3 -march=native -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk -pthread -Wall -g -O2 -DSSL_LIB_INIT -I/opt/local/include -I/opt/local/include/palisade -I/opt/local/include/palisade/core -std=c++17 -o test_api2 test_api2.cpp -L/opt/local/lib -lcrypto -lrelic -lrelic_ec -lopenabe -lPALISADEabe -lPALISADEcore
In file included from test_api2.cpp:14:
In file included from /opt/local/include/restinio/all.hpp:12:
In file included from /opt/local/include/restinio/settings.hpp:18:
In file included from /opt/local/include/restinio/request_handler.hpp:16:
/opt/local/include/restinio/message_builders.hpp:15:10: fatal error: 'fmt/time.h' file not found
#include <fmt/time.h>
         ^~~~~~~~~~~~
1 error generated.

Here's the beginning of the offending file restinio/message_builders.hpp:

#pragma once

#include <ctime>
#include <chrono>

#include <fmt/format.h>
#include <fmt/time.h>

#include <restinio/common_types.hpp>
#include <restinio/http_headers.hpp>
#include <restinio/os.hpp>
#include <restinio/sendfile.hpp>
#include <restinio/impl/connection_base.hpp>

#include <restinio/impl/header_helpers.hpp>

Change History (3)

comment:1 Changed 4 years ago by ryandesign (Ryan Carsten Schmidt)

Port: restinio added; libfmt and RESTinio removed
Summary: File fmt/time.h is missingrestinio @0.4.8: fatal error: 'fmt/time.h' file not found

fmt/time.h was deliberately removed from fmt by its developers in version 6.0.0. It looks like the replacement header is fmt/chrono.h.

Updating restinio to the latest version would fix this, since the developers of restinio fixed the problem in 0.6.0.

comment:2 Changed 4 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: Lord-Kamina removed
Owner: set to Lord-Kamina
Status: newassigned

comment:3 Changed 3 years ago by ryandesign (Ryan Carsten Schmidt)

Resolution: fixed
Status: assignedclosed

In aabb2329590683a6e771579daec940abb17a9cfa/macports-ports (master):

restinio: Update to 0.6.14

Closes: #61350
Closes: #61353

Note: See TracTickets for help on using tickets.