Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 684234 - dev-python/cryptography-2.6.1[libressl]: _openssl.c:2498:21: error: ‘DTLS_method’ redeclared as different kind of symbol
Summary: dev-python/cryptography-2.6.1[libressl]: _openssl.c:2498:21: error: ‘DTLS_met...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords: PullRequest
: 684288 (view as bug list)
Depends on:
Blocks: libressl-support
  Show dependency tree
 
Reported: 2019-04-24 07:52 UTC by Stefan Strogin
Modified: 2019-04-24 21:04 UTC (History)
2 users (show)

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


Attachments
build.log (build.log,44.37 KB, text/plain)
2019-04-24 07:52 UTC, Stefan Strogin
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Stefan Strogin gentoo-dev 2019-04-24 07:52:09 UTC
Created attachment 573932 [details]
build.log

LibreSSL 2.9.1.
On LibreSSL 2.8.3 it was fine.

x86_64-pc-linux-gnu-gcc -march=skylake -O3 -pipe -pthread -fPIC -I/usr/include/python2.7 -c /var/tmp/portage/dev-python/cryptography-2.6.1/work/cryptography-2.6.1-python2_7/temp.linux-x86_64-2.7/_openssl.c -o /var/tmp/portage/dev-python/cryptography-2.6.1/work/cryptography-2.6.1-python2_7/temp.linux-x86_64-2.7/var/tmp/portage/dev-python/cryptography-2.6.1/work/cryptography-2.6.1-python2_7/temp.linux-x86_64-2.7/_openssl.o -Wconversion -Wno-error=sign-conversion
/var/tmp/portage/dev-python/cryptography-2.6.1/work/cryptography-2.6.1-python2_7/temp.linux-x86_64-2.7/_openssl.c:2498:21: error: ‘DTLS_method’ redeclared as different kind of symbol
 const SSL_METHOD *(*DTLS_method)(void) = NULL;
                     ^~~~~~~~~~~
(...)
python2_7/temp.linux-x86_64-2.7/_openssl.c: In function ‘_cffi_f_SSL_set_options’:
/var/tmp/portage/dev-python/cryptography-2.6.1/work/cryptography-2.6.1-python2_7/temp.linux-x86_64-2.7/_openssl.c:41380:14: warning: conversion to ‘long int’ from ‘long unsigned int’ may change the sign of the result [-Wsign-conversion]
   { result = SSL_set_options(x0, x1); }
              ^~~~~~~~~~~~~~~
/var/tmp/portage/dev-python/cryptography-2.6.1/work/cryptography-2.6.1-python2_7/temp.linux-x86_64-2.7/_openssl.c:41380:14: warning: conversion to ‘long unsigned int’ from ‘long int’ may change the sign of the result [-Wsign-conversion]
error: command 'x86_64-pc-linux-gnu-gcc' failed with exit status 1
Comment 1 Stefan Strogin gentoo-dev 2019-04-24 07:53:23 UTC
$ emerge -pqv '=dev-python/cryptography-2.6.1::gentoo'
[ebuild   R   ] dev-python/cryptography-2.6.1  USE="libressl -idna -test" PYTHON_TARGETS="python2_7 python3_6 -pypy -pypy3 -python3_5 -python3_7"
Comment 2 Jeroen Roovers (RETIRED) gentoo-dev 2019-04-24 18:37:57 UTC
*** Bug 684288 has been marked as a duplicate of this bug. ***
Comment 3 Larry the Git Cow gentoo-dev 2019-04-24 21:04:55 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=03858797d0f0bfa04e85e92cafc870f1a11a3cbc

commit 03858797d0f0bfa04e85e92cafc870f1a11a3cbc
Author:     Stefan Strogin <stefan.strogin@gmail.com>
AuthorDate: 2019-04-24 08:19:07 +0000
Commit:     Mike Gilbert <floppym@gentoo.org>
CommitDate: 2019-04-24 21:03:56 +0000

    dev-python/cryptography: add patch for LibreSSL 2.9.1 support
    
    Closes: https://bugs.gentoo.org/684234
    Closes: https://github.com/gentoo/gentoo/pull/11812
    Package-Manager: Portage-2.3.64, Repoman-2.3.12
    Signed-off-by: Stefan Strogin <stefan.strogin@gmail.com>
    Signed-off-by: Mike Gilbert <floppym@gentoo.org>

 dev-python/cryptography/cryptography-2.6.1.ebuild  |  1 +
 .../files/cryptography-2.6.1-libressl.patch        | 69 ++++++++++++++++++++++
 2 files changed, 70 insertions(+)