Skip to content

3.15.x doesn't build on FreeBSD cause of missing endian.h #8373

Closed
@dmilith

Description

@dmilith

What version of protobuf and what language are you using?
Version: 3.15.4
Language: C++

What operating system (Linux, Windows, ...) and version?
FreeBSD x86_64, v12.2

What runtime / compiler are you using (e.g., python version or gcc version)
clang 10.0.1

What did you do?
Either autotools build with ./configure && make or cd cmake && cmake ../ … && make

What did you expect to see
Properly built library

What did you see instead?

A lot of errors like this in multiple files, example:

src/google/protobuf/stubs/port.h:63:10: fatal error: 'endian.h' file not found
#include <endian.h>  // __BYTE_ORDER

Make sure you include information that can help us debug (full error message, exception listing, stack trace, logs).

Anything else we should know about your project / environment
No. It's a pretty standard environment.

Metadata

Metadata

Assignees

No one assigned

    Labels

    platform relatedAny issue releated to specific platform or OS

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions