Message-ID: <4DE502D5.3070403@...1114...> Date: Tue, 31 May 2011 17:01:41 +0200 From: David Sommerseth MIME-Version: 1.0 References: <4DB864E0.4060207@...515...> <4DE4F116.2000904@...1030...> In-Reply-To: <4DE4F116.2000904@...1030...> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig10769349B9474ABF1B12C92C" Subject: Re: [Openvpn-devel] OpenVPN 2.2.0 build failure with "--disable-management" List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Mr Dash Four Cc: "openvpn-devel@lists.sourceforge.net" This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig10769349B9474ABF1B12C92C Content-Type: multipart/mixed; boundary="------------040501090103050206090308" This is a multi-part message in MIME format. --------------040501090103050206090308 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: quoted-printable On 31/05/11 15:45, Mr Dash Four wrote: > configure \ > --build=3Dx86_64-redhat-linux-gnu \ > --host=3Di686-redhat-linux-gnu \ > --enable-password-save \ > --enable-iproute2 \ > --with-ifconfig-path=3D/sbin/ifconfig \ > --with-iproute-path=3D/sbin/ip \ > --with-route-path=3D/sbin/route \ > --disable-port-share \ > --disable-management >=20 > passes through, but then I get this during make: >=20 > gcc -DHAVE_CONFIG_H -I. -I. -O2 -g -pipe -Wall=20 > -Wp,-D_FORTIFY_SOURCE=3D2 -fexceptions -fstack-protector=20 > --param=3Dssp-buffer-size=3D4 -m32 -march=3Di686 -mtune=3Dpentium2=20 > -fasynchronous-unwind-tables -c pkcs11.c > pkcs11.c: In function '__mytime': > pkcs11.c:40: warning: implicit declaration of function 'openvpn_time' > pkcs11.c: In function '_pkcs11_openvpn_token_prompt': > pkcs11.c:168: error: storage size of 'token_resp' isn't known > pkcs11.c:179: warning: implicit declaration of function 'openvpn_snprintf' > pkcs11.c:187: warning: implicit declaration of function 'get_user_pass' > pkcs11.c:191: error: 'GET_USER_PASS_MANAGEMENT' undeclared (first use in= =20 > this function) > pkcs11.c:191: error: (Each undeclared identifier is reported only once > pkcs11.c:191: error: for each function it appears in.) > pkcs11.c:191: error: 'GET_USER_PASS_NEED_OK' undeclared (first use in=20 > this function) > pkcs11.c:191: error: 'GET_USER_PASS_NOFATAL' undeclared (first use in=20 > this function) > pkcs11.c:197: warning: left-hand operand of comma expression has no effect > pkcs11.c:197: warning: value computed is not used > pkcs11.c:197: warning: left-hand operand of comma expression has no effect > pkcs11.c:168: warning: unused variable 'token_resp' > pkcs11.c: In function '_pkcs11_openvpn_pin_prompt': > pkcs11.c:211: error: storage size of 'token_pass' isn't known > pkcs11.c:230: error: 'GET_USER_PASS_MANAGEMENT' undeclared (first use in= =20 > this function) > pkcs11.c:230: error: 'GET_USER_PASS_PASSWORD_ONLY' undeclared (first use= =20 > in this function) > pkcs11.c:230: error: 'GET_USER_PASS_NOFATAL' undeclared (first use in=20 > this function) > pkcs11.c:236: warning: implicit declaration of function 'strncpynt' > pkcs11.c:237: warning: implicit declaration of function 'purge_user_pass' > pkcs11.c:211: warning: unused variable 'token_pass' > pkcs11.c: In function 'SSL_CTX_use_pkcs11': > pkcs11.c:632: error: storage size of 'id_resp' isn't known > pkcs11.c:649: error: 'GET_USER_PASS_MANAGEMENT' undeclared (first use in= =20 > this function) > pkcs11.c:649: error: 'GET_USER_PASS_NEED_STR' undeclared (first use in=20 > this function) > pkcs11.c:649: error: 'GET_USER_PASS_NOFATAL' undeclared (first use in=20 > this function) > pkcs11.c:632: warning: unused variable 'id_resp' > pkcs11.c: In function '_pkcs11_openvpn_show_pkcs11_ids_pin_prompt': > pkcs11.c:773: error: variable 'gc' has initializer but incomplete type > pkcs11.c:773: warning: implicit declaration of function 'gc_new' > pkcs11.c:773: error: storage size of 'gc' isn't known > pkcs11.c:774: error: variable 'pass_prompt' has initializer but=20 > incomplete type > pkcs11.c:774: warning: implicit declaration of function 'alloc_buf_gc' > pkcs11.c:774: error: storage size of 'pass_prompt' isn't known > pkcs11.c:782: warning: implicit declaration of function 'buf_printf' > pkcs11.c:784: warning: implicit declaration of function 'get_console_inpu= t' > pkcs11.c:784: warning: implicit declaration of function 'BSTR' > pkcs11.c:788: warning: implicit declaration of function 'gc_free' > pkcs11.c:774: warning: unused variable 'pass_prompt' > pkcs11.c:773: warning: unused variable 'gc' > make[2]: *** [pkcs11.o] Error 1 > make[2]: Leaving directory `/home/me/rpmbuild/BUILD/openvpn-2.2.0' > make[1]: *** [all-recursive] Error 1 > make[1]: Leaving directory `/home/me/rpmbuild/BUILD/openvpn-2.2.0' > make: *** [all] Error 2 >=20 > Running configure without "--disable-management" and then executing=20 > "make" is OK - no errors. Doing the same as above when not=20 > cross-compiling (i.e. build =3D host =3D x86_64-redhat-linux-gnu) with=20 > "--disable-management" also produces the same error (it passes through=20 > when "--disable-management" is removed). Quick fix: add --disable-pkcs11 in addition to --disable-management Can you try to apply the attached patch? I believe that might solve your compile issues. kind regards, David Sommerseth --------------040501090103050206090308 Content-Type: text/x-patch; name="0001-Fix-compiling-issues-with-pkcs11-when-disable-manage.patch" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename*0="0001-Fix-compiling-issues-with-pkcs11-when-disable-manage.pa"; filename*1="tch" =46rom 8b08d181ce119947e765b9bbc724e4441559bc13 Mon Sep 17 00:00:00 2001 From: David Sommerseth Date: Tue, 31 May 2011 16:59:30 +0200 Subject: [PATCH] Fix compiling issues with pkcs11 when --disable-manageme= nt is configured pkcs11.c seems to miss some header files which gets implicitly added when= the management interface is enabled. Signed-off-by: David Sommerseth --- pkcs11.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/pkcs11.c b/pkcs11.c index af781e0..9cf18e5 100644 --- a/pkcs11.c +++ b/pkcs11.c @@ -33,6 +33,8 @@ #include "manage.h" #include "base64.h" #include "pkcs11.h" +#include "misc.h" +#include "otime.h" =20 static time_t --=20 1.7.4.4 --------------040501090103050206090308-- --------------enig10769349B9474ABF1B12C92C Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org/ iEYEARECAAYFAk3lAtgACgkQDC186MBRfrpPBACfXMmsLAI2D0Da6dbTXstaWApA DfAAniI672ZagM9qTp2DFHRT2dNqhjeQ =g6Ul -----END PGP SIGNATURE----- --------------enig10769349B9474ABF1B12C92C--