haskell-cryptography / HsOpenSSL

OpenSSL binding for Haskell
http://hackage.haskell.org/package/HsOpenSSL
Creative Commons Zero v1.0 Universal
21 stars 30 forks source link

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

Open bapcyk opened 1 year ago

bapcyk commented 1 year ago

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

vshabanov commented 1 year ago

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

bapcyk commented 1 year ago

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