modelon-community/fmi-library

Cannot compile in Mac: Zlib issue.

Opened this issue · 2 comments

Getting this error:

~/fmi-library/ThirdParty/Zlib/zlib-1.2.13/gzlib.c:498:14: error: call to undeclared function 'lseek'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
offset = LSEEK(state->fd, 0, SEEK_CUR);

I think this has to do with Mac's zlib library.
I have installed zlib using homebrew.

Any help regarding this would be great.

Hi raktim,

we unfortunately don't have a Mac available to reproduce this issue or test any fixes ourselves.

bazelbuild/bazel#17956 seems possibly related. There is a possible fix in there: Blosc/c-blosc@ac72c2c

Could you try patching your zlib & build fmi-library with it?

/Peter