pkgsrc-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: Can't get graphics/libgltf to compile
Joerg Sonnenberger <joerg%britannica.bec.de@localhost> écrit :
> On Thu, Dec 25, 2014 at 08:26:25AM +0100, Marc Baudoin wrote:
> > /usr/include/gcc-4.5/mm_malloc.h:34:64: error: declaration of 'int posix_memalign(void**, size_t, size_t) throw ()' throws different exceptions
> > /usr/include/stdlib.h:237:6: error: from previous declaration 'int posix_memalign(void**, size_t, size_t)'
>
> Known bug in the GCC header. Update to the version of the file on
> netbsd-6.
Or just edit it:
% diff /usr/include/gcc-4.5/mm_malloc.h.orig /usr/include/gcc-4.5/mm_malloc.h
34c34
< extern "C" int posix_memalign (void **, size_t, size_t) throw ();
---
> extern "C" int posix_memalign (void **, size_t, size_t);
This works perfectly. Thanks Joerg for the tip!
Home |
Main Index |
Thread Index |
Old Index