HsOpenSSL icon indicating copy to clipboard operation
HsOpenSSL copied to clipboard

Weird compilation failure due to "template-hsc.h" error

Open bapcyk opened this issue 2 years ago • 2 comments

I updated my system and the compilation of the project now fails with:

...
HsOpenSSL      > PKey.hsc: In function ‘main’:
HsOpenSSL      > /My/.stack/programs/x86_64-linux/ghc-tinfo6-9.2.3/lib64/ghc-9.2.3/template-hsc.h:82:24: error: invalid use of incomplete typedef ‘EVP_PKEY’ {aka ‘struct evp_pkey_st’}
HsOpenSSL      >    82 |                 (long) offsetof (t, f));
HsOpenSSL      >       |                        ^~~~~~~~
HsOpenSSL      > /tmp/stack-05bf9f5ae9c0c9fc/HsOpenSSL-0.11.7.2/PKey.hsc:60:5: note: in expansion of macro ‘hsc_peek’
HsOpenSSL      >
Progress 1/4
...

No idea what is the file template-hsc.h and how to fix it

bapcyk avatar Feb 06 '23 10:02 bapcyk

Can you try the latest HsOpenSSL? There were a lot of fixes in 0.11.7.4 and the latest one is 0.11.7.5

vshabanov avatar Feb 06 '23 14:02 vshabanov

Can you try the latest HsOpenSSL? There were a lot of fixes in 0.11.7.4 and the latest one is 0.11.7.5

It sounds promisingly. Thanks, I'll try later

bapcyk avatar Feb 07 '23 17:02 bapcyk