Bug 279390 - lang/python311 install failure (connected with libressl?)
Summary: lang/python311 install failure (connected with libressl?)
Status: New
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-python (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-05-30 03:19 UTC by jakub_lach
Modified: 2024-06-16 05:48 UTC (History)
3 users (show)

See Also:
bugzilla: maintainer-feedback? (python)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description jakub_lach 2024-05-30 03:19:01 UTC
===>  Installing for python311-3.11.9
===>  Checking if python311 is already installed
===>   Registering installation for python311-3.11.9 as automatic
pkg-static: Unable to access file /usr/obj/usr/ports/lang/python311/work/stage/usr/local/lib/python3.11/lib-dynload/_ssl.cpython-311.so:No such file or directory
Comment 1 jakub_lach 2024-05-31 07:19:15 UTC
I thji
Comment 2 David Marec 2024-05-31 07:46:28 UTC
The error is related to libressl, and  stands here:

/wrkdirs/usr/ports/lang/python311/work/Python-3.11.9/Modules/_ssl.c:4554:18: error: call to undeclared function 'X509_OBJECT_set1_X509'; ISO C99 and later do not support implicit function declarations [-Werror,-Wimplicit-function-declaration]
 4554 |             ok = X509_OBJECT_set1_X509(ret, X509_OBJECT_get0_X509(obj));
      |                  ^
/wrkdirs/usr/ports/lang/python311/work/Python-3.11.9/Modules/_ssl.c:4554:18: note: did you mean 'X509_OBJECT_get0_X509'?
/usr/local/include/openssl/x509_vfy.h:285:7: note: 'X509_OBJECT_get0_X509' declared here
  285 | X509 *X509_OBJECT_get0_X509(const X509_OBJECT *xo);
      |       ^
/wrkdirs/usr/ports/lang/python311/work/Python-3.11.9/Modules/_ssl.c:4558:18: error: call to undeclared function 'X509_OBJECT_set1_X509_CRL'; ISO C99 and later do not support implicit function declarations [-Werror,-Wimplicit-function-declaration]
 4558 |             ok = X509_OBJECT_set1_X509_CRL(
      |                  ^
/wrkdirs/usr/ports/lang/python311/work/Python-3.11.9/Modules/_ssl.c:4558:18: note: did you mean 'X509_OBJECT_get0_X509_CRL'?
/usr/local/include/openssl/x509_vfy.h:286:11: note: 'X509_OBJECT_get0_X509_CRL' declared here
  286 | X509_CRL *X509_OBJECT_get0_X509_CRL(X509_OBJECT *xo);
      |           ^
/wrkdirs/usr/ports/lang/python311/work/Python-3.11.9/Modules/_ssl.c:4575:1: error: static declaration of 'X509_STORE_get1_objects' follows non-static declaration
 4575 | X509_STORE_get1_objects(X509_STORE *store)
      | ^
/usr/local/include/openssl/x509_vfy.h:296:24: note: previous declaration is here
  296 | STACK_OF(X509_OBJECT) *X509_STORE_get1_objects(X509_STORE *xs);
      |                        ^
/wrkdirs/usr/ports/lang/python311/work/Python-3.11.9/Modules/_ssl.c:4578:10: error: call to undeclared function 'X509_STORE_lock'; ISO C99 and later do not support implicit function declarations [-Werror,-Wimplicit-function-declaration]
 4578 |     if (!X509_STORE_lock(store)) {
      |          ^
/wrkdirs/usr/ports/lang/python311/work/Python-3.11.9/Modules/_ssl.c:4581:11: error: call to undeclared function 'sk_X509_OBJECT_deep_copy'; ISO C99 and later do not support implicit function declarations [-Werror,-Wimplicit-function-declaration]
 4581 |     ret = sk_X509_OBJECT_deep_copy(X509_STORE_get0_objects(store),
      |           ^
/wrkdirs/usr/ports/lang/python311/work/Python-3.11.9/Modules/_ssl.c:4581:9: error: incompatible integer to pointer conversion assigning to 'struct stack_st_X509_OBJECT *' from 'int' [-Wint-conversion]
 4581 |     ret = sk_X509_OBJECT_deep_copy(X509_STORE_get0_objects(store),
      |         ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 4582 |                                    x509_object_dup, X509_OBJECT_free);
      |                                    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/wrkdirs/usr/ports/lang/python311/work/Python-3.11.9/Modules/_ssl.c:4583:5: error: call to undeclared function 'X509_STORE_unlock'; ISO C99 and later do not support implicit function declarations [-Werror,-Wimplicit-function-declaration]
 4583 |     X509_STORE_unlock(store);
      |     ^