Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
bapcyk opened this issue Feb 6, 2023 · 2 comments
Open

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

bapcyk opened this issue Feb 6, 2023 · 2 comments

Comments

@bapcyk
Copy link

bapcyk commented Feb 6, 2023

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
Copy link
Collaborator

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
Copy link
Author

bapcyk commented Feb 7, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants