Bug#380179: /usr/include/string.h: multiple definitions of bzero and bcopy
Erwan David a écrit :
Package: libc6-dev
Version: 2.3.6-15
Severity: normal
When trying to compile sdbm, I get the following error :
cc -O -DSDBM -DDUFF -DBSD42 -c -o sdbm.o sdbm.c
In file included from sdbm.c:27:
/usr/include/string.h:293: error: conflicting types for ‘bcopy’
/usr/include/string.h:40: error: previous declaration of ‘bcopy’ was here
/usr/include/string.h:296: error: conflicting types for ‘bzero’
/usr/include/string.h:59: error: previous declaration of ‘bzero’ was here
So, string.h does indeed define twice, with incompatible types the
functions bzero and bcopy
line 293:
extern void bcopy (__const void *__src, void *__dest, size_t __n)
line 40:
extern void *memcpy (void *__restrict __dest
line 296:
extern void bzero (void *__s, size_t __n) __THROW __nonnull ((1));
line 59:
extern void *memset (void *__s, int __c, size_t __n) __THROW __nonnull
((1));
So string.h *does not* defined bzero and bcopy twice. Something is
redefining it, probably in your program.
What is sdbm exactly, and where to get it?
--
.''`. Aurelien Jarno | GPG: 1024D/F1BCDB73
: :' : Debian developer | Electrical Engineer
`. `' aurel32@debian.org | aurelien@aurel32.net
`- people.debian.org/~aurel32 | www.aurel32.net
Reply to: