NetBSD Problem Report #8004

Received: (qmail 2031 invoked from network); 15 Jul 1999 17:04:45 -0000
Message-Id: <>
Date: Thu, 15 Jul 1999 13:04:42 -0400 (EDT)
Subject: namespace pollution (type "free_func") in zlib.h
X-Send-Pr-Version: 3.95

>Number:         8004
>Category:       lib
>Synopsis:       zlib.h typedefs "free_func" and "alloc_func", which are not uncommon names in user-supplied code, e.g. OpenSSL
>Confidential:   no
>Severity:       non-critical
>Priority:       high
>Responsible:    lib-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Jul 15 10:05:01 +0000 1999
>Originator:     Thor Lancelot Simon
>Release:        19990710
	damned little
System: NetBSD 1.4F NetBSD 1.4F (REKUSANT) #5: Wed Jul 14 05:20:43 EDT 1999 i386

	zlib.h typedefs "free_func" and "alloc_func".  These names are _way_
	too commonplace and nonspecific to be defined in a public header file.
	The expected chaos ensues, e.g. if one has software with a variable
	named free_func...
	Try to build a C source file that includes zlib.h and openssl/rsa.h
	It's not clear to me whether or not we can safely make free_func and
	alloc_func disappear in our zlib API.


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