From owner-freebsd-ports-bugs@freebsd.org Sun Jul 10 12:13:13 2016 Return-Path: Delivered-To: freebsd-ports-bugs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 7E604B83D97 for ; Sun, 10 Jul 2016 12:13:13 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 635C11737 for ; Sun, 10 Jul 2016 12:13:13 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id u6ACDD7S012780 for ; Sun, 10 Jul 2016 12:13:13 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-ports-bugs@FreeBSD.org Subject: [Bug 210963] lang/python27 failed to compile with security/openssl Date: Sun, 10 Jul 2016 12:13:12 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: loader@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-ports-bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter cc Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 10 Jul 2016 12:13:13 -0000 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.=