Bug 199826 - lang/python27 fails to build with libressl
Summary: lang/python27 fails to build with libressl
Status: Closed DUPLICATE of bug 192511
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: amd64 Any
: --- Affects Many People
Assignee: freebsd-python (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-05-01 00:54 UTC by Ivan Rozhuk
Modified: 2015-05-12 19:10 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 Ivan Rozhuk 2015-05-01 00:54:04 UTC
I'm try to replace OpenSSL to LibreSSL and rebuild all affected ports.

running install
running build
running build_ext
building dbm using ndbm
INFO: Can't locate Tcl/Tk libs and/or headers
building '_ssl' extension
clang -fPIC -fno-strict-aliasing -O2 -msse -msse2 -msse3 -funroll-loops -fno-tree-vectorize -pipe -fstack-protector -fno-strict-aliasing -DNDEBUG -I. -IInclude -I./Include -I/usr/local/include -I/tmp/ports/usr/ports/lang/python27/work/Python-2.7.9/Include -I/tmp/ports/usr/ports/lang/python27/work/Python-2.7.9 -c /tmp/ports/usr/ports/lang/python27/work/Python-2.7.9/Modules/_ssl.c -o build/temp.freebsd-10.1-STABLE-amd64-2.7/tmp/ports/usr/ports/lang/python27/work/Python-2.7.9/Modules/_ssl.o
/tmp/ports/usr/ports/lang/python27/work/Python-2.7.9/Modules/_ssl.c:3313:13: warning: implicit declaration of function 'RAND_egd' is
      invalid in C99 [-Wimplicit-function-declaration]
    bytes = RAND_egd(PyString_AS_STRING(arg));
            ^
1 warning generated.
clang -shared -lpthread -Wl,-rpath,/usr/local/lib -Wl,-rpath=/usr/lib:/usr/local/lib -fstack-protector -lpthread -Wl,-rpath,/usr/local/lib -Wl,-rpath=/usr/lib:/usr/local/lib -fstack-protector -O2 -msse -msse2 -msse3 -funroll-loops -fno-tree-vectorize -pipe -fstack-protector -fno-strict-aliasing -I/usr/local/include build/temp.freebsd-10.1-STABLE-amd64-2.7/tmp/ports/usr/ports/lang/python27/work/Python-2.7.9/Modules/_ssl.o -L/usr/local/lib -L. -lssl -lcrypto -lpython2.7 -o build/lib.freebsd-10.1-STABLE-amd64-2.7/_ssl.so
*** WARNING: renaming "_ssl" since importing it failed: build/lib.freebsd-10.1-STABLE-amd64-2.7/_ssl.so: Undefined symbol "RAND_egd"

Python build finished, but the necessary bits to build these modules were not found:
_bsddb             _tkinter           dl              
imageop            linuxaudiodev      spwd            
sunaudiodev                                           
To find the necessary bits, look in setup.py in detect_modules() for the module's name.


Failed to build these modules:
_ssl                                                  

running build_scripts
copying and adjusting /tmp/ports/usr/ports/lang/python27/work/Python-2.7.9/Tools/scripts/pydoc -> build/scripts-2.7
Comment 2 Johannes Jost Meixner freebsd_committer freebsd_triage 2015-05-12 18:35:06 UTC
Hi, we have another PR with fixes that eliminate all these buildproblems.

Marking this one as dupe.

*** This bug has been marked as a duplicate of bug 192551 ***
Comment 3 Johannes Jost Meixner freebsd_committer freebsd_triage 2015-05-12 18:36:17 UTC
Wrong dupe. My bad.

*** This bug has been marked as a duplicate of bug 192511 ***
Comment 4 Bernard Spil freebsd_committer freebsd_triage 2015-05-12 19:10:02 UTC
Rozhuk, you might want to check https://wiki.freebsd.org/LibreSSL if you want to use LibreSSL, most issues have been resolved.