Skip to content

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

Description

@bapcyk

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions