Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 20 May 2021 14:32:28 +1000
From:      Kubilay Kocak <koobs@FreeBSD.org>
To:        Simon Wright <simon.wright@gmx.net>
Cc:        freebsd-ports@freebsd.org
Subject:   Re: Problem building py-cryptography
Message-ID:  <756eb112-2db9-5c29-45f3-4b84955d9953@FreeBSD.org>
In-Reply-To: <27430757-7722-016c-9aab-0ffe5a035366@gmx.net>
References:  <0c8fc81e-e45b-2d9b-8005-ef5c504aa275@gmx.net> <448a5d09-ec17-43b8-17ba-6536e4f70cfd@FreeBSD.org> <27430757-7722-016c-9aab-0ffe5a035366@gmx.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On 20/05/2021 2:17 pm, Simon Wright wrote:
> On 20/05/2021 12:00 pm, Kubilay Kocak wrote:
>> On 20/05/2021 1:21 pm, Simon Wright wrote:
>>> Hi all,
>>>
>>> I've been unable to build security/py-cryptography for about 10 days
>>> now. The build in Poudriere under 12.2 and 13.0 fail with a
>>> "Bad_C++_code" error.
>>>
>>> I tried removing the libressl dependency but that made no difference. Is
>>> anyone else seeing this and can anyone point me in the right direction
>>> to get this fixed please?
>>>
>>> Below is my make.conf, list of poudriere-built ports and the full
>>> poudriere log for py-cryptography
>>>
>>
>> Hi Simon,
>>
>> Is the issue reproducible without ccache?
>>
>> Also, make.conf still shows:
>>
>> DEFAULT_VERSIONS+=ssl=libressl
>>
> 
> Thanks Kubs. When I tested I removed libressl, tried the build again and
> it failed so I replaced libressl after the test.
> 
> Removing ccache (and with libressl) made no difference - still the same
> error. I then removed the libressl dependency and I reran the build - no
> ccache and no libressl - the build still failed, same error message.
> 
> Since no-one else has reported this I suppose it should be something in
> my environment . . . . But what? :)

While the build error *with libressl* is known, matching that reported in:

https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=255241

Failing to build without libressl is unexpected.

Jump into the poudriere jail to confirm (or not) its libressl that's 
being installed and used.  Could be:

  - Custom WRKDIRPREFIX?
  - An overriding jail or set (-z) specific poudriere foo-make.conf?

Note, the OP build log contains:

[pkg.home.santos-wright.net] |   |   `-- Installing libressl-3.3.3...
[pkg.home.santos-wright.net] |   |   `-- Extracting libressl-3.3.3:

With defaults, base openssl will be used, and you wont see libressl as a 
dependency in the build.

[1] build/temp.freebsd-13.0-RELEASE-amd64-3.8/_openssl.c:2172:19: error:
expected identifier or '('
static const long SSL_OP_NO_DTLSv1 = 0;

> Regards,
> 
> Simon.
> 
> 
>>> ============================================
>>>
>>> make.conf
>>>
>>> WRKDIRPREFIX=/usr/tmp
>>> OPTIONS_SET=GECKO CUPS
>>> NOI4B=1
>>> OPTIONS_SET+=NO-X11
>>> CUPS_OVERWRITE_BASE=YES
>>> WITH_VIM_OPTIONS=yes
>>> DEFAULT_VERSIONS+=ssl=libressl bdb=5
>>> VALID_CATEGORIES+=local
>>> SVN=svnlite
>>>
>>>
>>> Poudriere ports list:
>>>
>>> devel/git@lite
>>> dns/bind916
>>> emulators/open-vm-tools@nox11
>>> ftp/curl
>>> graphics/cairo
>>> local/vmserver-baseline
>>> mail/postfix
>>> print/hplip
>>> sysutils/facter
>>> sysutils/puppet6
>>> sysutils/rsyslog8
>>> sysutils/rubygem-puppetserver-ca
>>> www/apt-cacher-ng
>>> www/mod_log_sql
>>>
>>>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?756eb112-2db9-5c29-45f3-4b84955d9953>