[Buildroot] [PATCH v1] package/assimp: fix musl zlib/zip related compile failure

Thomas Petazzoni thomas.petazzoni at bootlin.com
Fri Apr 10 20:46:11 UTC 2020


On Fri, 10 Apr 2020 18:32:37 +0200
Peter Seiderer <ps.report at gmx.net> wrote:

> As assimp fails to use system provided zlib/zip (and is picky
> about the provided versions) use assimp contributed one
> and backport one part of upstream patch to fix musl compile.
> 
> Fixes:
> 
>   http://autobuild.buildroot.net/results/4b373ae7d8fd40efe3e2592f94f2d769d6a77669
> 
>   In file included from .../assimp-5.0.1/code/3MF/D3MFExporter.cpp:61:
>   .../assimp-5.0.1/contrib/zip/src/zip.h:30:15: error: conflicting declaration 'typedef long int ssize_t'
>    typedef long  ssize_t;  /* byte count or error */
>                  ^~~~~~~
> 
> Signed-off-by: Peter Seiderer <ps.report at gmx.net>
> ---
>  ...ssize_t-typedef-mismatch-for-musl-co.patch | 50 +++++++++++++++++++
>  package/assimp/Config.in                      |  1 -
>  package/assimp/assimp.mk                      |  3 +-
>  3 files changed, 51 insertions(+), 3 deletions(-)
>  create mode 100644 package/assimp/0002-contrib-zip-fix-ssize_t-typedef-mismatch-for-musl-co.patch

I've applied, but it's not really great to be forced to use the
internal zlib. Could you try to work this out with upstream?

Thanks!

Thomas
-- 
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com


More information about the buildroot mailing list