lpereira / lwan

Experimental, scalable, high performance HTTP server

Home Page:https://lwan.ws

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

error: use of undeclared identifier 'MSG_FASTOPEN'

yonas opened this issue · comments

$ mkdir build ; cd build ; cmake .. -DCMAKE_BUILD_TYPE=Release -G Ninja ; ninja
[1/80] Linking C executable src/bin/tools/mimegen
cc: warning: argument unused during compilation: '-no-pie' [-Wunused-command-line-argument]
[2/80] Linking C executable src/bin/tools/bin2hex
cc: warning: argument unused during compilation: '-no-pie' [-Wunused-command-line-argument]
[3/80] Linking C executable src/bin/tools/statuslookupgen
cc: warning: argument unused during compilation: '-no-pie' [-Wunused-command-line-argument]
[4/80] Linking C executable src/bin/tools/configdump
cc: warning: argument unused during compilation: '-no-pie' [-Wunused-command-line-argument]
[5/80] Bundling data for response
[6/80] Bundling data for serve-files module
[7/80] Building HTTP status lookup perfect hash table
[8/80] Building C object src/bin/tools/CMakeFiles/weighttp.dir/weighttp.c.o
FAILED: src/bin/tools/CMakeFiles/weighttp.dir/weighttp.c.o 
/usr/bin/cc -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -I/home/yonas/git/lwan/src/lib/missing -I/home/yonas/git/lwan/build -I/usr/local/include/luajit-2.1 -I/usr/local/include -I/home/yonas/git/lwan/src/lib -fno-plt -no-pie -Warray-bounds -Wdouble-promotion -Wno-unused-parameter -Wunsequenced -Wvla -Wno-override-init -Wno-free-nonheap-object -Wall -Wextra -Wshadow -Wconversion -std=gnu11 -O3 -DNDEBUG  -mtune=native -march=native -falign-functions=32 -fno-semantic-interposition -fno-asynchronous-unwind-tables -mcrc32   -include /home/yonas/git/lwan/build/lwan-build-config.h -MD -MT src/bin/tools/CMakeFiles/weighttp.dir/weighttp.c.o -MF src/bin/tools/CMakeFiles/weighttp.dir/weighttp.c.o.d -o src/bin/tools/CMakeFiles/weighttp.dir/weighttp.c.o -c /home/yonas/git/lwan/src/bin/tools/weighttp.c
cc: warning: argument unused during compilation: '-no-pie' [-Wunused-command-line-argument]
/home/yonas/git/lwan/src/bin/tools/weighttp.c:605:25: error: use of undeclared identifier 'MSG_FASTOPEN'
                        MSG_FASTOPEN | MSG_DONTWAIT | MSG_NOSIGNAL,
                        ^
1 error generated.
[9/80] Building MIME type table
ninja: build stopped: subcommand failed.

OS: FreeBSD 14
lwan: 1ccbed7

Should be fixed by #365

Fixed.