Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to build on Haiku #122

Open
extrowerk opened this issue Jan 15, 2020 · 1 comment · May be fixed by #126
Open

Unable to build on Haiku #122

extrowerk opened this issue Jan 15, 2020 · 1 comment · May be fixed by #126

Comments

@extrowerk
Copy link

On Haiku hrev53714 64 bit building fails:

/Ports/Testring/libutp> make
g++ -Wall -DPOSIX -g -fno-exceptions -O3 -fPIC -fno-rtti -Wno-sign-compare -fpermissive   -c -o utp_internal.o utp_internal.cpp
In file included from utp_internal.cpp:32:
utp_types.h:99:28: error: conflicting declaration 'typedef long long unsigned int uint64'
 typedef unsigned long long uint64;
                            ^~~~~~
In file included from /boot/system/develop/headers/os/support/ByteOrder.h:11,
                 from /boot/system/develop/headers/bsd/endian.h:16,
                 from /boot/system/develop/headers/posix/netinet/in.h:10,
                 from utp_types.h:56,
                 from utp_internal.cpp:32:
/boot/system/develop/headers/os/support/SupportDefs.h:27:26: note: previous declaration as 'typedef __haiku_uint64 uint64'
 typedef __haiku_uint64   uint64;
                          ^~~~~~
In file included from utp_internal.cpp:32:
utp_types.h:100:19: error: conflicting declaration 'typedef long long int int64'
 typedef long long int64;
                   ^~~~~
In file included from /boot/system/develop/headers/os/support/ByteOrder.h:11,
                 from /boot/system/develop/headers/bsd/endian.h:16,
                 from /boot/system/develop/headers/posix/netinet/in.h:10,
                 from utp_types.h:56,
                 from utp_internal.cpp:32:
/boot/system/develop/headers/os/support/SupportDefs.h:26:25: note: previous declaration as 'typedef __haiku_int64 int64'
 typedef __haiku_int64   int64;
                         ^~~~~
<builtin>: recipe for target 'utp_internal.o' failed
make: *** [utp_internal.o] Error 1
@arvidn
Copy link
Contributor

arvidn commented Jan 16, 2020

in my mind, the best solution would just be for libutp to not define any of these typedefs, but to just use std::int64_t etc.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants