Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 10 Jul 2016 12:13:12 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-ports-bugs@FreeBSD.org
Subject:   [Bug 210963] lang/python27 failed to compile with security/openssl
Message-ID:  <bug-210963-13@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D210963

            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@FreeBSD.org
          Reporter: loader@FreeBSD.org
                CC: dinoex@FreeBSD.org, python@FreeBSD.org
                CC: dinoex@FreeBSD.org, python@FreeBSD.org

I got this error message while compiling lang/python27 with
DEFAULT_VERSIONS+=3Dssl=3Dopenssl 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=3D/usr/lib:/usr/local/lib -L/usr/local/lib
-Wl,-rpath,/usr/local/lib -lpthread -Wl,-rpath=3D/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_met=
hod"


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

# make -V LDFLAGS
 -lpthread -Wl,-rpath=3D/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
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- Makefile    (revision 418235)
+++ Makefile    (working copy)
@@ -12,7 +12,7 @@

 LICENSE=3D       PSFL

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

# make -V LDFLAGS
 -lpthread -Wl,-rpath,/usr/local/lib -Wl,-rpath=3D/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=20
work/Python-2.7.12/build/lib.freebsd-11.0-CURRENT-arm-2.7/_ssl.so:
        libthr.so.3 =3D> /lib/libthr.so.3 (0x20068000)
        libssl.so.8 =3D> /usr/local/lib/libssl.so.8 (0x20095000)
        libcrypto.so.8 =3D> /usr/local/lib/libcrypto.so.8 (0x20800000)
        libpython2.7.so.1 =3D> /usr/local/lib/libpython2.7.so.1 (0x20a00000)
        libc.so.7 =3D> /lib/libc.so.7 (0x20100000)
        libgcc_s.so.1 =3D> /lib/libgcc_s.so.1 (0x2027c000)
        libintl.so.8 =3D> /usr/local/lib/libintl.so.8 (0x2028b000)
        libutil.so.9 =3D> /lib/libutil.so.9 (0x2029c000)
        libm.so.5 =3D> /lib/libm.so.5 (0x202b5000)

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-210963-13>