Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 646642 - app-crypt/mit-krb5-1.15.2-r1 USE=libressl - .../work/krb5-1.15.2/src/plugins/preauth/pkinit/pkinit_crypto_openssl.c:3088:3: error: expected ‘,’ or ‘;’ before ‘static_ASN1_SEQUENCE_END_name’
Summary: app-crypt/mit-krb5-1.15.2-r1 USE=libressl - .../work/krb5-1.15.2/src/plugins/...
Status: RESOLVED DUPLICATE of bug 610854
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Kerberos Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-02-05 10:07 UTC by mbe
Modified: 2018-02-05 17:18 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge output (mit-krb5-1.15.2-r1.txt,500.79 KB, text/plain)
2018-02-05 10:07 UTC, mbe
Details

Note You need to log in before you can comment on or make changes to this bug.
Description mbe 2018-02-05 10:07:04 UTC
Created attachment 517846 [details]
emerge output

The package app-crypt/mit-krb5-1.15.2-r1 does not compile with libressl use flag.


# emerge -pv mit-krb5 

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild  N     ] app-crypt/mit-krb5-1.15.2-r1::gentoo  USE="keyutils libressl nls pkinit threads -doc -openldap (-selinux) {-test} -xinetd" ABI_X86="(64) -32 (-x32)" 0 KiB
Comment 1 mbe 2018-02-05 10:08:36 UTC
x86_64-pc-linux-gnu-gcc -fPIC -DSHARED -DHAVE_CONFIG_H -DPKINIT_DYNOBJEXT=\"""\" -I../../../include -I/var/tmp/portage/app-crypt/mit-krb5-1.15.2-r1/work/krb5-1.15.2/src/include  -DKRB5_DEPRECATED=1 -DKRB
5_PRIVATE  -O2 -pipe -march=x86-64 -mtune=generic -fno-strict-aliasing -fno-strict-overflow  -pthread  -c /var/tmp/portage/app-crypt/mit-krb5-1.15.2-r1/work/krb5-1.15.2/src/plugins/preauth/pkinit/pkinit_
crypto_openssl.c -o pkinit_crypto_openssl.so.o && mv -f pkinit_crypto_openssl.so.o pkinit_crypto_openssl.so
/var/tmp/portage/app-crypt/mit-krb5-1.15.2-r1/work/krb5-1.15.2/src/plugins/preauth/pkinit/pkinit_crypto_openssl.c: In function ‘make_oakley_dh’:
/var/tmp/portage/app-crypt/mit-krb5-1.15.2-r1/work/krb5-1.15.2/src/plugins/preauth/pkinit/pkinit_crypto_openssl.c:887:5: warning: implicit declaration of function ‘DH_set0_pqg’ [-Wimplicit-function-decla
ration]
     DH_set0_pqg(dh, p, q, g);
     ^~~~~~~~~~~
/var/tmp/portage/app-crypt/mit-krb5-1.15.2-r1/work/krb5-1.15.2/src/plugins/preauth/pkinit/pkinit_crypto_openssl.c: In function ‘cms_signeddata_create’:
/var/tmp/portage/app-crypt/mit-krb5-1.15.2-r1/work/krb5-1.15.2/src/plugins/preauth/pkinit/pkinit_crypto_openssl.c:1265:19: warning: implicit declaration of function ‘EVP_MD_CTX_new’ [-Wimplicit-function-
declaration]
             ctx = EVP_MD_CTX_new();
                   ^~~~~~~~~~~~~~
/var/tmp/portage/app-crypt/mit-krb5-1.15.2-r1/work/krb5-1.15.2/src/plugins/preauth/pkinit/pkinit_crypto_openssl.c:1265:17: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
             ctx = EVP_MD_CTX_new();
                 ^
/var/tmp/portage/app-crypt/mit-krb5-1.15.2-r1/work/krb5-1.15.2/src/plugins/preauth/pkinit/pkinit_crypto_openssl.c:1272:13: warning: implicit declaration of function ‘EVP_MD_CTX_free’ [-Wimplicit-function
-declaration]
             EVP_MD_CTX_free(ctx);
             ^~~~~~~~~~~~~~~
/var/tmp/portage/app-crypt/mit-krb5-1.15.2-r1/work/krb5-1.15.2/src/plugins/preauth/pkinit/pkinit_crypto_openssl.c:1307:17: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
             ctx = EVP_MD_CTX_new();
                 ^
/var/tmp/portage/app-crypt/mit-krb5-1.15.2-r1/work/krb5-1.15.2/src/plugins/preauth/pkinit/pkinit_crypto_openssl.c: In function ‘cms_signeddata_verify’:
/var/tmp/portage/app-crypt/mit-krb5-1.15.2-r1/work/krb5-1.15.2/src/plugins/preauth/pkinit/pkinit_crypto_openssl.c:1530:19: warning: implicit declaration of function ‘ASN1_STRING_get0_data’ [-Wimplicit-fu
nction-declaration]
         memcpy(d, ASN1_STRING_get0_data(*octets), *data_len);
                   ^~~~~~~~~~~~~~~~~~~~~
/var/tmp/portage/app-crypt/mit-krb5-1.15.2-r1/work/krb5-1.15.2/src/plugins/preauth/pkinit/pkinit_crypto_openssl.c:1530:19: warning: passing argument 2 of ‘memcpy’ makes pointer from integer without a cas
t [-Wint-conversion]
In file included from /usr/include/string.h:639:0,
                 from /var/tmp/portage/app-crypt/mit-krb5-1.15.2-r1/work/krb5-1.15.2/src/include/k5-platform.h:54,
                 from /var/tmp/portage/app-crypt/mit-krb5-1.15.2-r1/work/krb5-1.15.2/src/plugins/preauth/pkinit/pkinit.h:34,
                 from /var/tmp/portage/app-crypt/mit-krb5-1.15.2-r1/work/krb5-1.15.2/src/plugins/preauth/pkinit/pkinit_crypto_openssl.h:34,
                 from /var/tmp/portage/app-crypt/mit-krb5-1.15.2-r1/work/krb5-1.15.2/src/plugins/preauth/pkinit/pkinit_crypto_openssl.c:32:
/usr/include/bits/string3.h:50:42: note: expected ‘const void * restrict’ but argument is of type ‘int’
 __NTH (memcpy (void *__restrict __dest, const void *__restrict __src,
                                          ^~~~~~
/var/tmp/portage/app-crypt/mit-krb5-1.15.2-r1/work/krb5-1.15.2/src/plugins/preauth/pkinit/pkinit_crypto_openssl.c:1754:22: warning: implicit declaration of function ‘OBJ_get0_data’ [-Wimplicit-function-d
eclaration]
         print_buffer(OBJ_get0_data(etype), OBJ_length(etype));
                      ^~~~~~~~~~~~~
/var/tmp/portage/app-crypt/mit-krb5-1.15.2-r1/work/krb5-1.15.2/src/plugins/preauth/pkinit/pkinit_crypto_openssl.c:1754:44: warning: implicit declaration of function ‘OBJ_length’ [-Wimplicit-function-decl
aration]
         print_buffer(OBJ_get0_data(etype), OBJ_length(etype));
                                            ^~~~~~~~~~
/var/tmp/portage/app-crypt/mit-krb5-1.15.2-r1/work/krb5-1.15.2/src/plugins/preauth/pkinit/pkinit_crypto_openssl.c:1754:22: warning: passing argument 1 of ‘print_buffer’ makes pointer from integer without
 a cast [-Wint-conversion]
         print_buffer(OBJ_get0_data(etype), OBJ_length(etype));
                      ^~~~~~~~~~~~~
In file included from /var/tmp/portage/app-crypt/mit-krb5-1.15.2-r1/work/krb5-1.15.2/src/plugins/preauth/pkinit/pkinit_crypto_openssl.h:34:0,
                 from /var/tmp/portage/app-crypt/mit-krb5-1.15.2-r1/work/krb5-1.15.2/src/plugins/preauth/pkinit/pkinit_crypto_openssl.c:32:
/var/tmp/portage/app-crypt/mit-krb5-1.15.2-r1/work/krb5-1.15.2/src/plugins/preauth/pkinit/pkinit.h:376:6: note: expected ‘const unsigned char *’ but argument is of type ‘int’
 void print_buffer(const unsigned char *, unsigned int);
      ^~~~~~~~~~~~
/var/tmp/portage/app-crypt/mit-krb5-1.15.2-r1/work/krb5-1.15.2/src/plugins/preauth/pkinit/pkinit_crypto_openssl.c: In function ‘crypto_check_cert_eku’:
/var/tmp/portage/app-crypt/mit-krb5-1.15.2-r1/work/krb5-1.15.2/src/plugins/preauth/pkinit/pkinit_crypto_openssl.c:2357:25: warning: implicit declaration of function ‘X509_get_key_usage’ [-Wimplicit-funct
ion-declaration]
                 if (!ku_reject(reqctx->received_cert,
                         ^~~~~~~~~~~~~~~~~~
/var/tmp/portage/app-crypt/mit-krb5-1.15.2-r1/work/krb5-1.15.2/src/plugins/preauth/pkinit/pkinit_crypto_openssl.c: In function ‘pkinit_alg_agility_kdf’:
/var/tmp/portage/app-crypt/mit-krb5-1.15.2-r1/work/krb5-1.15.2/src/plugins/preauth/pkinit/pkinit_crypto_openssl.c:2599:13: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
         ctx = EVP_MD_CTX_new();
             ^
/var/tmp/portage/app-crypt/mit-krb5-1.15.2-r1/work/krb5-1.15.2/src/plugins/preauth/pkinit/pkinit_crypto_openssl.c: In function ‘client_create_dh’:
/var/tmp/portage/app-crypt/mit-krb5-1.15.2-r1/work/krb5-1.15.2/src/plugins/preauth/pkinit/pkinit_crypto_openssl.c:2701:5: warning: implicit declaration of function ‘DH_get0_key’ [-Wimplicit-function-decl
aration]
     DH_get0_key(cryptoctx->dh, &pubkey_bn, NULL);
     ^~~~~~~~~~~
/var/tmp/portage/app-crypt/mit-krb5-1.15.2-r1/work/krb5-1.15.2/src/plugins/preauth/pkinit/pkinit_crypto_openssl.c:2730:5: warning: implicit declaration of function ‘DH_get0_pqg’ [-Wimplicit-function-decl
aration]
     DH_get0_pqg(cryptoctx->dh, &p, &q, &g);
     ^~~~~~~~~~~
/var/tmp/portage/app-crypt/mit-krb5-1.15.2-r1/work/krb5-1.15.2/src/plugins/preauth/pkinit/pkinit_crypto_openssl.c: At top level:
/var/tmp/portage/app-crypt/mit-krb5-1.15.2-r1/work/krb5-1.15.2/src/plugins/preauth/pkinit/pkinit_crypto_openssl.c:3088:3: error: expected ‘,’ or ‘;’ before ‘static_ASN1_SEQUENCE_END_name’
 } static_ASN1_SEQUENCE_END_name(int_dhvparams, DHvparams)
   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/var/tmp/portage/app-crypt/mit-krb5-1.15.2-r1/work/krb5-1.15.2/src/plugins/preauth/pkinit/pkinit_crypto_openssl.c:3096:48: error: unknown type name ‘DHxparams’
 } static_ASN1_SEQUENCE_END_name(int_dhx942_dh, DHxparams)
                                                ^~~~~~~~~
/var/tmp/portage/app-crypt/mit-krb5-1.15.2-r1/work/krb5-1.15.2/src/plugins/preauth/pkinit/pkinit_crypto_openssl.c: In function ‘create_signature’:
/var/tmp/portage/app-crypt/mit-krb5-1.15.2-r1/work/krb5-1.15.2/src/plugins/preauth/pkinit/pkinit_crypto_openssl.c:4236:9: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
     ctx = EVP_MD_CTX_new();
         ^
/var/tmp/portage/app-crypt/mit-krb5-1.15.2-r1/work/krb5-1.15.2/src/plugins/preauth/pkinit/pkinit_crypto_openssl.c: In function ‘pkcs7_dataDecode’:
/var/tmp/portage/app-crypt/mit-krb5-1.15.2-r1/work/krb5-1.15.2/src/plugins/preauth/pkinit/pkinit_crypto_openssl.c:5999:30: warning: passing argument 3 of ‘pkinit_decode_data’ makes pointer from integer w
ithout a cast [-Wint-conversion]
                              ASN1_STRING_get0_data(ri->enc_key),
                              ^~~~~~~~~~~~~~~~~~~~~
/var/tmp/portage/app-crypt/mit-krb5-1.15.2-r1/work/krb5-1.15.2/src/plugins/preauth/pkinit/pkinit_crypto_openssl.c:4071:1: note: expected ‘const uint8_t * {aka const unsigned char *}’ but argument is of t
ype ‘int’
 pkinit_decode_data(krb5_context context,
 ^~~~~~~~~~~~~~~~~~
/var/tmp/portage/app-crypt/mit-krb5-1.15.2-r1/work/krb5-1.15.2/src/plugins/preauth/pkinit/pkinit_crypto_openssl.c: At top level:
/var/tmp/portage/app-crypt/mit-krb5-1.15.2-r1/work/krb5-1.15.2/src/plugins/preauth/pkinit/pkinit_crypto_openssl.c:53:12: warning: ‘decode_dh_params’ used but never defined
 static DH *decode_dh_params(const uint8_t *, unsigned int );
            ^~~~~~~~~~~~~~~~
make[1]: *** [Makefile:828: pkinit_crypto_openssl.so] Error 1
make[1]: Leaving directory '/var/tmp/portage/app-crypt/mit-krb5-1.15.2-r1/work/krb5-1.15.2/src-abi_x86_64.amd64/plugins/preauth/pkinit'
make: *** [Makefile:1523: all-recurse] Error 1
Comment 2 Jeroen Roovers (RETIRED) gentoo-dev 2018-02-05 17:15:19 UTC
Comment on attachment 517846 [details]
emerge output


> * If you need support, post the output of `emerge --info '=app-crypt/mit-krb5-1.15.2-r1::gentoo'`,
> * the complete build log and the output of `emerge -pqv '=app-crypt/mit-krb5-1.15.2-r1::gentoo'`.
> * The complete build log is located at '/var/tmp/portage/app-crypt/mit-krb5-1.15.2-r1/temp/build.log'.
> * The ebuild environment file is located at '/var/tmp/portage/app-crypt/mit-krb5-1.15.2-r1/temp/environment'.

Look, it says exactly what you need to attach to the bug report. That means you don't need to "capture" the output and attach that.
Comment 3 Jeroen Roovers (RETIRED) gentoo-dev 2018-02-05 17:18:22 UTC

*** This bug has been marked as a duplicate of bug 610854 ***