mremap compile failure on trunk

Peter S. Mazinger ps.m at gmx.net
Mon Jul 10 08:58:15 UTC 2006


On Fri, 7 Jul 2006, Bernhard Fischer wrote:

> Hi,
> 
> With pristine trunk (and DOMULTI), i get
> 
> libc/sysdeps/linux/common/mremap.c:16: error: conflicting types for 'mremap'
> ./include/sys/mman.h:127: error: previous declaration of 'mremap' was here
> In file included from libc/sysdeps/linux/common/msync.c:12:
> ./include/sys/mman.h:127: error: conflicting types for 'mremap'
> libc/sysdeps/linux/common/mremap.c:19: error: previous definition of 'mremap' was here
> 
> I'm pretty sure that this did work around r14200
> 
> What's the story behind the newly added decl without the varargs there?
> 
> Thanks for clarification,
> Bernhard

Discussed after that commit, I proposed an alternative, but vapier said 
that the kernel can handle it correctly depending on the number of 
arguments.

MULTI does not work if the prototype does not match completely, you have 
to add mremap.o to libc-nomulti-y

Peter

-- 
Peter S. Mazinger <ps dot m at gmx dot net>           ID: 0xA5F059F2
Key fingerprint = 92A4 31E1 56BC 3D5A 2D08  BB6E C389 975E A5F0 59F2




More information about the uClibc mailing list