NetBSD Problem Report #49966

From  Thu Jun 11 19:19:52 2015
Return-Path: <>
Received: from ( [])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(Client CN "", Issuer "Postmaster" (verified OK))
	by (Postfix) with ESMTPS id 381E9A6562
	for <>; Thu, 11 Jun 2015 19:19:52 +0000 (UTC)
Message-Id: <>
Date: Thu, 11 Jun 2015 19:19:50 +0000 (UTC)
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
SunOS niblet 5.10 Generic_150401-11 i86pc i386 i86pc

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/ into server: httpd: fatal: relocation error: file /usr/pkg/lib/httpd/ symbol get_dh2048: referenced symbol not found
Build the apache22 package without an indent program available, install it, and try to start it with SSL enabled.
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:,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2014 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.