No, same error. This error happens on my Ubuntu 20.04 VM. Another Ubuntu 18.04 is fine. Checking. What's your Linux distribution?
Tony Arne Schwabe <a...@rfc2549.org> 于2021年3月2日周二 下午4:18写道: > Am 02.03.21 um 05:12 schrieb Tony He: > > Hi Arne, > > > > I'm trying your working branch dco that supports ovpn-dco. My openssl > > lib version is: > > tony-vm-2004% apt download libssl-dev > > Get:1 http://mirrors.aliyun.com/ubuntu > > <http://mirrors.aliyun.com/ubuntu> focal-updates/main amd64 libssl-dev > > amd64 1.1.1f-1ubuntu2.2 [1582 kB] > > Fetched 1582 kB in 0s (6161 kB/s) > > > > > > If I use ./configure --enable-dco > > DCO_SOURCEDIR=/project/openvpn/ovpn-dco.git/ , I got below error when > make > > > > gcc -DHAVE_CONFIG_H -I. -I../.. -I../../include -I../../include > > -I../../src/compat -I/usr/local/include > > -I/project/openvpn/ovpn-dco.git//include/uapi -I/usr/include/libnl3 > > -DPLUGIN_LIBDIR=\"/usr/local/lib/openvpn/plugins\" -Wall > > -Wno-unused-parameter -Wno-unused-function -Wno-stringop-truncation -g > > -O2 -std=c99 -MT crypto_openssl.o -MD -MP -MF .deps/crypto_openssl.Tpo > > -c -o crypto_openssl.o crypto_openssl.c > > In file included from crypto_openssl.c:44: > > openssl_compat.h:228:1: error: static declaration of ‘X509_OBJECT_free’ > > follows non-static declaration > > 228 | X509_OBJECT_free(X509_OBJECT *obj) > > | ^~~~~~~~~~~~~~~~ > > In file included from /usr/include/openssl/x509.h:320, > > from /usr/include/openssl/ssl.h:20, > > from openssl_compat.h:46, > > from crypto_openssl.c:44: > > /usr/include/openssl/x509_vfy.h:261:6: note: previous declaration of > > ‘X509_OBJECT_free’ was here > > 261 | void X509_OBJECT_free(X509_OBJECT *a); > > | ^~~~~~~~~~~~~~~~ > > In file included from crypto_openssl.c:44: > > openssl_compat.h: In function ‘X509_OBJECT_free’: > > > > May I know which openssl lib version you use? Did you compile it by > > youself or just install from Linux distubition? > > > > Tony > > > > That sounds like autoconf/configure is broken in your setup. Does a > normal master checkout work for you? The error you are getting is not > specific to ovpn-dco at all. I use the standard OpenSSL included in the > distrobution. > > Arne >
_______________________________________________ Openvpn-devel mailing list Openvpn-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/openvpn-devel