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

OpenSSL 1.1.0 support (field ‘ctx’ has incomplete type EVP_CIPHER_CTX ctx) #54

Closed
zacbayhan opened this issue Dec 17, 2016 · 10 comments
Labels
Milestone

Comments

@zacbayhan
Copy link

I look at cipher.h and I didn't see anything that looked out of place so I'm going to have to ask for your assistance in resolving this error.

make[2]: Leaving directory '/home/ubuntu/software/munge/dun-munge-7fec2e0/src/munge' Making all in munged make[2]: Entering directory '/home/ubuntu/software/munge/dun-munge-7fec2e0/src/munged' gcc -DHAVE_CONFIG_H -I. -I../../config -I../../src/libcommon -I../../src/libmissing -I../../src/libmunge -DWITH_PTHREADS -g -O2 -MT munged-cipher.o -MD -MP -MF .deps/munged-cipher.Tpo -c -o munged-cipher.o test -f 'cipher.c' || echo './'cipher.c In file included from cipher.c:36:0: cipher.h:69:25: error: field ‘ctx’ has incomplete type EVP_CIPHER_CTX ctx; ^ Makefile:860: recipe for target 'munged-cipher.o' failed make[2]: *** [munged-cipher.o] Error 1 make[2]: Leaving directory '/home/ubuntu/software/munge/dun-munge-7fec2e0/src/munged' Makefile:432: recipe for target 'all-recursive' failed make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory '/home/ubuntu/software/munge/dun-munge-7fec2e0/src' Makefile:508: recipe for target 'all-recursive' failed make: *** [all-recursive] Error 1

@dun
Copy link
Owner

dun commented Dec 18, 2016

What distribution/release are you running? Also, what version of OpenSSL is installed?

A quick search for field ‘ctx’ has incomplete type EVP_CIPHER_CTX ctx returns several pages related to API changes in OpenSSL 1.1.0. I'm wondering if this is the problem you're having.

If so, you could try building with ./configure --with-crypto-lib=libgcrypt until I get this fixed.

@zacbayhan
Copy link
Author

zacbayhan commented Dec 18, 2016 via email

@dun
Copy link
Owner

dun commented Dec 18, 2016

OK, I suspect this is due to the OpenSSL 1.1.0 API changes.

Which Linux distribution are you running?

@dun dun reopened this Dec 18, 2016
@dun dun changed the title make exists with error (incomplete type EVP_CIPHER_CTX ctx;) OpenSSL 1.1.0 support (field ‘ctx’ has incomplete type EVP_CIPHER_CTX ctx) Dec 18, 2016
@zacbayhan
Copy link
Author

zacbayhan commented Dec 18, 2016 via email

@dun
Copy link
Owner

dun commented Dec 19, 2016

I've installed a Debian Sid VM and can reproduce this error with libssl-dev 1.1.0c-2.

I'm also able to successfully build there with ./configure --with-crypto-lib=libgcrypt, so that's an option until this is fixed.

@dun dun added the bug label Dec 19, 2016
@zacbayhan
Copy link
Author

zacbayhan commented Dec 19, 2016 via email

@woodard
Copy link

woodard commented Feb 9, 2017

Hey Dun,

I'm also having this problem with Fedora Rawhide. Let me know when you have this fixed.

@dun
Copy link
Owner

dun commented Feb 9, 2017

Will do.

@RanjKuru
Copy link

Have the same problem. Any bugfix on the horizon?

@dun
Copy link
Owner

dun commented May 26, 2018

This bug was fixed on 2017-06-09 (see above). This fix appeared in 0.5.13 released on 2017-09-26.

If you're experiencing a problem, please open a new bug report. Include a description of the problem, the version of munge, the version of your distribution, the version of OpenSSL, and any other relevant information.

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

No branches or pull requests

4 participants