-
-
Notifications
You must be signed in to change notification settings - Fork 32.7k
Description
Bug report
Bug description:
When building python 3.12 on MacOSX, the configure script does not detect dependencies such as openssl, libffi, tcltk, ncurses, readline, or bzip2 if they are built from source and installed in custom locations. Using pkgconfig or the corresponding env variables like TCLTK_CFLAGS and TCLTK_LIBS does not help because the script still flags the dependency as missing. For openssl installed in a custom location, the configure still does not detect it even if the --with-openssl and/or --with-openssl-rpath options are used.
The 6 dependencies listed above are ones that the script does not detect. It however is able to detect and use a custom installed zlib. Problem is only observed on MacOSX. Linux is ok.
Dependency versions tested:
openssl (3.0.11, 3.1.4, 3.2.0)
bzip2 (1.0.8)
tcltk (8.6.13)
libffi (3.4.4)
ncurses (6.4)
readline (8.1, 8.2)
Steps to reproduce:
- build any of the 6 listed dependencies from source and install in a custom location
- configure python by using either pkgconfig or point the corresponding env vars to the location of the corresponding dependency headers and libraries ie TCLTK_CFLAGS and TCLTK_LIB to location where the custom TclTk is installed
(I needed to do rpath linking so I set this to TCLTK_LIB: TCLTK_LIBS=-Wl,-rpath,/lib )
(for openssl, I set --with-openssl to the location of the custom openssl and set --with-openssl-rpath to auto)
- build python
Expected Result
Should be able to detect and rlink the dependency
Actual Result
The configure log flags the dependency as missing
ie, in openssl's case it is able to find find it, but it is not able to detect the needed APIs. The same test however works on Linux.
checking for include/openssl/ssl.h in /Users/isleong/openssl-inst... yes
checking whether compiling and linking against OpenSSL works... yes
checking for --with-openssl-rpath... auto
checking whether OpenSSL provides required ssl module APIs... no
checking whether OpenSSL provides required hashlib module APIs... no
...
checking for stdlib extension module _ssl... missing
checking for stdlib extension module _hashlib... missing
CPython versions tested on:
3.12
Operating systems tested on:
macOS