Closed Bug 109210 Opened 23 years ago Closed 23 years ago

freebsd-current build broken by malloc.h

Categories

(Directory :: LDAP C SDK, defect, P1)

x86
FreeBSD
defect

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: mikejestes, Assigned: dmosedale)

Details

fresh checkout and build of mozilla on freebsd current broken. simple fix: Index: directory/c-sdk//ldap/libraries/liblber/lber-int.h =================================================================== RCS file: /cvsroot/mozilla/directory/c-sdk/ldap/libraries/liblber/lber-int.h,v retrieving revision 1.2.2.4 diff -u -r1.2.2.4 lber-int.h --- directory/c-sdk//ldap/libraries/liblber/lber-int.h 2001/10/26 20:47:20 1.2.2.4 +++ directory/c-sdk//ldap/libraries/liblber/lber-int.h 2001/11/09 02:13:29 @@ -48,7 +48,7 @@ #ifdef macintosh # include "ldap-macos.h" #else /* macintosh */ -#if !defined(BSDI) && !defined(DARWIN) +#if !defined(BSDI) && !defined(DARWIN) && !defined(FREEBSD) # include <malloc.h> #endif # include <errno.h> malloc.h has been depreciated for years on freebsd, but always just included stdlib.h this has been changed to produce a build error if malloc.h is included.
The proposed fix looks fine to me. I wonder if any platforms need <malloc.h> today? Reassigning to Dan for shepherding into the build.
Assignee: mcs → dmose
Looks fine to me too; r=dmose on the patch.
Severity: normal → critical
Status: NEW → ASSIGNED
Priority: -- → P1
Target Milestone: --- → mozilla0.9.7
sr=sspitzer, in person
Fix checked in to LDAPCSDK_40_BRANCH. Giving back to mcs for checkin on current CVS tip.
Assignee: dmose → mcs
Status: ASSIGNED → NEW
Target Milestone: mozilla0.9.7 → ---
<malloc.h> shouldn't be included on any post K&R system, particularly BSDI and Darwin.
i think LDAPCSDK_40_BRANCH is the one we build mozilla isn't it? so i guess this bug could be closed?
Please leave it open. Mozilla current builds off LDAPCSDK_40_BRANCH, as you said. But this fix needs to be committed to ldapcsdk_branch_50, which is the development tip. Otherwise we will lose it when we change Mozilla to use newer LDAP C SDK code.
Taking for landing onto ldapcsdk_branch_50.
Assignee: mcs → dmose
+'ing for upgrade to version 5 of CSDK.
Keywords: nsbeta1+
Checked in to ldapcsdk_branch_50.
Status: NEW → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
Spam for bug 129472
QA Contact: nobody → nobody
You need to log in before you can comment on or make changes to this bug.