From owner-freebsd-bugs@FreeBSD.ORG Wed Oct 31 02:40:01 2007 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4CABF16A417 for ; Wed, 31 Oct 2007 02:40:01 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 28FF513C4B2 for ; Wed, 31 Oct 2007 02:40:01 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.1/8.14.1) with ESMTP id l9V2e19n003587 for ; Wed, 31 Oct 2007 02:40:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.1/8.14.1/Submit) id l9V2e04b003586; Wed, 31 Oct 2007 02:40:00 GMT (envelope-from gnats) Resent-Date: Wed, 31 Oct 2007 02:40:00 GMT Resent-Message-Id: <200710310240.l9V2e04b003586@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Marcin Wisnicki Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8EABC16A419 for ; Wed, 31 Oct 2007 02:38:27 +0000 (UTC) (envelope-from mwisnicki@gmail.com) Received: from hu-out-0506.google.com (hu-out-0506.google.com [72.14.214.225]) by mx1.freebsd.org (Postfix) with ESMTP id 095B113C4B5 for ; Wed, 31 Oct 2007 02:38:26 +0000 (UTC) (envelope-from mwisnicki@gmail.com) Received: by hu-out-0506.google.com with SMTP id 28so1300193hub for ; Tue, 30 Oct 2007 19:38:12 -0700 (PDT) Received: by 10.67.88.4 with SMTP id q4mr728089ugl.1193798292488; Tue, 30 Oct 2007 19:38:12 -0700 (PDT) Received: from ghost.pnet.one.pl ( [84.40.242.20]) by mx.google.com with ESMTPS id q40sm2698104ugc.2007.10.30.19.38.10 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 30 Oct 2007 19:38:11 -0700 (PDT) Received: by ghost.pnet.one.pl (sSMTP sendmail emulation); Wed, 31 Oct 2007 03:38:08 +0100 Message-Id: <4727ea93.2876420a.5a37.738b@mx.google.com> Date: Wed, 31 Oct 2007 03:38:08 +0100 From: Marcin Wisnicki Sender: =?UTF-8?B?TWFyY2luIFdpxZtuaWNraQ==?= To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: Subject: bin/117709: Base openssl does not define OPENSSL_THREADS X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Marcin Wisnicki List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 31 Oct 2007 02:40:01 -0000 >Number: 117709 >Category: bin >Synopsis: Base openssl does not define OPENSSL_THREADS >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Wed Oct 31 02:40:00 UTC 2007 >Closed-Date: >Last-Modified: >Originator: Marcin Wisnicki >Release: FreeBSD 6.2-STABLE i386 >Organization: >Environment: System: FreeBSD ghost.pnet.one.pl 6.2-STABLE FreeBSD 6.2-STABLE #9: Sun Sep 9 04:53:53 CEST 2007 root@ghost.pnet.one.pl:/home/obj/usr/src/sys/SERWER i386 RELENG_6 >Description: Version of OpenSSL in base system of RELENG_[456] lacks definition of OPENSSL_THREADS, and only defines THREADS. It was previously discussed in 2003 in this thread: http://docs.freebsd.org/cgi/getmsg.cgi?fetch=473927+0+archive/2003/freebsd-current/20030302.freebsd-current This will fix openssl detection in some ports, most notably in mail-notification-4.1 which i'm going to submit right now with a hack to support older freebsd releases. >How-To-Repeat: >Fix: Apply following patch, relative to /usr/src/secure/lib or MFC openssl --- openssl-threads.patch begins here --- diff -ruN libcrypto.orig/opensslconf-alpha.h libcrypto/opensslconf-alpha.h --- libcrypto.orig/opensslconf-alpha.h 2003-01-29 02:06:15.000000000 +0100 +++ libcrypto/opensslconf-alpha.h 2007-10-31 03:12:57.000000000 +0100 @@ -12,6 +12,9 @@ # define THREADS # endif #endif +#ifndef OPENSSL_THREADS +# define OPENSSL_THREADS +#endif #ifdef OPENSSL_OTHER_DEFINES # ifndef NO_ASM # define NO_ASM diff -ruN libcrypto.orig/opensslconf-amd64.h libcrypto/opensslconf-amd64.h --- libcrypto.orig/opensslconf-amd64.h 2003-01-29 02:06:15.000000000 +0100 +++ libcrypto/opensslconf-amd64.h 2007-10-31 03:13:13.000000000 +0100 @@ -12,6 +12,9 @@ # define THREADS # endif #endif +#ifndef OPENSSL_THREADS +# define OPENSSL_THREADS +#endif #ifdef OPENSSL_OTHER_DEFINES # ifndef NO_ASM # define NO_ASM diff -ruN libcrypto.orig/opensslconf-arm.h libcrypto/opensslconf-arm.h --- libcrypto.orig/opensslconf-arm.h 2004-05-14 14:26:51.000000000 +0200 +++ libcrypto/opensslconf-arm.h 2007-10-31 03:13:31.000000000 +0100 @@ -12,6 +12,9 @@ # define THREADS # endif #endif +#ifndef OPENSSL_THREADS +# define OPENSSL_THREADS +#endif #ifdef OPENSSL_OTHER_DEFINES # ifndef NO_ASM # define NO_ASM diff -ruN libcrypto.orig/opensslconf-i386.h libcrypto/opensslconf-i386.h --- libcrypto.orig/opensslconf-i386.h 2003-01-29 02:06:15.000000000 +0100 +++ libcrypto/opensslconf-i386.h 2007-10-31 03:12:43.000000000 +0100 @@ -12,6 +12,9 @@ # define THREADS # endif #endif +#ifndef OPENSSL_THREADS +# define OPENSSL_THREADS +#endif #ifdef OPENSSL_OTHER_DEFINES # ifndef NO_ASM # define NO_ASM diff -ruN libcrypto.orig/opensslconf-ia64.h libcrypto/opensslconf-ia64.h --- libcrypto.orig/opensslconf-ia64.h 2003-01-29 02:06:15.000000000 +0100 +++ libcrypto/opensslconf-ia64.h 2007-10-31 03:13:48.000000000 +0100 @@ -12,6 +12,9 @@ # define THREADS # endif #endif +#ifndef OPENSSL_THREADS +# define OPENSSL_THREADS +#endif #ifdef OPENSSL_OTHER_DEFINES # ifndef NO_ASM # define NO_ASM diff -ruN libcrypto.orig/opensslconf-powerpc.h libcrypto/opensslconf-powerpc.h --- libcrypto.orig/opensslconf-powerpc.h 2003-01-29 02:06:15.000000000 +0100 +++ libcrypto/opensslconf-powerpc.h 2007-10-31 03:14:44.000000000 +0100 @@ -12,6 +12,9 @@ # define THREADS # endif #endif +#ifndef OPENSSL_THREADS +# define OPENSSL_THREADS +#endif #ifdef OPENSSL_OTHER_DEFINES # ifndef NO_ASM # define NO_ASM diff -ruN libcrypto.orig/opensslconf-sparc64.h libcrypto/opensslconf-sparc64.h --- libcrypto.orig/opensslconf-sparc64.h 2003-01-29 02:06:15.000000000 +0100 +++ libcrypto/opensslconf-sparc64.h 2007-10-31 03:14:58.000000000 +0100 @@ -12,6 +12,9 @@ # define THREADS # endif #endif +#ifndef OPENSSL_THREADS +# define OPENSSL_THREADS +#endif #ifdef OPENSSL_OTHER_DEFINES # ifndef NO_ASM # define NO_ASM --- openssl-threads.patch ends here --- >Release-Note: >Audit-Trail: >Unformatted: