Repository navigation
Open
Description
Not sure, if this is even intended. Just reporting it to be sure.
Configuring library for socket-0.8.2.0..
Preprocessing library for socket-0.8.2.0..
AddressInfo.hsc:169:16: error: use of undeclared identifier 'AI_ALL'
hsc_const (AI_ALL);
^
AddressInfo.hsc:169:16: error: use of undeclared identifier 'AI_ALL'
AddressInfo.hsc:169:16: error: use of undeclared identifier 'AI_ALL'
AddressInfo.hsc:190:16: error: use of undeclared identifier 'AI_V4MAPPED'
hsc_const (AI_V4MAPPED);
^
AddressInfo.hsc:190:16: error: use of undeclared identifier 'AI_V4MAPPED'
AddressInfo.hsc:190:16: error: use of undeclared identifier 'AI_V4MAPPED'
6 errors generated.
compiling dist/build/System/Socket/Internal/AddressInfo_hsc_make.c failed (exit code 1)
command was: /usr/bin/cc -c dist/build/System/Socket/Internal/AddressInfo_hsc_make.c -o dist/build/System/Socket/Internal/AddressInfo_hsc_make.o -fno-pie -nopie -Wno-unused-command-line-argument -Wno-expansion-to-defined -fno-stack-protector -fno-pie -nopie -Wno-unused-command-line-argument -Wno-expansion-to-defined -fno-stack-protector -fno-pie -nopie -Wno-unused-command-line-argument -Wno-expansion-to-defined -Wl,-z,wxneeded -Wl,-z,wxneeded -D__GLASGOW_HASKELL__=806 -Dopenbsd_BUILD_OS=1 -Dx86_64_BUILD_ARCH=1 -Dopenbsd_HOST_OS=1 -Dx86_64_HOST_ARCH=1 -Iplatform/linux/include -Idist/build/platform/linux/include -Idist/build/autogen -Idist/build/global-autogen -include dist/build/autogen/cabal_macros.h -I/usr/local/lib/ghc/bytestring-0.10.8.2/include -I/usr/local/include -I/usr/local/lib/ghc/base-4.12.0.0/include -I/usr/local/include -I/usr/local/lib/ghc/integer-gmp-1.0.2.0/include -I/usr/local/lib/ghc/include -I/usr/local/include -I/usr/local/lib/ghc/include/
cabal: Failed to build socket-0.8.2.0.
Metadata
Metadata
Assignees
Labels
No labels
Activity
sternenseemann commentedon Oct 29, 2019
Okay, it seems like OpenBSD's
netdb.hdoesn't contain those flags although POSIX requires it.I guess then this more or less an non-issue for haskell-socket? Feel free to close, if so.
cgohla commentedon Oct 29, 2021
I just ran into this very problem myself. Defining
AI_ALLandAI_V4MAPPEDas0x0000000allowed me to compile it.Running the test suite we get some failures, that I haven't looked into too much yet.