NetBSD Problem Report #46655

From htodd@chris.i8u.org  Wed Jul  4 21:19:36 2012
Return-Path: <htodd@chris.i8u.org>
Received: from mail.netbsd.org (mail.netbsd.org [149.20.53.66])
	by www.NetBSD.org (Postfix) with ESMTP id CEBC263B85F
	for <gnats-bugs@gnats.NetBSD.org>; Wed,  4 Jul 2012 21:19:35 +0000 (UTC)
Message-Id: <201207042025.q64KPD0k007685@chris.i8u.org>
Date: Wed, 4 Jul 2012 13:25:13 -0700 (PDT)
From: htodd@twofifty.com
Reply-To: htodd@twofifty.com
To: gnats-bugs@gnats.NetBSD.org
Subject: apache24 doesn't start on netbsd6b2-amd64
X-Send-Pr-Version: 3.95

>Number:         46655
>Category:       pkg
>Synopsis:       apache24 doesn't start on netbsd6b2-amd64
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    ryoon
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Jul 04 21:20:04 +0000 2012
>Closed-Date:    Tue Jul 10 19:54:34 +0000 2012
>Last-Modified:  Tue Jul 10 19:54:34 +0000 2012
>Originator:     Hisashi Todd Fujinaka
>Release:        NetBSD 6.0_BETA2
>Organization:
None
>Environment:


System: NetBSD chris 6.0_BETA2 NetBSD 6.0_BETA2 (CHRIS) #8: Sat Jun 30 16:22:47 PDT 2012 htodd@chris:/usr/obj/netbsd-6/amd64/objdir/usr/src/sys/arch/amd64/compile/CHRIS amd64
Architecture: x86_64
Machine: amd64
>Description:
trying to start apache:
htodd@chris:~ > /etc/rc.d/apache start
Starting apache.
httpd: Syntax error on line 96 of /usr/pkg/etc/httpd/httpd.conf: Cannot load /usr/pkg/lib/httpd/mod_ssl.so into server: /usr/pkg/lib/httpd/mod_ssl.so: Undefined PLT symbol "SSL_SESSION_get_compress_id" (symnum = 69)

And looking at the build logs:
--- ssl_engine_vars.slo ---
ssl_engine_vars.c: In function 'ssl_var_lookup_ssl_compress_meth':
ssl_engine_vars.c:971:9: warning: implicit declaration of function 'SSL_SESSION_get_compress_id'

>How-To-Repeat:

>Fix:


>Release-Note:

>Audit-Trail:
From: Ryo ONODERA <ryo_on@yk.rim.or.jp>
To: gnats-bugs@NetBSD.org, htodd@twofifty.com
Cc: 
Subject: Re: pkg/46655: apache24 doesn't start on netbsd6b2-amd64
Date: Thu, 05 Jul 2012 12:38:39 +0900 (JST)

 ----Next_Part(Thu_Jul__5_12_38_39_2012_841)--
 Content-Type: Text/Plain; charset=us-ascii
 Content-Transfer-Encoding: 7bit

 Hi,

 NetBSD current and 6.0's OpenSSL lacks some functions.
 Probably latest OpenSSL-stable has the functions.

 Attached patch is workaround.
 Please try it.

 Thank you.

 -- 
 Ryo ONODERA // ryo_on@yk.rim.or.jp
 PGP fingerprint = 82A2 DC91 76E0 A10A 8ABB  FD1B F404 27FA C7D1 15F3

 ----Next_Part(Thu_Jul__5_12_38_39_2012_841)--
 Content-Type: Text/Plain; charset=us-ascii
 Content-Transfer-Encoding: 7bit
 Content-Disposition: inline; filename="patch-modules_ssl_ssl__private.h"

 $NetBSD$

 NetBSD current and 6.0's OpenSSL have some incompatibilities.

 --- modules/ssl/ssl_private.h.orig	2012-04-03 12:37:57.000000000 +0000
 +++ modules/ssl/ssl_private.h
 @@ -83,7 +83,7 @@

  /* OpenSSL headers */
  #include <openssl/opensslv.h>
 -#if (OPENSSL_VERSION_NUMBER >= 0x10001000)
 +#if (OPENSSL_VERSION_NUMBER >= 0x10001000) && !defined(__NetBSD__)
  /* must be defined before including ssl.h */
  #define OPENSSL_NO_SSL_INTERN
  #endif

 ----Next_Part(Thu_Jul__5_12_38_39_2012_841)----


From: "OBATA Akio" <obache@netbsd.org>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: pkg/46655: apache24 doesn't start on netbsd6b2-amd64
Date: Thu, 05 Jul 2012 15:45:53 +0900

 On Thu, 05 Jul 2012 12:40:02 +0900, Ryo ONODERA <ryo_on@yk.rim.or.jp> wrote:

 >  NetBSD current and 6.0's OpenSSL lacks some functions.
 >  Probably latest OpenSSL-stable has the functions.

 OpenSSL in NetBSD current/6.0 is pre-release snapshot of 1.0.1-stable branch,
 so some API was changed before 1.0.1 release (include beta release) after the snapshot point.

    http://cvs.openssl.org/chngview?cn=21865

 So this issue will be affect to any platforms using OpenSSL-1.0.1-stable branch before beta1 release.

 >  ----Next_Part(Thu_Jul__5_12_38_39_2012_841)--
 >  Content-Type: Text/Plain; charset=us-ascii
 >  Content-Transfer-Encoding: 7bit
 >  Content-Disposition: inline; filename="patch-modules_ssl_ssl__private.h"
 > $NetBSD$
 > NetBSD current and 6.0's OpenSSL have some incompatibilities.
 > --- modules/ssl/ssl_private.h.orig	2012-04-03 12:37:57.000000000 +0000
 >  +++ modules/ssl/ssl_private.h
 >  @@ -83,7 +83,7 @@
 >  /* OpenSSL headers */
 >   #include <openssl/opensslv.h>
 >  -#if (OPENSSL_VERSION_NUMBER >= 0x10001000)
 >  +#if (OPENSSL_VERSION_NUMBER >= 0x10001000) && !defined(__NetBSD__)
 >   /* must be defined before including ssl.h */
 >   #define OPENSSL_NO_SSL_INTERN
 >   #endif
 > ----Next_Part(Thu_Jul__5_12_38_39_2012_841)----

 So please try to use 0x10001001 for OPENSSL_VERSION_NUMBER check instead.
 (and send to upstream)

 -- 
 OBATA Akio / obache@NetBSD.org

From: Hisashi T Fujinaka <htodd@twofifty.com>
To: gnats-bugs@NetBSD.org
Cc: pkg-manager@NetBSD.org, gnats-admin@NetBSD.org, pkgsrc-bugs@NetBSD.org
Subject: Re: pkg/46655: apache24 doesn't start on netbsd6b2-amd64
Date: Thu, 5 Jul 2012 00:00:28 -0700 (PDT)

 How do I use the patch with pkgsrc?

 -- 
 Hisashi T Fujinaka - htodd@twofifty.com
 BSEE(6/86) + BSChem(3/95) + BAEnglish(8/95) + MSCS(8/03) + $2.50 = latte

From: "OBATA Akio" <obache@netbsd.org>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: pkg/46655: apache24 doesn't start on netbsd6b2-amd64
Date: Thu, 05 Jul 2012 16:16:31 +0900

 On Thu, 05 Jul 2012 16:05:03 +0900, Hisashi T Fujinaka <htodd@twofifty.com> wrote:

 >  How do I use the patch with pkgsrc?

 Put the patch in www/apache24/patches and "make mpi", then install in the usual manner.
 Alternatively, apply changes by hands after "make patch", then...

 -- 
 OBATA Akio / obache@NetBSD.org

Responsible-Changed-From-To: pkg-manager->ryoon
Responsible-Changed-By: ryoon@NetBSD.org
Responsible-Changed-When: Thu, 05 Jul 2012 12:41:01 +0000
Responsible-Changed-Why:
I take this.


State-Changed-From-To: open->feedback
State-Changed-By: ryoon@NetBSD.org
State-Changed-When: Thu, 05 Jul 2012 12:51:26 +0000
State-Changed-Why:
Please try apache-2.4.2nb2.


From: "Ryo ONODERA" <ryoon@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/46655 CVS commit: pkgsrc/www/apache24
Date: Thu, 5 Jul 2012 12:50:44 +0000

 Module Name:	pkgsrc
 Committed By:	ryoon
 Date:		Thu Jul  5 12:50:44 UTC 2012

 Modified Files:
 	pkgsrc/www/apache24: Makefile distinfo
 Added Files:
 	pkgsrc/www/apache24/patches: patch-modules_ssl_ssl__private.h

 Log Message:
 Bump PKGREVISION

 Fix PR pkg/46655.

 With NetBSD current and 6.0's OpenSSL, OPENSSL_NO_SSL_INTERN should not
 be defined, due to it lacks some functions.
 Exclude version 0x10001000 from OPENSSL_NO_SSL_INTERN definition.


 To generate a diff of this commit:
 cvs rdiff -u -r1.7 -r1.8 pkgsrc/www/apache24/Makefile
 cvs rdiff -u -r1.3 -r1.4 pkgsrc/www/apache24/distinfo
 cvs rdiff -u -r0 -r1.1 \
     pkgsrc/www/apache24/patches/patch-modules_ssl_ssl__private.h

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

From: Hisashi T Fujinaka <htodd@twofifty.com>
To: gnats-bugs@NetBSD.org
Cc: ryoon@NetBSD.org, pkgsrc-bugs@NetBSD.org, gnats-admin@NetBSD.org,
        ryoon@NetBSD.org
Subject: Re: pkg/46655 (apache24 doesn't start on netbsd6b2-amd64)
Date: Thu, 5 Jul 2012 10:07:39 -0700 (PDT)

 This appears to work. Can you request a pullup to the 2012Q2 branch?

 Thanks.

 -- 
 Hisashi T Fujinaka - htodd@twofifty.com
 BSEE(6/86) + BSChem(3/95) + BAEnglish(8/95) + MSCS(8/03) + $2.50 = latte

State-Changed-From-To: feedback->pending-pullups
State-Changed-By: ryoon@NetBSD.org
State-Changed-When: Fri, 06 Jul 2012 16:52:10 +0000
State-Changed-Why:
pullup-pkgsrc #3853


From: "Matthias Scheler" <tron@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/46655 CVS commit: [pkgsrc-2012Q2] pkgsrc/www/apache24
Date: Sat, 7 Jul 2012 17:59:52 +0000

 Module Name:	pkgsrc
 Committed By:	tron
 Date:		Sat Jul  7 17:59:52 UTC 2012

 Modified Files:
 	pkgsrc/www/apache24 [pkgsrc-2012Q2]: Makefile distinfo
 Added Files:
 	pkgsrc/www/apache24/patches [pkgsrc-2012Q2]:
 	    patch-modules_ssl_ssl__private.h

 Log Message:
 Pullup ticket #3853 - requested by ryoon
 www/apache24: bug fix

 Revisions pulled up:
 - www/apache24/Makefile                                         1.8
 - www/apache24/distinfo                                         1.4
 - www/apache24/patches/patch-modules_ssl_ssl__private.h         1.1

 ---
    Module Name:	pkgsrc
    Committed By:	ryoon
    Date:		Thu Jul  5 12:50:44 UTC 2012

    Modified Files:
    	pkgsrc/www/apache24: Makefile distinfo
    Added Files:
    	pkgsrc/www/apache24/patches: patch-modules_ssl_ssl__private.h

    Log Message:
    Bump PKGREVISION

    Fix PR pkg/46655.

    With NetBSD current and 6.0's OpenSSL, OPENSSL_NO_SSL_INTERN should not
    be defined, due to it lacks some functions.
    Exclude version 0x10001000 from OPENSSL_NO_SSL_INTERN definition.


 To generate a diff of this commit:
 cvs rdiff -u -r1.7 -r1.7.2.1 pkgsrc/www/apache24/Makefile
 cvs rdiff -u -r1.3 -r1.3.2.1 pkgsrc/www/apache24/distinfo
 cvs rdiff -u -r0 -r1.2.2.2 \
     pkgsrc/www/apache24/patches/patch-modules_ssl_ssl__private.h

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

State-Changed-From-To: pending-pullups->closed
State-Changed-By: dholland@NetBSD.org
State-Changed-When: Tue, 10 Jul 2012 19:54:34 +0000
State-Changed-Why:
pulled up.


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.