Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

"Just the facts, Ma'am" -- Joe Friday


devel / comp.protocols.kerberos / Re: Compilation error with openssl-3.0.0 and krb5-1.19.2 on Linux

SubjectAuthor
* Compilation error with openssl-3.0.0 and krb5-1.19.2 on LinuxChris Hills
`- Re: Compilation error with openssl-3.0.0 and krb5-1.19.2 on LinuxChris Hills

1
Compilation error with openssl-3.0.0 and krb5-1.19.2 on Linux

<smg8m4$3l0$1@chaz6.eternal-september.org>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=185&group=comp.protocols.kerberos#185

  copy link   Newsgroups: comp.protocols.kerberos
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!chaz6.eternal-september.org!.POSTED!not-for-mail
From: cha...@chaz6.com (Chris Hills)
Newsgroups: comp.protocols.kerberos
Subject: Compilation error with openssl-3.0.0 and krb5-1.19.2 on Linux
Date: Wed, 10 Nov 2021 10:59:15 +0000
Organization: A noiseless patient Spider
Lines: 30
Message-ID: <smg8m4$3l0$1@chaz6.eternal-september.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Wed, 10 Nov 2021 10:59:16 -0000 (UTC)
Injection-Info: chaz6.eternal-september.org; posting-host="8ac990fd213f80a64d5544574feb82a0";
logging-data="3744"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18AHJlklGAQI1mNMg+UrmNp"
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101
Thunderbird/91.3.0
Cancel-Lock: sha1:Vds/Tew8Oxxyu7ZFnUnivMMR2KI=
 by: Chris Hills - Wed, 10 Nov 2021 10:59 UTC

Using gcc-11.2.0 or clang-13.0.0 with openssl-3.0.0 and krb5-1.19.2
produces the following compilation error:-

main.c:430:13: error: assigning to 'RSA *' (aka 'struct rsa_st *') from
'const struct rsa_st *' discards qualifiers
[-Werror,-Wincompatible-pointer-types-discards-qualifiers]
main.c:683:32: error: passing 'const struct rsa_st *' to parameter of
type 'RSA *' (aka 'struct rsa_st *') discards qualifiers
[-Werror,-Wincompatible-pointer-types-discards-qualifiers]
main.c:1227:24: error: passing 'const struct rsa_st *' to parameter of
type 'RSA *' (aka 'struct rsa_st *') discards qualifiers
[-Werror,-Wincompatible-pointer-types-discards-qualifiers]
main.c:1515:9: error: assigning to 'RSA *' (aka 'struct rsa_st *') from
'const struct rsa_st *' discards qualifiers
[-Werror,-Wincompatible-pointer-types-discards-qualifiers]
main.c:1666:9: error: assigning to 'RSA *' (aka 'struct rsa_st *') from
'const struct rsa_st *' discards qualifiers
[-Werror,-Wincompatible-pointer-types-discards-qualifiers]
main.c:1825:9: error: assigning to 'RSA *' (aka 'struct rsa_st *') from
'const struct rsa_st *' discards qualifiers
[-Werror,-Wincompatible-pointer-types-discards-qualifiers]
main.c:1972:9: error: assigning to 'RSA *' (aka 'struct rsa_st *') from
'const struct rsa_st *' discards qualifiers
[-Werror,-Wincompatible-pointer-types-discards-qualifiers]

I am not a programmer so I would appreciate any tips to fix it.

Thanks,

Chris Hills

Re: Compilation error with openssl-3.0.0 and krb5-1.19.2 on Linux

<smg8sn$5uh$1@chaz6.eternal-september.org>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=186&group=comp.protocols.kerberos#186

  copy link   Newsgroups: comp.protocols.kerberos
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!chaz6.eternal-september.org!.POSTED!not-for-mail
From: cha...@chaz6.com (Chris Hills)
Newsgroups: comp.protocols.kerberos
Subject: Re: Compilation error with openssl-3.0.0 and krb5-1.19.2 on Linux
Date: Wed, 10 Nov 2021 11:02:45 +0000
Organization: A noiseless patient Spider
Lines: 2
Message-ID: <smg8sn$5uh$1@chaz6.eternal-september.org>
References: <smg8m4$3l0$1@chaz6.eternal-september.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Wed, 10 Nov 2021 11:02:47 -0000 (UTC)
Injection-Info: chaz6.eternal-september.org; posting-host="8ac990fd213f80a64d5544574feb82a0";
logging-data="6097"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/2dEBEpx6Ie4jpp3A4WftI"
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101
Thunderbird/91.3.0
Cancel-Lock: sha1:ehtrdPFU9AGfJaLS5RXeey+1J2M=
In-Reply-To: <smg8m4$3l0$1@chaz6.eternal-september.org>
 by: Chris Hills - Wed, 10 Nov 2021 11:02 UTC

The error was in src/tests/softpkcs11/main.c so I just skipped the test
and I was able to compile successfully.

1
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor