From josb@cncdsl.com  Tue Nov 20 14:51:04 2001
Return-Path: <josb@cncdsl.com>
Received: from w250.z064001178.sjc-ca.dsl.cnc.net (w250.z064001178.sjc-ca.dsl.cnc.net [64.1.178.250])
	by hub.freebsd.org (Postfix) with SMTP id 6D89137B41B
	for <FreeBSD-gnats-submit@freebsd.org>; Tue, 20 Nov 2001 14:51:02 -0800 (PST)
Received: (qmail 70249 invoked by uid 1000); 20 Nov 2001 22:51:23 -0000
Message-Id: <20011120225123.70248.qmail@lizzy.bugworks.com>
Date: 20 Nov 2001 22:51:23 -0000
From: Jos Backus <josb@cncdsl.com>
Reply-To: Jos Backus Jos Backus <josb@cncdsl.com>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: Unbreak mozilla-0.9.5 after malloc.h -> stdlib.h
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         32151
>Category:       ports
>Synopsis:       Unbreak mozilla-0.9.5 after malloc.h -> stdlib.h
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    gnome
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Nov 20 15:00:01 PST 2001
>Closed-Date:    Thu Dec 6 04:14:32 PST 2001
>Last-Modified:  Thu Dec 06 04:15:04 PST 2001
>Originator:     Jos Backus
>Release:        FreeBSD 5.0-CURRENT i386
>Organization:
none
>Environment:
System: FreeBSD lizzy.bugworks.com 5.0-CURRENT FreeBSD 5.0-CURRENT #1: Sun Nov 18 19:53:54 PST 2001 jos@lizzy.bugworks.com:/disk0/usr/obj/usr/src/sys/LIZZY i386

	Port www/mozilla-0.9.5,1.

>Description:

	Including <malloc.h> aborts mozilla build. Make sure <malloc.h> is no
	longer being included.

>How-To-Repeat:

	Try to build port www/mozilla.

>Fix:

	Apply these patches to the port:

--- dbm/src/nsres.c.orig	Mon Nov 19 16:43:26 2001
+++ dbm/src/nsres.c	Mon Nov 19 16:44:01 2001
@@ -4,7 +4,7 @@
 
 #include <stdio.h>
 
-#if defined(BSDI)||defined(RHAPSODY)
+#if defined(BSDI)||defined(RHAPSODY)||defined(__FreeBSD__)
 #include <stdlib.h>
 #else
 #include <malloc.h>

--- directory/c-sdk/ldap/libraries/liblber/lber-int.h.orig	Tue Nov 20 10:33:23 2001
+++ directory/c-sdk/ldap/libraries/liblber/lber-int.h	Tue Nov 20 10:35:03 2001
@@ -48,7 +48,7 @@
 #ifdef macintosh
 # include "ldap-macos.h"
 #else /* macintosh */
-#if !defined(BSDI)
+#if !defined(BSDI) && !defined(__FreeBSD__)
 # include <malloc.h>
 #endif
 # include <errno.h>
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports->gnome 
Responsible-Changed-By: petef 
Responsible-Changed-When: Tue Nov 20 15:12:32 PST 2001 
Responsible-Changed-Why:  
Over to maintainer 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=32151 
State-Changed-From-To: open->closed 
State-Changed-By: sobomax 
State-Changed-When: Thu Dec 6 04:14:32 PST 2001 
State-Changed-Why:  
This problem was resolved as part of 0.9.6 update. Nevertheless, thank you for 
reporting! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=32151 
>Unformatted:
