tech-pkg archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: lang/swi-prolog-lite 8.0.2 fails to build on NetBSD -current (OpenSSL version issue?)
On Fri, Dec 27, 2024 at 08:50:46AM +0100, Martin Husemann wrote:
> Hey folks,
>
> trying to build lang/swi-prolog-lite on NetBSD-current fails for me:
>
> /usr/pkgobj/lang/swi-prolog-lite/work/swipl-8.0.2/packages/ssl/crypto4pl.c: In function 'get_padding':
> /usr/pkgobj/lang/swi-prolog-lite/work/swipl-8.0.2/packages/ssl/crypto4pl.c:851:69: error: 'RSA_SSLV23_PADDING' undeclared (first use in this function); did you mean 'RSA_PKCS1_PADDING'?
> 851 | else if ( a == ATOM_sslv23 && mode == RSA_MODE ) *padding = RSA_SSLV23_PADDING;
> | ^~~~~~~~~~~~~~~~~~
> | RSA_PKCS1_PADDING
>
>
>
> Sounds like an openssl version issue? What is the usual workaround?
I tried building that on NetBSD/amd64 and after a few screenfulls of
"$SYMBOL is deprecated" that all boiled down to "you are trying to use
a way too old version of the SSL APIs" the build failed. Interestingly,
it got a bit further building it on NetBSD/sparc64 (until the machine
crashed) (different set of SSL libraries installed maybe?).
Given that the version 8.0.2 in pkgsrc dates from March 2019, that is
not surprising. The current version in upstream[0] is 9.2.9 and dates
from Dec 2024, but that fails to build very early due to networking API
mismatches in the IPv6 corner.
I guess the correct way of fixing this is dealing with the network API
issues in the code - the lazier one would be to try to find a version
that has already updated the SSL code, but not yet added IPv6 ;-)
Kind regards,
Alex.
[0] https://www.swi-prolog.org/download/stable/src/
--
"Opportunity is missed by most people because it is dressed in overalls and
looks like work." -- Thomas A. Edison
Home |
Main Index |
Thread Index |
Old Index