Bug 14327

Summary: names used in netdb.h may conflict with names defined in including file
Product: Base System Reporter: marko <marko>
Component: miscAssignee: Mike Barcroft <mike>
Status: Closed FIXED    
Severity: Affects Only Me CC: fjh
Priority: Normal    
Version: 3.2-STABLE   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
file.diff none

Description marko 1999-10-14 16:40:01 UTC
----begin forwarded mail----
On 13-Oct-1999, Marko Schuetz <marko@ki.informatik.uni-frankfurt.de> wrote:
> In file included from mercury_trace_external.c:44:
> /usr/include/netdb.h:179: parse error before `('
> /usr/include/netdb.h:179: `type name' declared as function returning an array
> /usr/include/netdb.h:179: `type name' declared as function returning a function
> /usr/include/netdb.h:179: parse error before `)'

This is a bug in the FreeBSD header files: they are not
namespace-clean.  The problem is a name clash between a macro `hp'
defined by the Mercury headers and a parameter name in the FreeBSD
header file.  I suggest you report this as a bug to the developers of
the FreeBSD header files.  I've attached a patch which will fix this.

--
Fergus Henderson <fjh@cs.mu.oz.au>  |  "I have always known that the pursuit
WWW: <http://www.cs.mu.oz.au/~fjh>  |  of excellence is a lethal habit"
PGP: finger fjh@128.250.37.3        |     -- the last words of T. S. Garp.
----end forwarded mail----

How-To-Repeat: 
	get mercury-compiler-rotd-1999-10-12.tar.gz from ftp.mercury.cs.mu.oz.au
        tar xzf mercury-compiler-rotd-1999-10-12.tar.gz
	cd mercury-compiler-rotd-1999-10-12
	./configure
	make
Comment 1 Mike Barcroft freebsd_committer freebsd_triage 2001-07-21 03:13:22 UTC
Responsible Changed
From-To: freebsd-bugs->mike


I'll fix this.
Comment 2 Mike Barcroft freebsd_committer freebsd_triage 2001-08-02 15:37:36 UTC
State Changed
From-To: open->closed


A slightly difference patch was committed to -CURRENT and -STABLE.