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:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Jun 11 19:20:00 +0000 2015
>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.

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-2014 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.