Would you mind testing if https://github.com/openssl/openssl/pull/11655 fixes this? Cheers, Richard On Mon, 27 Apr 2020 18:29:12 +0200, Blumenthal, Uri - 0553 - MITLL wrote: > > I hit this problem recompiling libp11 with the current OpenSSL-3.0 master. It's on MacOS Catalina 10.15.4 with the latest Xcode-11.4.1, but I think that's irrelevant. I checked through all the .h files in the OpenSSL sources, and found no definition o CONF_MODULE. OpenSSL-3.0 is installed into /Users/ur20980/openssl-3 (as is obvious from the following). > > Here are the errors: > > /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk -g -I/Users/ur20980/openssl-3/include -Os -Ofast -std=gnu17 -march=native -msha -mavx512f -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk -MT evp-sign.o -MD -MP -MF $depbase.Tpo -c -o evp-sign.o evp-sign.c &&\ > mv -f $depbase.Tpo $depbase.Po > In file included from evp-sign.c:40: > /Users/ur20980/openssl-3/include/openssl/conf.h:37:28: error: unknown type name 'CONF_MODULE' > DEFINE_OR_DECLARE_STACK_OF(CONF_MODULE) > ^ > /Users/ur20980/openssl-3/include/openssl/conf.h:37:28: error: unknown type name 'CONF_MODULE' > /Users/ur20980/openssl-3/include/openssl/conf.h:37:28: error: unknown type name 'CONF_MODULE' > /Users/ur20980/openssl-3/include/openssl/conf.h:37:28: error: unknown type name 'CONF_MODULE' > /Users/ur20980/openssl-3/include/openssl/conf.h:37:28: error: unknown type name 'CONF_MODULE' > /Users/ur20980/openssl-3/include/openssl/conf.h:37:28: error: unknown type name 'CONF_MODULE' > /Users/ur20980/openssl-3/include/openssl/conf.h:37:1: error: expected expression > DEFINE_OR_DECLARE_STACK_OF(CONF_MODULE) > ^ > /Users/ur20980/openssl-3/include/openssl/safestack.h:175:40: note: expanded from macro 'DEFINE_OR_DECLARE_STACK_OF' > # define DEFINE_OR_DECLARE_STACK_OF(s) DEFINE_STACK_OF(s) > ^ > /Users/ur20980/openssl-3/include/openssl/safestack.h:135:29: note: expanded from macro 'DEFINE_STACK_OF' > # define DEFINE_STACK_OF(t) SKM_DEFINE_STACK_OF(t, t, t) > ^ > /Users/ur20980/openssl-3/include/openssl/safestack.h:39:21: note: expanded from macro 'SKM_DEFINE_STACK_OF' > return (t2 *)OPENSSL_sk_value((const OPENSSL_STACK *)sk, idx); \ > ^ > In file included from evp-sign.c:40: > /Users/ur20980/openssl-3/include/openssl/conf.h:37:28: error: use of undeclared identifier 'CONF_MODULE' > DEFINE_OR_DECLARE_STACK_OF(CONF_MODULE) > ^ > /Users/ur20980/openssl-3/include/openssl/conf.h:37:28: error: unknown type name 'CONF_MODULE' > /Users/ur20980/openssl-3/include/openssl/conf.h:37:1: error: expected expression > DEFINE_OR_DECLARE_STACK_OF(CONF_MODULE) > ^ > /Users/ur20980/openssl-3/include/openssl/safestack.h:175:40: note: expanded from macro 'DEFINE_OR_DECLARE_STACK_OF' > # define DEFINE_OR_DECLARE_STACK_OF(s) DEFINE_STACK_OF(s) > ^ > /Users/ur20980/openssl-3/include/openssl/safestack.h:135:29: note: expanded from macro 'DEFINE_STACK_OF' > # define DEFINE_STACK_OF(t) SKM_DEFINE_STACK_OF(t, t, t) > ^ > /Users/ur20980/openssl-3/include/openssl/safestack.h:67:21: note: expanded from macro 'SKM_DEFINE_STACK_OF' > return (t2 *)OPENSSL_sk_delete((OPENSSL_STACK *)sk, i); \ > ^ > In file included from evp-sign.c:40: > /Users/ur20980/openssl-3/include/openssl/conf.h:37:28: error: use of undeclared identifier 'CONF_MODULE' > DEFINE_OR_DECLARE_STACK_OF(CONF_MODULE) > ^ > /Users/ur20980/openssl-3/include/openssl/conf.h:37:28: error: unknown type name 'CONF_MODULE' > /Users/ur20980/openssl-3/include/openssl/conf.h:37:28: error: unknown type name 'CONF_MODULE' > /Users/ur20980/openssl-3/include/openssl/conf.h:37:1: error: expected expression > DEFINE_OR_DECLARE_STACK_OF(CONF_MODULE) > ^ > /Users/ur20980/openssl-3/include/openssl/safestack.h:175:40: note: expanded from macro 'DEFINE_OR_DECLARE_STACK_OF' > # define DEFINE_OR_DECLARE_STACK_OF(s) DEFINE_STACK_OF(s) > ^ > /Users/ur20980/openssl-3/include/openssl/safestack.h:135:29: note: expanded from macro 'DEFINE_STACK_OF' > # define DEFINE_STACK_OF(t) SKM_DEFINE_STACK_OF(t, t, t) > ^ > /Users/ur20980/openssl-3/include/openssl/safestack.h:71:21: note: expanded from macro 'SKM_DEFINE_STACK_OF' > return (t2 *)OPENSSL_sk_delete_ptr((OPENSSL_STACK *)sk, \ > ^ > In file included from evp-sign.c:40: > /Users/ur20980/openssl-3/include/openssl/conf.h:37:28: error: use of undeclared identifier 'CONF_MODULE' > DEFINE_OR_DECLARE_STACK_OF(CONF_MODULE) > ^ > /Users/ur20980/openssl-3/include/openssl/conf.h:37:28: error: unknown type name 'CONF_MODULE' > /Users/ur20980/openssl-3/include/openssl/conf.h:37:28: error: unknown type name 'CONF_MODULE' > /Users/ur20980/openssl-3/include/openssl/conf.h:37:28: error: unknown type name 'CONF_MODULE' > /Users/ur20980/openssl-3/include/openssl/conf.h:37:1: error: expected expression > DEFINE_OR_DECLARE_STACK_OF(CONF_MODULE) > ^ > /Users/ur20980/openssl-3/include/openssl/safestack.h:175:40: note: expanded from macro 'DEFINE_OR_DECLARE_STACK_OF' > # define DEFINE_OR_DECLARE_STACK_OF(s) DEFINE_STACK_OF(s) > ^ > /Users/ur20980/openssl-3/include/openssl/safestack.h:135:29: note: expanded from macro 'DEFINE_STACK_OF' > # define DEFINE_STACK_OF(t) SKM_DEFINE_STACK_OF(t, t, t) > ^ > /Users/ur20980/openssl-3/include/openssl/safestack.h:84:21: note: expanded from macro 'SKM_DEFINE_STACK_OF' > return (t2 *)OPENSSL_sk_pop((OPENSSL_STACK *)sk); \ > ^ > fatal error: too many errors emitted, stopping now [-ferror-limit=] > > -- > Regards, > Uri > > -- Richard Levitte levitte@xxxxxxxxxxx OpenSSL Project http://www.openssl.org/~levitte/