#17577: OpenVPN does not build against PolarSSL in trunk
----------------------+------------------------
 Reporter:  andreas   |      Owner:  developers
     Type:  defect    |     Status:  new
 Priority:  normal    |  Milestone:
Component:  packages  |    Version:  Trunk
 Keywords:            |
----------------------+------------------------
 It seems as if PolarSSL has changed APIs and OpenVPN will not build
 against the current trunk.

 {{{
 Making all in openvpn
 make[7]: Entering directory `/home/andreas/openwrt/610n/openwrt/build_dir
 /target-mipsel_mips32_uClibc-0.9.33.2/openvpn-
 polarssl/openvpn-2.3.4/src/openvpn'
 mipsel-openwrt-linux-uclibc-gcc -DHAVE_CONFIG_H -I. -I../..
 -I../../include -I../../src/compat
 -I/home/andreas/openwrt/610n/openwrt/staging_dir/target-
 mipsel_mips32_uClibc-0.9.33.2/usr/include
 -I/home/andreas/openwrt/610n/openwrt/staging_dir/target-
 mipsel_mips32_uClibc-0.9.33.2/include
 -I/home/andreas/openwrt/610n/openwrt/staging_dir/toolchain-
 mipsel_mips32_gcc-4.8-linaro_uClibc-0.9.33.2/usr/include
 -I/home/andreas/openwrt/610n/openwrt/staging_dir/toolchain-
 mipsel_mips32_gcc-4.8-linaro_uClibc-0.9.33.2/include       -Os -pipe -mno-
 branch-likely -mips32 -mtune=mips32 -fno-caller-saves -fhonour-copts -Wno-
 error=unused-but-set-variable -msoft-float  -MT ssl_polarssl.o -MD -MP -MF
 .deps/ssl_polarssl.Tpo -c -o ssl_polarssl.o ssl_polarssl.c
 In file included from ssl_polarssl.h:41:0,
                  from ssl_backend.h:42,
                  from ssl_polarssl.c:42:
 /home/andreas/openwrt/610n/openwrt/staging_dir/target-
 mipsel_mips32_uClibc-0.9.33.2/usr/include/polarssl/compat-1.2.h:53:2:
 warning: #warning "You can disable these warnings by commenting
 SHOW_PROTOTYPE_CHANGE_WARNINGS in compat-1.2.h" [-Wcpp]
  #warning "You can disable these warnings by commenting
 SHOW_PROTOTYPE_CHANGE_WARNINGS in compat-1.2.h"
   ^
 /home/andreas/openwrt/610n/openwrt/staging_dir/target-
 mipsel_mips32_uClibc-0.9.33.2/usr/include/polarssl/compat-1.2.h:156:2:
 warning: #warning "cipher_reset() prototype changed. Manual change
 required if used" [-Wcpp]
  #warning "cipher_reset() prototype changed. Manual change required if
 used"
   ^
 /home/andreas/openwrt/610n/openwrt/staging_dir/target-
 mipsel_mips32_uClibc-0.9.33.2/usr/include/polarssl/compat-1.2.h:171:2:
 warning: #warning "rsa_pkcs1_verify() prototype changed. Manual change
 required if used" [-Wcpp]
  #warning "rsa_pkcs1_verify() prototype changed. Manual change required if
 used"
   ^
 /home/andreas/openwrt/610n/openwrt/staging_dir/target-
 mipsel_mips32_uClibc-0.9.33.2/usr/include/polarssl/compat-1.2.h:172:2:
 warning: #warning "rsa_pkcs1_decrypt() prototype changed. Manual change
 required if used" [-Wcpp]
  #warning "rsa_pkcs1_decrypt() prototype changed. Manual change required
 if used"
   ^
 /home/andreas/openwrt/610n/openwrt/staging_dir/target-
 mipsel_mips32_uClibc-0.9.33.2/usr/include/polarssl/compat-1.2.h:178:2:
 warning: #warning "dhm_calc_secret() prototype changed. Manual change
 required if used" [-Wcpp]
  #warning "dhm_calc_secret() prototype changed. Manual change required if
 used"
   ^
 /home/andreas/openwrt/610n/openwrt/staging_dir/target-
 mipsel_mips32_uClibc-0.9.33.2/usr/include/polarssl/compat-1.2.h:190:2:
 warning: #warning "ssl_set_own_cert() prototype changed. Change to
 ssl_set_own_cert_rsa(). Manual change required if used" [-Wcpp]
  #warning "ssl_set_own_cert() prototype changed. Change to
 ssl_set_own_cert_rsa(). Manual change required if used"
   ^
 ssl_polarssl.c: In function 'tls_ctx_use_external_private_key':
 ssl_polarssl.c:335:55: error: 'x509_cert' has no member named 'rsa'
    ctx->external_key->signature_length = ctx->crt_chain->rsa.len;
                                                        ^
 In file included from /home/andreas/openwrt/610n/openwrt/staging_dir
 /target-mipsel_mips32_uClibc-0.9.33.2/usr/include/polarssl/x509.h:36:0,
                  from /home/andreas/openwrt/610n/openwrt/staging_dir
 /target-mipsel_mips32_uClibc-0.9.33.2/usr/include/polarssl/x509_crt.h:36,
                  from /home/andreas/openwrt/610n/openwrt/staging_dir
 /target-mipsel_mips32_uClibc-0.9.33.2/usr/include/polarssl/ssl.h:63,
                  from ssl_polarssl.h:35,
                  from ssl_backend.h:42,
                  from ssl_polarssl.c:42:
 ssl_polarssl.c: In function 'external_pkcs1_sign':
 ssl_polarssl.c:374:30: error: 'ASN1_HASH_MDX' undeclared (first use in
 this function)
            asn_len = OID_SIZE(ASN1_HASH_MDX);
                               ^
 ssl_polarssl.c:374:30: note: each undeclared identifier is reported only
 once for each function it appears in
 ssl_polarssl.c:392:30: error: 'ASN1_HASH_SHA1' undeclared (first use in
 this function)
            asn_len = OID_SIZE(ASN1_HASH_SHA1);
                               ^
 ssl_polarssl.c:398:30: error: 'ASN1_HASH_SHA2X' undeclared (first use in
 this function)
            asn_len = OID_SIZE(ASN1_HASH_SHA2X);
                               ^
 ssl_polarssl.c: In function 'key_state_ssl_init':
 ssl_polarssl.c:684:5: warning: passing argument 5 of
 'ssl_set_own_cert_alt' from incompatible pointer type [enabled by default]
      external_key_len );
      ^
 In file included from ssl_polarssl.h:35:0,
                  from ssl_backend.h:42,
                  from ssl_polarssl.c:42:
 /home/andreas/openwrt/610n/openwrt/staging_dir/target-
 mipsel_mips32_uClibc-0.9.33.2/usr/include/polarssl/ssl.h:1192:5: note:
 expected 'rsa_sign_func' but argument is of type 'int (*)(void *, int
 (*)(void *, unsigned char *, size_t), void *, int,  int,  unsigned int,
 const unsigned char *, unsigned char *)'
  int ssl_set_own_cert_alt( ssl_context *ssl, x509_crt *own_cert,
      ^
 make[7]: *** [ssl_polarssl.o] Error 1
 make[7]: Leaving directory `/home/andreas/openwrt/610n/openwrt/build_dir
 /target-mipsel_mips32_uClibc-0.9.33.2/openvpn-
 polarssl/openvpn-2.3.4/src/openvpn'
 }}}

--
Ticket URL: <https://dev.openwrt.org/ticket/17577>
OpenWrt <http://openwrt.org>
Opensource Wireless Router Technology
_______________________________________________
openwrt-tickets mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-tickets

Reply via email to