NetBSD Problem Report #39766

From riastradh@slate.localdomain  Sun Oct 19 03:43:46 2008
Return-Path: <riastradh@slate.localdomain>
Received: from ( [])
	by (Postfix) with ESMTP id AC3C763B93C
	for <>; Sun, 19 Oct 2008 03:43:46 +0000 (UTC)
Message-Id: <20081019024443.1576B76CBE@slate.localdomain>
Date: Sun, 19 Oct 2008 02:44:42 +0000 (UTC)
From: Taylor R Campbell <>
Reply-To: Taylor R Campbell <>
Subject: security/mhash installs <mhash.h> that cooperates badly with autoconf
X-Send-Pr-Version: 3.95

>Number:         39766
>Category:       pkg
>Synopsis:       security/mhash installs <mhash.h> that cooperates badly with autoconf
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Oct 19 03:45:00 +0000 2008
>Closed-Date:    Thu Mar 05 13:36:46 +0000 2015
>Last-Modified:  Thu Mar 05 13:36:46 +0000 2015
>Originator:     Taylor R Campbell <>
>Release:        NetBSD 4.0_STABLE
System: NetBSD slate.localdomain 4.0_STABLE NetBSD 4.0_STABLE (RIABWI) #11: Mon Sep 22 15:53:59 UTC 2008 riastradh@slate.localdomain:/home/riastradh/netbsd/4/obj/sys/arch/macppc/compile/RIABWI macppc
Architecture: powerpc
Machine: macppc

	The package security/mhash installs a file in
	/usr/pkg/include/mhash.h that has the effect of including
	mhash's config.h generated by autoconf, which is intended for
	use internal to the program of which config.h is a part.  Any
	other program that uses autoconf will have trouble reconciling
	mhash's config.h with its own config.h, since they define many
	macros in common, such as PACKAGE_NAME and PACKAGE_VERSION.


	Install security/mhash and try to build a C program that uses
	autoconf and includes <mhash.h>.


	Patch /usr/pkg/include/mhash.h to strike out the line


	which has no useful effects of which I am aware for programs
	outside of mhash.  It may be possible to patch the source file
	mhash-0.9.9/include/mhash.h -- other C source files in mhash
	already define MUTILS_USE_MHASH_CONFIG before including it.

	This should probably also be reported upstream, but mhash looks
	awfully defunct upstream.  <> is rather
	outdated, and the version one finds in CVS is older than the
	version one finds in the distribution tarballs.



State-Changed-From-To: open->feedback
State-Changed-When: Sat, 27 Dec 2008 11:20:21 +0000
Common macros were moved from mhas_config.h to config.h (it is not installed).
Do you still want to remove MUTILS_USE_MHASH_CONFIG definition from mhash.h?

Responsible-Changed-From-To: pkg-manager->bjs
Responsible-Changed-When: Sat, 27 Dec 2008 11:49:54 +0000
bjs@ commited the fix.
I have one question, why patch-aa rev1.1 was removed VERSION from mhash_config.h
but rev1.2 is not and added to config.h.  Why VERSION in both?

From: Taylor R Campbell <>
Subject: Re: pkg/39766 (security/mhash installs <mhash.h> that cooperates badly with autoconf)
Date: Sat, 27 Dec 2008 14:23:33 -0500

    Date: Sat, 27 Dec 2008 11:20:22 +0000 (UTC)

    Common macros were moved from mhas_config.h to config.h (it is not insta=
    Do you still want to remove MUTILS_USE_MHASH_CONFIG definition from mhas=

 Urgh.  I was mistaken in my original report -- the header files really
 do use the information derived from autoconf.  Bletch.

 I wonder how other autoconf'd software deals with this.  Very little
 actually installs config.h files into the system include directories.

State-Changed-From-To: feedback->open
State-Changed-When: Sun, 15 Nov 2009 01:05:41 +0000
feedback was received in december.

Responsible-Changed-From-To: bjs->pkg-manager
Responsible-Changed-When: Mon, 28 Feb 2011 15:05:06 +0000
Reset responsible field for retired developer.

State-Changed-From-To: open->feedback
State-Changed-When: Mon, 29 Dec 2014 07:44:37 +0000
This looks fixed to me -- what do you think?

State-Changed-From-To: feedback->closed
State-Changed-When: Thu, 05 Mar 2015 13:36:46 +0000
good enough
(I am submitter)


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.