Subject: lib/32633: Bad function redefinition in sys/lib/libsa/stand.h
To: None <lib-bug-people@netbsd.org, gnats-admin@netbsd.org,>
From: None <yves-emmanuel.jutard@fr.thalesgroup.com>
List: netbsd-bugs
Date: 01/25/2006 16:10:00
>Number: 32633
>Category: lib
>Synopsis: Bad function redefinition in sys/lib/libsa/stand.h
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: lib-bug-people
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Wed Jan 25 16:10:00 +0000 2006
>Originator: Yves-Emmanuel JUTARD
>Release: 3.0.0
>Organization:
THALES Communication
>Environment:
custom environment : recompiled from /src, only some parts of NetBSD are used (TCP/IP stack and some parts of the kernel)
>Description:
In file sys/lib/libsa/stand.h, v 1.54, l. 222
function 'free' is redeclared as
void free(void *, unsigned int);
but free, in the kernel, has now the following prototype :
void free(void *, struct malloc_type *);
(see malloc.h)
This leads to syntax error when a source file use both includes (malloc.h and stand.h), like lib/libsa/net.c for example
>How-To-Repeat:
compile lib/libsa/net.c with warnings on ;-)
>Fix:
correct the prototype in stand.h to match the one in malloc.h