NetBSD Problem Report #34019
From www@NetBSD.org Mon Jul 17 17:46:30 2006
Return-Path: <www@NetBSD.org>
Received: by narn.NetBSD.org (Postfix, from userid 31301)
id 5E6F063BA19; Mon, 17 Jul 2006 17:46:30 +0000 (UTC)
Message-Id: <20060717174630.5E6F063BA19@narn.NetBSD.org>
Date: Mon, 17 Jul 2006 17:46:30 +0000 (UTC)
From: peter.schuller@infidyne.com
Reply-To: peter.schuller@infidyne.com
To: gnats-bugs@NetBSD.org
Subject: [patch] comms/libmal does not compile on FreeBSD 6.1
X-Send-Pr-Version: www-1.0
>Number: 34019
>Category: pkg
>Synopsis: [patch] comms/libmal does not compile on FreeBSD 6.1
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: markd
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Mon Jul 17 17:50:00 +0000 2006
>Closed-Date: Sat Jul 22 02:25:05 +0000 2006
>Last-Modified: Sat Jul 22 02:35:01 +0000 2006
>Originator: Peter Schuller
>Release: FreeBSD 6.1
>Organization:
N/A
>Environment:
>Description:
comms/libmal does not compile:
In file included from ../malsync/mal/client/unix/MAL31DBConfig.c:26:
/usr/include/malloc.h:3:2: #error "<malloc.h> has been replaced by <stdlib.h>"
../malsync/mal/client/unix/MAL31DBConfig.c: In function `MAL31DBConfigReadData':
../malsync/mal/client/unix/MAL31DBConfig.c:41: warning: implicit declaration of function `malloc'
gmake[2]: *** [MAL31DBConfig.lo] Error 1
gmake[2]: Leaving directory `/usr/pkgsrc/comms/libmal/work/libmal-0.40/src'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/usr/pkgsrc/comms/libmal/work/libmal-0.40'
gmake: *** [all] Error 2
*** Error code 2
>How-To-Repeat:
>Fix:
Have stdlib.h be included instead of stdlib.h on FreeBSD:
http://hyperion.scode.org/pkgsrc/libmal-malloc.patch
Note that it does not distinguish based on the version of FreeBSD. I believe stdlib.h will always have defined malloc() in modern times, so I suspect it is not necessary. (malloc.h is not even standard AFAIK?).
>Release-Note:
>Audit-Trail:
From: Joerg Sonnenberger <joerg@britannica.bec.de>
To: gnats-bugs@NetBSD.org
Cc:
Subject: Re: pkg/34019: [patch] comms/libmal does not compile on FreeBSD 6.1
Date: Mon, 17 Jul 2006 20:27:57 +0200
On Mon, Jul 17, 2006 at 05:50:00PM +0000, peter.schuller@infidyne.com wrote:
> >Number: 34019
> >Category: pkg
> >Synopsis: [patch] comms/libmal does not compile on FreeBSD 6.1
> >Confidential: no
> >Severity: non-critical
> >Priority: medium
> >Responsible: pkg-manager
> >State: open
> >Class: sw-bug
> >Submitter-Id: net
> >Arrival-Date: Mon Jul 17 17:50:00 +0000 2006
> >Originator: Peter Schuller
> >Release: FreeBSD 6.1
> >Organization:
> N/A
> >Environment:
> >Description:
> comms/libmal does not compile:
>
> In file included from ../malsync/mal/client/unix/MAL31DBConfig.c:26:
> /usr/include/malloc.h:3:2: #error "<malloc.h> has been replaced by <stdlib.h>"
> ../malsync/mal/client/unix/MAL31DBConfig.c: In function `MAL31DBConfigReadData':
> ../malsync/mal/client/unix/MAL31DBConfig.c:41: warning: implicit declaration of function `malloc'
> gmake[2]: *** [MAL31DBConfig.lo] Error 1
> gmake[2]: Leaving directory `/usr/pkgsrc/comms/libmal/work/libmal-0.40/src'
> gmake[1]: *** [all-recursive] Error 1
> gmake[1]: Leaving directory `/usr/pkgsrc/comms/libmal/work/libmal-0.40'
> gmake: *** [all] Error 2
> *** Error code 2
>
> >How-To-Repeat:
>
> >Fix:
> Have stdlib.h be included instead of stdlib.h on FreeBSD:
>
> http://hyperion.scode.org/pkgsrc/libmal-malloc.patch
Just kill the malloc.h and always include stdlib.h.
Joerg
From: Peter Schuller <peter.schuller@infidyne.com>
To: gnats-bugs@netbsd.org
Cc:
Subject: Re: pkg/34019: [patch] comms/libmal does not compile on FreeBSD 6.1
Date: Mon, 17 Jul 2006 21:27:47 +0200
> Just kill the malloc.h and always include stdlib.h.
New patch:
http://hyperion.scode.org/pkgsrc/libmal-malloc2.patch
--
/ Peter Schuller, InfiDyne Technologies HB
PGP userID: 0xE9758B7D or 'Peter Schuller <peter.schuller@infidyne.com>'
Key retrieval: Send an E-Mail to getpgpkey@scode.org
E-Mail: peter.schuller@infidyne.com Web: http://www.scode.org
Responsible-Changed-From-To: pkg-manager->markd
Responsible-Changed-By: reed@netbsd.org
Responsible-Changed-When: Thu, 20 Jul 2006 14:30:25 +0000
Responsible-Changed-Why:
Assign to maintainer.
State-Changed-From-To: open->closed
State-Changed-By: markd@netbsd.org
State-Changed-When: Sat, 22 Jul 2006 02:25:05 +0000
State-Changed-Why:
patch applied, thanks.
From: Mark Davies <markd@netbsd.org>
To: gnats-bugs@NetBSD.org
Cc:
Subject: PR/34019 CVS commit: pkgsrc/comms/libmal
Date: Sat, 22 Jul 2006 02:24:18 +0000 (UTC)
Module Name: pkgsrc
Committed By: markd
Date: Sat Jul 22 02:24:18 UTC 2006
Modified Files:
pkgsrc/comms/libmal: distinfo
Added Files:
pkgsrc/comms/libmal/patches: patch-ad
Log Message:
Don't try and use <malloc.h>. Fixes build on FreeBSD 6.1
From PR pkg/34019 by Peter Schuller.
To generate a diff of this commit:
cvs rdiff -r1.4 -r1.5 pkgsrc/comms/libmal/distinfo
cvs rdiff -r0 -r1.1 pkgsrc/comms/libmal/patches/patch-ad
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.