Skip to content

Compilation failure with Gcc on Fedora 38 #2142

@astitcher

Description

@astitcher

Describe your environment
Fedora 38

Steps to reproduce
Opentelemetry-cpp build fails

What is the expected behavior?
Successful build

What is the actual behavior?

In file included from /home/andrew/Work/opentelemetry-cpp/ext/test/http/url_parser_test.cc:4:
/home/andrew/Work/opentelemetry-cpp/ext/include/opentelemetry/ext/http/common/url_parser.h:30:3: error: ‘uint16_t’ does not name a type
   30 |   uint16_t port_;
      |   ^~~~~~~~
/home/andrew/Work/opentelemetry-cpp/ext/include/opentelemetry/ext/http/common/url_parser.h:9:1: note: ‘uint16_t’ is defined in header ‘<cstdint>’; did you forget to ‘#include <cstdint>’?

Additional context
Looks to me that cstdint was transitively included before and now with an updated gcc library is no longer being so. On inspection it does look like the mentioned header file is clearly incorrect.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions