[Bug 210963] lang/python27 failed to compile with security/openssl

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Sun Jul 10 12:13:13 UTC 2016


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=210963

            Bug ID: 210963
           Summary: lang/python27 failed to compile with security/openssl
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: freebsd-ports-bugs at FreeBSD.org
          Reporter: loader at FreeBSD.org
                CC: dinoex at FreeBSD.org, python at FreeBSD.org
                CC: dinoex at FreeBSD.org, python at FreeBSD.org

I got this error message while compiling lang/python27 with
DEFAULT_VERSIONS+=ssl=openssl in make.conf
It looks like it's using the OpenSSL in base.

building '_ssl' extension
cc -fPIC -fno-strict-aliasing -O -pipe -fno-strict-aliasing -DNDEBUG -I.
-IInclude -I./Include -I/usr/local/include
-I/usr/ports/lang/python27/work/Python-2.7.12/Include
-I/usr/ports/lang/python27/work/Python-2.7.12 -c
/usr/ports/lang/python27/work/Python-2.7.12/Modules/_ssl.c -o
build/temp.freebsd-11.0-CURRENT-arm-2.7/usr/ports/lang/python27/work/Python-2.7.12/Modules/_ssl.o
In file included from
/usr/ports/lang/python27/work/Python-2.7.12/Modules/_ssl.c:47:
In file included from
/usr/ports/lang/python27/work/Python-2.7.12/Modules/socketmodule.h:59:
In file included from /usr/include/bluetooth.h:51:
/usr/include/netgraph/bluetooth/include/ng_btsocket.h:246:2: warning: "Make
sure new member of
      socket address initialized" [-W#warnings]
#warning "Make sure new member of socket address initialized"
 ^
1 warning generated.
cc -shared -lpthread -Wl,-rpath=/usr/lib:/usr/local/lib -L/usr/local/lib
-Wl,-rpath,/usr/local/lib -lpthread -Wl,-rpath=/usr/lib:/usr/local/lib
-L/usr/local/lib -Wl,-rpath,/usr/local/lib -O -pipe -fno-strict-aliasing
-I/usr/local/include -I/usr/local/include
build/temp.freebsd-11.0-CURRENT-arm-2.7/usr/ports/lang/python27/work/Python-2.7.12/Modules/_ssl.o
-L/usr/local/lib -L. -lssl -lcrypto -lpython2.7 -o
build/lib.freebsd-11.0-CURRENT-arm-2.7/_ssl.so
*** WARNING: renaming "_ssl" since importing it failed:
build/lib.freebsd-11.0-CURRENT-arm-2.7/_ssl.so: Undefined symbol "SSLv2_method"


# ldd work/Python-2.7.12/build/lib.freebsd-11.0-CURRENT-arm-2.7/_ssl_failed.so 
work/Python-2.7.12/build/lib.freebsd-11.0-CURRENT-arm-2.7/_ssl_failed.so:
        libthr.so.3 => /lib/libthr.so.3 (0x20068000)
        libssl.so.8 => /usr/lib/libssl.so.8 (0x20095000)
        libcrypto.so.8 => /usr/local/lib/libcrypto.so.8 (0x20800000)
        libpython2.7.so.1 => /usr/local/lib/libpython2.7.so.1 (0x20a00000)
        libc.so.7 => /lib/libc.so.7 (0x20100000)
        libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x2027c000)
        libintl.so.8 => /usr/local/lib/libintl.so.8 (0x2028b000)
        libutil.so.9 => /lib/libutil.so.9 (0x2029c000)
        libm.so.5 => /lib/libm.so.5 (0x202b5000)

# make -V LDFLAGS
 -lpthread -Wl,-rpath=/usr/lib:/usr/local/lib -L/usr/local/lib
-Wl,-rpath,/usr/local/lib



a temporary workaround is to let ssl set the LDFLAGS before ncurses:

Index: Makefile
===================================================================
--- Makefile    (revision 418235)
+++ Makefile    (working copy)
@@ -12,7 +12,7 @@

 LICENSE=       PSFL

-USES=          cpe ncurses pkgconfig readline ssl tar:xz
+USES=          cpe ssl ncurses pkgconfig readline tar:xz
 USE_LDCONFIG=  yes
 GNU_CONFIGURE= yes

# make -V LDFLAGS
 -lpthread -Wl,-rpath,/usr/local/lib -Wl,-rpath=/usr/lib:/usr/local/lib
-L/usr/local/lib

# ldd work/Python-2.7.12/build/lib.freebsd-11.0-CURRENT-arm-2.7/_ssl.so 
work/Python-2.7.12/build/lib.freebsd-11.0-CURRENT-arm-2.7/_ssl.so:
        libthr.so.3 => /lib/libthr.so.3 (0x20068000)
        libssl.so.8 => /usr/local/lib/libssl.so.8 (0x20095000)
        libcrypto.so.8 => /usr/local/lib/libcrypto.so.8 (0x20800000)
        libpython2.7.so.1 => /usr/local/lib/libpython2.7.so.1 (0x20a00000)
        libc.so.7 => /lib/libc.so.7 (0x20100000)
        libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x2027c000)
        libintl.so.8 => /usr/local/lib/libintl.so.8 (0x2028b000)
        libutil.so.9 => /lib/libutil.so.9 (0x2029c000)
        libm.so.5 => /lib/libm.so.5 (0x202b5000)

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-ports-bugs mailing list