pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkg/39766: security/mhash installs <mhash.h> that cooperates badly with autoconf

>Number:         39766
>Category:       pkg
>Synopsis:       security/mhash installs <mhash.h> that cooperates badly with 
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Oct 19 03:45:00 +0000 2008
>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 
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
                #define MUTILS_USE_MHASH_CONFIG
        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.

Home | Main Index | Thread Index | Old Index