You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
But I'm not sure where to put -D_XOPEN_SOURCE=500 to workaround this?
[root@swarmcc /swarmcc/edh-universe/haskell/network]# cabal build networkResolving dependencies...Build profile: -w ghc-8.8.4 -O1In order, the following will be built (use -v for more details): - network-3.1.2.2 (lib:network) (first run)Configuring network-3.1.2.2...configure: WARNING: unrecognized options: --with-compilerchecking build system type... x86_64-pc-solaris2.11checking host system type... x86_64-pc-solaris2.11checking for gcc... /opt/local/bin/gccchecking whether the C compiler works... yeschecking for C compiler default output file name... a.outchecking for suffix of executables... checking whether we are cross compiling... nochecking for suffix of object files... ochecking whether we are using the GNU C compiler... yeschecking whether /opt/local/bin/gcc accepts -g... yeschecking for /opt/local/bin/gcc option to accept ISO C89... none neededchecking for an ANSI C-conforming const... yeschecking how to run the C preprocessor... /opt/local/bin/gcc -Echecking for grep that handles long lines and -e... /usr/bin/grepchecking for egrep... /usr/bin/grep -Echecking for ANSI C header files... yeschecking for sys/types.h... yeschecking for sys/stat.h... yeschecking for stdlib.h... yeschecking for string.h... yeschecking for memory.h... yeschecking for strings.h... yeschecking for inttypes.h... yeschecking for stdint.h... yeschecking for unistd.h... yeschecking limits.h usability... yeschecking limits.h presence... yeschecking for limits.h... yeschecking for stdlib.h... (cached) yeschecking for unistd.h... (cached) yeschecking for sys/types.h... (cached) yeschecking fcntl.h usability... yeschecking fcntl.h presence... yeschecking for fcntl.h... yeschecking sys/uio.h usability... yeschecking sys/uio.h presence... yeschecking for sys/uio.h... yeschecking sys/socket.h usability... yeschecking sys/socket.h presence... yeschecking for sys/socket.h... yeschecking netinet/in.h usability... yeschecking netinet/in.h presence... yeschecking for netinet/in.h... yeschecking netinet/tcp.h usability... yeschecking netinet/tcp.h presence... yeschecking for netinet/tcp.h... yeschecking sys/un.h usability... yeschecking sys/un.h presence... yeschecking for sys/un.h... yeschecking arpa/inet.h usability... yeschecking arpa/inet.h presence... yeschecking for arpa/inet.h... yeschecking netdb.h usability... yeschecking netdb.h presence... yeschecking for netdb.h... yeschecking net/if.h usability... yeschecking net/if.h presence... yeschecking for net/if.h... yeschecking netioapi.h usability... nochecking netioapi.h presence... nochecking for netioapi.h... nochecking for struct ucred... nochecking for gai_strerror... nochecking for gethostent... nochecking for accept4... nochecking for getpeereid... nochecking whether AI_ADDRCONFIG is declared... yeschecking whether AI_ALL is declared... yeschecking whether AI_NUMERICSERV is declared... yeschecking whether AI_V4MAPPED is declared... yeschecking whether IPV6_V6ONLY is declared... yeschecking whether IPPROTO_IP is declared... yeschecking whether IPPROTO_TCP is declared... yeschecking whether IPPROTO_IPV6 is declared... yeschecking whether SO_PEERCRED is declared... nochecking for struct msghdr.msg_control... nochecking for struct msghdr.msg_accrights... yeschecking for struct sockaddr.sa_len... noconfigure: creating ./network.buildinfoconfigure: creating ./config.statusconfig.status: creating include/HsNetworkConfig.hconfigure: WARNING: unrecognized options: --with-compilerPreprocessing library for network-3.1.2.2..compiling /swarmcc/edh-universe/dist-newstyle/build/x86_64-solaris/ghc-8.8.4/network-3.1.2.2/build/Network/Socket/Posix/MsgHdr_hsc_make.c failed (exit code 1)rsp file was: "/swarmcc/edh-universe/dist-newstyle/build/x86_64-solaris/ghc-8.8.4/network-3.1.2.2/build/Network/Socket/Posix/hsc2hscall30540-0.rsp"
command was: /opt/local/bin/gcc -c /swarmcc/edh-universe/dist-newstyle/build/x86_64-solaris/ghc-8.8.4/network-3.1.2.2/build/Network/Socket/Posix/MsgHdr_hsc_make.c -o /swarmcc/edh-universe/dist-newstyle/build/x86_64-solaris/ghc-8.8.4/network-3.1.2.2/build/Network/Socket/Posix/MsgHdr_hsc_make.o -m64 -m64 -L/opt/local/gcc9/lib/gcc/x86_64-sun-solaris2.11/9.3.0 -Wl,-R/opt/local/gcc9/lib/gcc/x86_64-sun-solaris2.11/9.3.0 -L/opt/local/lib -L/usr/lib/amd64 -Wl,-R/usr/lib/amd64 -Wl,-R/opt/local/lib -m64 -D__GLASGOW_HASKELL__=808 -Dsolaris2_BUILD_OS=1 -Dx86_64_BUILD_ARCH=1 -Dsolaris2_HOST_OS=1 -Dx86_64_HOST_ARCH=1 -Iinclude -I/swarmcc/edh-universe/dist-newstyle/build/x86_64-solaris/ghc-8.8.4/network-3.1.2.2/build/include -I/swarmcc/edh-universe/dist-newstyle/build/x86_64-solaris/ghc-8.8.4/network-3.1.2.2/build/autogen -I/swarmcc/edh-universe/dist-newstyle/build/x86_64-solaris/ghc-8.8.4/network-3.1.2.2/build/global-autogen -include /swarmcc/edh-universe/dist-newstyle/build/x86_64-solaris/ghc-8.8.4/network-3.1.2.2/build/autogen/cabal_macros.h -I/opt/local/lib/ghc-8.8.4/unix-2.7.2.2/include -I/opt/local/lib/ghc-8.8.4/time-1.9.3/include -I/opt/local/lib/ghc-8.8.4/bytestring-0.10.10.1/include -I/opt/local/include -I/opt/local/lib/ghc-8.8.4/base-4.13.0.0/include -I/opt/local/include -I/opt/local/lib/ghc-8.8.4/integer-gmp-1.0.2.0/include -I/opt/local/lib/ghc-8.8.4/include -I/opt/local/include -I/opt/local/lib/ghc-8.8.4/include/
error: In file included from /opt/local/lib/ghc-8.8.4/template-hsc.h:11, from /swarmcc/edh-universe/dist-newstyle/build/x86_64-solaris/ghc-8.8.4/network-3.1.2.2/build/Network/Socket/Posix/MsgHdr_hsc_make.c:1:MsgHdr.hsc: In function 'main':/opt/local/lib/ghc-8.8.4/template-hsc.h:82:24: error: 'struct msghdr' has no member named 'msg_control' 82 | (long) offsetof (t, f)); | ^~~~~~~~MsgHdr.hsc:35:5: note: in expansion of macro 'hsc_peek'/opt/local/lib/ghc-8.8.4/template-hsc.h:82:24: error: 'struct msghdr' has no member named 'msg_controllen' 82 | (long) offsetof (t, f)); | ^~~~~~~~MsgHdr.hsc:36:5: note: in expansion of macro 'hsc_peek'/opt/local/lib/ghc-8.8.4/template-hsc.h:82:24: error: 'struct msghdr' has no member named 'msg_flags' 82 | (long) offsetof (t, f)); | ^~~~~~~~MsgHdr.hsc:37:5: note: in expansion of macro 'hsc_peek'/opt/local/lib/ghc-8.8.4/template-hsc.h:86:24: error: 'struct msghdr' has no member named 'msg_control' 86 | (long) offsetof (t, f)); | ^~~~~~~~MsgHdr.hsc:49:5: note: in expansion of macro 'hsc_poke'/opt/local/lib/ghc-8.8.4/template-hsc.h:86:24: error: 'struct msghdr' has no member named 'msg_controllen' 86 | (long) offsetof (t, f)); | ^~~~~~~~MsgHdr.hsc:50:5: note: in expansion of macro 'hsc_poke'/opt/local/lib/ghc-8.8.4/template-hsc.h:86:24: error: 'struct msghdr' has no member named 'msg_flags' 86 | (long) offsetof (t, f)); | ^~~~~~~~MsgHdr.hsc:51:5: note: in expansion of macro 'hsc_poke'[root@swarmcc /swarmcc/edh-universe/haskell/network]#
The text was updated successfully, but these errors were encountered:
I just drafted PR #507, it compiles in my case (on SunOS swarmcc 5.11 joyent_20210617T001230Z i86pc i386 i86pc), it appears OpenSolaris can supply the missing features, only if tweaked with certain CPP macros. But tbh I don't have enough expertise in justifying how it could impact others.
Seems related: joyent/libuv#1195 fixed by joyent/libuv@7233796
But I'm not sure where to put
-D_XOPEN_SOURCE=500
to workaround this?The text was updated successfully, but these errors were encountered: