Trying to compile python3.10 on openbsd 7.0 on Pi4. It seems to run into
several openssl issue.  I have installed openssl as I couldn't find
libreSSL in the package manager.

The configure seems to passthe ssl test.

configure:17559: checking whether compiling and linking against OpenSSL
works
Trying link with OPENSSL_LDFLAGS=; OPENSSL_LIBS= -lssl -lcrypto;
OPENSSL_INCLUDES=
configure:17581: cc -pthread -o conftest      conftest.c  -lssl -lcrypto
-lpthread  -lutil -lm >&5
configure:17581: $? = 0
configure:17583: result: yes


I get following errors:

>> don't know why this happens
ldd: /usr/lib/libreadline.a: not an ELF executable

>>Errors when building _ssl module

cc -pthread -fPIC -Wno-unused-result -Wsign-compare -Wunreachable-code
-DNDEBUG -g -fwrapv -O3 -Wall -std=c99 -Wextra -Wno-unused-result
-Wno-unused-parameter -Wno-missing-field-initializers -Wstrict-prototypes
-Werror=implicit-function-declaration -fvisibility=hidden
-I./Include/internal -I./Include
-I/home/kabira/DrivingRange/project_versa/Builds/Python-3.10.0/include -I.
-I/usr/local/include
-I/home/kabira/DrivingRange/project_versa/downloads/Python-3.10.0/Include
-I/home/kabira/DrivingRange/project_versa/downloads/Python-3.10.0 -c
/home/kabira/DrivingRange/project_versa/downloads/Python-3.10.0/Modules/_ssl.c
-o
build/temp.openbsd-7.0-arm64-3.10/home/kabira/DrivingRange/project_versa/downloads/Python-3.10.0/Modules/_ssl.o
In file included from
/home/kabira/DrivingRange/project_versa/downloads/Python-3.10.0/Modules/_ssl.c:390:
/home/kabira/DrivingRange/project_versa/downloads/Python-3.10.0/Modules/_ssl/debughelpers.c:180:5:
error: implicit declaration of function 'SSL_CTX_set_keylog_callback' is
invalid in C99 [-Werror,-Wimplicit-function-declaration]
    SSL_CTX_set_keylog_callback(self->ctx, NULL);
    ^
/home/kabira/DrivingRange/project_versa/downloads/Python-3.10.0/Modules/_ssl.c:1842:29:
error: implicit declaration of function 'SSL_get0_verified_chain' is
invalid in C99 [-Werror,-Wimplicit-function-declaration]
    STACK_OF(X509) *chain = SSL_get0_verified_chain(self->ssl);
                            ^
/home/kabira/DrivingRange/project_versa/downloads/Python-3.10.0/Modules/_ssl.c:1842:21:
warning: incompatible integer to pointer conversion initializing 'struct
stack_st_X509 *' with an expression of type 'int' [-Wint-conversion]
    STACK_OF(X509) *chain = SSL_get0_verified_chain(self->ssl);
                    ^       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/kabira/DrivingRange/project_versa/downloads/Python-3.10.0/Modules/_ssl.c:2349:18:
error: implicit declaration of function 'SSL_write_ex' is invalid in C99
[-Werror,-Wimplicit-function-declaration]
        retval = SSL_write_ex(self->ssl, b->buf, (size_t)b->len, &count);


/home/kabira/DrivingRange/project_versa/downloads/Python-3.10.0/Modules/_ssl.c:2349:18:
note: did you mean 'SSL_write'?
/usr/include/openssl/ssl.h:1415:6: note: 'SSL_write' declared here
int     SSL_write(SSL *ssl, const void *buf, int num);
        ^
/home/kabira/DrivingRange/project_versa/downloads/Python-3.10.0/Modules/_ssl.c:2501:18:
error: implicit declaration of function 'SSL_read_ex' is invalid in C99
[-Werror,-Wimplicit-function-declaration]
        retval = SSL_read_ex(self->ssl, mem, (size_t)len, &count);
                 ^
/home/kabira/DrivingRange/project_versa/downloads/Python-3.10.0/Modules/_ssl.c:2501:18:
note: did you mean 'SSL_read'?
/usr/include/openssl/ssl.h:1413:6: note: 'SSL_read' declared here
int     SSL_read(SSL *ssl, void *buf, int num);
        ^
/home/kabira/DrivingRange/project_versa/downloads/Python-3.10.0/Modules/_ssl.c:3542:30:
error: implicit declaration of function 'SSL_CTX_get_num_tickets' is
invalid in C99 [-Werror,-Wimplicit-function-declaration]
    return PyLong_FromSize_t(SSL_CTX_get_num_tickets(self->ctx));
                             ^
/home/kabira/DrivingRange/project_versa/downloads/Python-3.10.0/Modules/_ssl.c:3560:9:
error: implicit declaration of function 'SSL_CTX_set_num_tickets' is
invalid in C99 [-Werror,-Wimplicit-function-declaration]
    if (SSL_CTX_set_num_tickets(self->ctx, num) != 1) {
        ^
/home/kabira/DrivingRange/project_versa/downloads/Python-3.10.0/Modules/_ssl.c:3574:28:
error: implicit declaration of function 'SSL_CTX_get_security_level' is
invalid in C99 [-Werror,-Wimplicit-function-declaration]
    return PyLong_FromLong(SSL_CTX_get_security_level(self->ctx));
                           ^
cc -pthread -shared -fPIC
build/temp.openbsd-7.0-arm64-3.10/home/kabira/DrivingRange/project_versa/downloads/Python-3.10.0/Modules/_testcapimodule.o
-L/home/kabira/DrivingRange/project_versa/Builds/Python-3.10.0/lib
-L/usr/local/lib -o build/lib.openbsd-7.0-arm64-3.10/_
testcapi.cpython-310.so


> and errors building _hashlib module

cc -pthread -fPIC -Wno-unused-result -Wsign-compare -Wunreachable-code
-DNDEBUG -g -fwrapv -O3 -Wall -std=c99 -Wextra -Wno-unused-result
-Wno-unused-parameter -Wno-missing-field-initializers -Wstrict-prototypes
-Werror=implicit-function-declaration -fvisibility=hidden
-I./Include/internal -I./Include
-I/home/kabira/DrivingRange/project_versa/Builds/Python-3.10.0/include -I.
-I/usr/local/include
-I/home/kabira/DrivingRange/project_versa/downloads/Python-3.10.0/Include
-I/home/kabira/DrivingRange/project_versa/downloads/Python-3.10.0 -c
/home/kabira/DrivingRange/project_versa/downloads/Python-3.10.0/Modules/_hashopenssl.c
-o
build/temp.openbsd-7.0-arm64-3.10/home/kabira/DrivingRange/project_versa/downloads/Python-3.10.0/Modules/_hashopenssl.o
building '_sha256' extension
cc -pthread -fPIC -Wno-unused-result -Wsign-compare -Wunreachable-code
-DNDEBUG -g -fwrapv -O3 -Wall -std=c99 -Wextra -Wno-unused-result
-Wno-unused-parameter -Wno-missing-field-initializers -Wstrict-prototypes
-Werror=implicit-function-declaration -fvisibility=hidden
-I./Include/internal -I./Include
-I/home/kabira/DrivingRange/project_versa/Builds/Python-3.10.0/include -I.
-I/usr/local/include
-I/home/kabira/DrivingRange/project_versa/downloads/Python-3.10.0/Include
-I/home/kabira/DrivingRange/project_versa/downloads/Python-3.10.0 -c
/home/kabira/DrivingRange/project_versa/downloads/Python-3.10.0/Modules/sha256module.c
-o
build/temp.openbsd-7.0-arm64-3.10/home/kabira/DrivingRange/project_versa/downloads/Python-3.10.0/Modules/sha256module.o
-DPy_BUILD_CORE_MODULE
/home/kabira/DrivingRange/project_versa/downloads/Python-3.10.0/Modules/_hashopenssl.c:158:10:
error: use of undeclared identifier 'NID_sha3_224'
    case NID_sha3_224:
         ^
/home/kabira/DrivingRange/project_versa/downloads/Python-3.10.0/Modules/_hashopenssl.c:161:10:
error: use of undeclared identifier 'NID_sha3_256'
    case NID_sha3_256:
         ^
/home/kabira/DrivingRange/project_versa/downloads/Python-3.10.0/Modules/_hashopenssl.c:164:10:
error: use of undeclared identifier 'NID_sha3_384'
    case NID_sha3_384:
         ^
/home/kabira/DrivingRange/project_versa/downloads/Python-3.10.0/Modules/_hashopenssl.c:167:10:
error: use of undeclared identifier 'NID_sha3_512'
    case NID_sha3_512:
         ^
/home/kabira/DrivingRange/project_versa/downloads/Python-3.10.0/Modules/_hashopenssl.c:172:10:
error: use of undeclared identifier 'NID_shake128'
    case NID_shake128:
         ^
/home/kabira/DrivingRange/project_versa/downloads/Python-3.10.0/Modules/_hashopenssl.c:175:10:
error: use of undeclared identifier 'NID_shake256'
    case NID_shake256:
         ^
/home/kabira/DrivingRange/project_versa/downloads/Python-3.10.0/Modules/_hashopenssl.c:180:10:
error: use of undeclared identifier 'NID_blake2s256'
    case NID_blake2s256:
         ^
/home/kabira/DrivingRange/project_versa/downloads/Python-3.10.0/Modules/_hashopenssl.c:183:10:
error: use of undeclared identifier 'NID_blake2b512'
    case NID_blake2b512:


Any suggesstions?

Thanks
-S
_______________________________________________
Python-Dev mailing list -- python-dev@python.org
To unsubscribe send an email to python-dev-le...@python.org
https://mail.python.org/mailman3/lists/python-dev.python.org/
Message archived at 
https://mail.python.org/archives/list/python-dev@python.org/message/YX34C4WZSKAAJ6JQZKTQADOI466P6XAX/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to