Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 703288 - net-libs/mbedtls-2.19.1 - library/ssl_tls.c:1862:9: error: 'session' undeclared
Summary: net-libs/mbedtls-2.19.1 - library/ssl_tls.c:1862:9: error: 'session' undeclared
Status: RESOLVED DUPLICATE of bug 706112
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Anthony Basile
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-12-18 12:26 UTC by Helmut Jarausch
Modified: 2020-02-11 11:22 UTC (History)
4 users (show)

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


Attachments
build log (mbedtls-2.19.1.build,60.14 KB, text/plain)
2019-12-18 12:26 UTC, Helmut Jarausch
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Helmut Jarausch 2019-12-18 12:26:54 UTC
Created attachment 600016 [details]
build log

/var/tmp/portage/net-libs/mbedtls-2.19.1/work/mbedtls-mbedtls-2.19.1/library/ssl_tls.c: In function 'mbedtls_ssl_derive_keys':
/var/tmp/portage/net-libs/mbedtls-2.19.1/work/mbedtls-mbedtls-2.19.1/library/ssl_tls.c:1862:9: error: 'session' undeclared (first use in this function)
 1862 |     if( session->compression == MBEDTLS_SSL_COMPRESS_DEFLATE &&

I have openssl-1.1.1d-r3 installed here.
Comment 1 Mike Gilbert gentoo-dev 2019-12-18 20:35:55 UTC
Please provide emerge --info.
Comment 2 Anthony Basile gentoo-dev 2019-12-19 12:07:54 UTC
(In reply to Helmut Jarausch from comment #0)
> Created attachment 600016 [details]
> build log
> 
> /var/tmp/portage/net-libs/mbedtls-2.19.1/work/mbedtls-mbedtls-2.19.1/library/
> ssl_tls.c: In function 'mbedtls_ssl_derive_keys':
> /var/tmp/portage/net-libs/mbedtls-2.19.1/work/mbedtls-mbedtls-2.19.1/library/
> ssl_tls.c:1862:9: error: 'session' undeclared (first use in this function)
>  1862 |     if( session->compression == MBEDTLS_SSL_COMPRESS_DEFLATE &&
> 
> I have openssl-1.1.1d-r3 installed here.

I need more information here.  I also have openssl-1.1.1d-r3 and can't reproduce this.
Comment 3 Hugo Ribeiro 2019-12-19 13:53:30 UTC
I can confirm this and it has already been reported upstream:

https://github.com/ARMmbed/mbedtls/pull/2963.

A fix is already available at the above address. I tried it out using the user patch function of portage and it installs now.
Comment 4 Anthony Basile gentoo-dev 2019-12-19 14:01:48 UTC
(In reply to Hugo Ribeiro from comment #3)
> I can confirm this and it has already been reported upstream:
> 
> https://github.com/ARMmbed/mbedtls/pull/2963.
> 
> A fix is already available at the above address. I tried it out using the
> user patch function of portage and it installs now.

Thanks.  They haven't merged the fix yet, when they do we can back port it.
Comment 5 N. Andrew Walsh 2019-12-30 14:25:39 UTC
can confirm that the patch posted in Comment 3 results in successful emerge on my system. Thanks for this.
Comment 6 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2020-02-11 11:22:50 UTC
Fixed but referenced a bug that was filed after this one. So I am going to mark this bug as duplicate of the later bug report (usually it's vice versa)

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