[issue34028] Python 3.7.0 wont compile with SSL Support 1.1.0 > alledged missing X509_VERIFY_PARAM_set1_host() support

2019-10-23 Thread Malek Ghantous


Malek Ghantous  added the comment:

I'm having a similar problem.  I'm trying to compile on Red Hat 6.9 using a 
locally installed OpenSSL library.  I've tried everything here (I think) and I 
still get this error:

checking for openssl/ssl.h in /home/mf/dp/mpma/ghantousm/apptron/local/... yes  
 
checking whether compiling and linking against OpenSSL works... no  
 
checking for --with-ssl-default-suites... python
 

I've ensured the libssl.* files are all present or linked to in 
/home/mf/dp/mpma/ghantousm/apptron/local/lib and .../lib64, the include files 
are present, the OpenSSL build seemed fine, and I compiled version 1.1.1d of 
openssl.  I've tried setting LDFLAGS and rpath and still no dice; the setup.py 
module doesn't seem to have any hard-coded paths so I'm really at a loss to 
understand what is wrong.  I've tried both versions 3.8.0 and 3.7.3 of python 
with the --with-openssl=/home/mf/dp/mpma/ghantousm/apptron/local option set, 
and version 3.6.8 (which doesn't accept any ssl related options).

This bug seems to have been preserved for a number of versions, so I'd like to 
help squash it if I can, but not sure where to go to from here.  I notice that 
some of the reports here suggest that they've had success with work-arounds, 
but as I stated none of them seem to work for me and I'm unable to compile with 
ssl support.

--
nosy: +malektronic
type:  -> compile error
versions: +Python 3.8 -Python 3.7

___
Python tracker 
<https://bugs.python.org/issue34028>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue34028] Python 3.7.0 wont compile with SSL Support 1.1.0 > alledged missing X509_VERIFY_PARAM_set1_host() support

2019-10-24 Thread Malek Ghantous


Malek Ghantous  added the comment:

Thanks for your responses. Yum is not an option as I'm on a machine without 
root privileges.  

OK, so I have to be a bit contrite here, I tried everything you suggested, but 
in the end the solution goes back to this comment, and the LDFLAGS environment 
variable:

https://bugs.python.org/issue34028?@ok_message=msg%20355232%20cr%C3%A9%C3%A9%0Aissue%2034028%20message_count%2C%20type%2C%20versions%2C%20curieux%2C%20nosy_count%2C%20messages%20modifi%C3%A9%28s%29%20avec%20succ%C3%A8s&@template=item#msg339455

I think I was using the wrong compiler when I tried that solution the first 
time.  So I'm sorry about that.  

But while we're here, I may as well ask if there isn't another way to do this, 
without having recourse to the environment variable.  Is there a way to specify 
these flags using just the configure script?  Based on something I read 
somewhere on the web, I generally prefer to steer clear of setting environment 
variables, though perhaps I needn't be so reluctant.  Incidentally, the 
environment variables OPENSSL_LDFLAGS etc as suggested in config.log (thanks 
for that, I wouldn't have thought to look there) do not appear to work.

--

___
Python tracker 
<https://bugs.python.org/issue34028>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com