When building with WITH_ASIO=1 flag, the build fail with the error
src/internal/internal.h:119:5: error: unknown type name 'uint32_t'
119 | uint32_t global_tick;
| ^~~~~~~~
Step to reproduce
In the master branch (commit as time of writing is 5d1d640)
WITH_ASIO=1 make
Log
madahin /tmp/uSockets master ❯ LANG=en WITH_ASIO=1 make
rm -f *.o
cc -flto -DLIBUS_NO_SSL -DLIBUS_USE_ASIO -std=c11 -Isrc -O3 -c src/*.c src/eventing/*.c src/crypto/*.c
In file included from src/bsd.c:23:
src/internal/internal.h:119:5: error: unknown type name 'uint32_t'
119 | uint32_t global_tick;
| ^~~~~~~~
In file included from src/context.c:19:
src/internal/internal.h:119:5: error: unknown type name 'uint32_t'
119 | uint32_t global_tick;
| ^~~~~~~~
In file included from src/loop.c:19:
src/internal/internal.h:119:5: error: unknown type name 'uint32_t'
119 | uint32_t global_tick;
| ^~~~~~~~
In file included from src/socket.c:19:
src/internal/internal.h:119:5: error: unknown type name 'uint32_t'
119 | uint32_t global_tick;
| ^~~~~~~~
In file included from src/udp.c:19:
src/internal/internal.h:119:5: error: unknown type name 'uint32_t'
119 | uint32_t global_tick;
| ^~~~~~~~
In file included from src/eventing/epoll_kqueue.c:19:
src/internal/internal.h:119:5: error: unknown type name 'uint32_t'
119 | uint32_t global_tick;
| ^~~~~~~~
In file included from src/eventing/gcd.c:19:
src/internal/internal.h:119:5: error: unknown type name 'uint32_t'
119 | uint32_t global_tick;
| ^~~~~~~~
In file included from src/eventing/libuv.c:19:
src/internal/internal.h:119:5: error: unknown type name 'uint32_t'
119 | uint32_t global_tick;
| ^~~~~~~~
make: *** [Makefile:66: default] Error 1
Description
When building with
WITH_ASIO=1
flag, the build fail with the errorStep to reproduce
In the
master
branch (commit as time of writing is 5d1d640)Log
The log is also attached here
System
Linux with the stock (but recompiled with march=native) archlinux kernel uname -a :
gcc -v :