NetBSD Problem Report #49966

From www@NetBSD.org  Thu Jun 11 19:19:52 2015
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [149.20.53.66])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(Client CN "mail.netbsd.org", Issuer "Postmaster NetBSD.org" (verified OK))
	by mollari.NetBSD.org (Postfix) with ESMTPS id 381E9A6562
	for <gnats-bugs@gnats.NetBSD.org>; Thu, 11 Jun 2015 19:19:52 +0000 (UTC)
Message-Id: <20150611191950.F02E4A65BA@mollari.NetBSD.org>
Date: Thu, 11 Jun 2015 19:19:50 +0000 (UTC)
From: bldewolf@cpp.edu
Reply-To: bldewolf@cpp.edu
To: gnats-bugs@NetBSD.org
Subject: www/apache22 needs indent program for generating DH keys
X-Send-Pr-Version: www-1.0

>Number:         49966
>Category:       pkg
>Synopsis:       www/apache22 needs indent program for generating DH keys
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Jun 11 19:20:00 +0000 2015
>Closed-Date:    Sat Jul 07 13:24:36 +0000 2018
>Last-Modified:  Sat Jul 07 13:24:36 +0000 2018
>Originator:     Brian De Wolf
>Release:        pkgsrc-2015Q1
>Organization:
>Environment:
SunOS niblet 5.10 Generic_150401-11 i86pc i386 i86pc

>Description:
Recently the apache22 package Makefile was modified to run an embedded perl script (modules/ssl/ssl_engine_dh.c) in the apache tarball that generates new DH keys.  The error occurs when the script tries to push output through shell pipes through the programs indent and expand.  If these programs do not exist (my system doesn't have indent), the file will not be properly generated and the SSL module will fail to load at runtime.  The error it prints is:

httpd: Syntax error on line 19 of /usr/pkg/etc/httpd/httpd.conf: Cannot load /usr/pkg/lib/httpd/mod_ssl.so into server: ld.so.1: httpd: fatal: relocation error: file /usr/pkg/lib/httpd/mod_ssl.so: symbol get_dh2048: referenced symbol not found
>How-To-Repeat:
Build the apache22 package without an indent program available, install it, and try to start it with SSL enabled.
>Fix:
patches/patch-modules_ssl_ssl__engine__dh.c already modifies the problematic lines.  I was able to build and run successfully by modifying this patch to remove the references to indent.

>Release-Note:

>Audit-Trail:

State-Changed-From-To: open->closed
State-Changed-By: bsiegert@NetBSD.org
State-Changed-When: Sat, 07 Jul 2018 13:24:36 +0000
State-Changed-Why:
apache22 has been removed


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.43 2018/01/16 07:36:43 maya Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2017 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.