compiling dist-ghc/build/OpenSSL/ASN1_hsc_make.c failed (exit code 1)
rsp file was: "dist-ghc/build/OpenSSL/hsc2hscall3209029-0.rsp"
command was: /usr/bin/x86_64-linux-gnu-gcc -c dist-ghc/build/OpenSSL/ASN1_hsc_make.c -o dist-ghc/build/OpenSSL/ASN1_hsc_make.o -Wl,--no-as-needed -D__GLASGOW_HASKELL__=910 -Dlinux_BUILD_OS=1 -Dx86_64_BUILD_ARCH=1 -Dlinux_HOST_OS=1 -Dx86_64_HOST_ARCH=1 -Icbits -Idist-ghc/build/cbits -D PTHREAD -DCALLCONV=ccall -Idist-ghc/build/autogen -Idist-ghc/build/global-autogen -include dist-ghc/build/autogen/cabal_macros.h -I/usr/lib/haskell-packages/ghc/lib/x86_64-linux-ghc-9.10.3-inplace/network-3.2.8.0-EpoT6TF40y6Dph5NPnICp/include -I/usr/lib/ghc/lib/../lib/x86_64-linux-ghc-9.10.3/directory-1.3.8.5-inplace/include -I/usr/lib/ghc/lib/../lib/x86_64-linux-ghc-9.10.3/unix-2.8.7.0-inplace/include -I/usr/lib/ghc/lib/../lib/x86_64-linux-ghc-9.10.3/time-1.12.2-inplace/include -I/usr/lib/ghc/lib/../lib/x86_64-linux-ghc-9.10.3/bytestring-0.12.2.0-inplace/include -I/usr/lib/ghc/lib/../lib/x86_64-linux-ghc-9.10.3/ghc-internal-9.1003.0-inplace/include -I/usr/lib/ghc/lib/../lib/x86_64-linux-ghc-9.10.3/ghc-bignum-1.3-inplace/include -I/usr/lib/ghc/lib/../lib/x86_64-linux-ghc-9.10.3/rts-1.0.2/include -I/usr/include/include/
error: In file included from /usr/include/strings.h:23,
from /usr/include/string.h:462,
from /usr/include/openssl/ec.h:23,
from /usr/include/openssl/x509.h:35,
from /usr/include/openssl/pem.h:23,
from cbits/HsOpenSSL.h:14,
from ASN1.hsc:23:
ASN1.hsc: In function ‘main’:
/usr/lib/ghc/lib/template-hsc.h:82:24: error: invalid use of incomplete typedef ‘ASN1_STRING’ {aka ‘struct asn1_string_st’}
82 | (long) offsetof (t, f));
| ^~~~~~~~
ASN1.hsc:66:5: note: in expansion of macro ‘hsc_peek’
/usr/lib/ghc/lib/template-hsc.h:82:24: error: invalid use of incomplete typedef ‘ASN1_STRING’ {aka ‘struct asn1_string_st’}
82 | (long) offsetof (t, f));
| ^~~~~~~~
ASN1.hsc:67:5: note: in expansion of macro ‘hsc_peek’
It looks like, at the very least,
ASN1_STRINGhas been made opaque.