Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot compile in Mac: Zlib issue. #135

Open
raktim opened this issue Aug 5, 2024 · 2 comments
Open

Cannot compile in Mac: Zlib issue. #135

raktim opened this issue Aug 5, 2024 · 2 comments
Assignees
Labels
question Further information is requested

Comments

@raktim
Copy link

raktim commented Aug 5, 2024

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.

@PeterMeisrimelModelon PeterMeisrimelModelon self-assigned this Aug 7, 2024
@PeterMeisrimelModelon PeterMeisrimelModelon added the question Further information is requested label Aug 7, 2024
@PeterMeisrimelModelon
Copy link
Contributor

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

@raktim
Copy link
Author

raktim commented Aug 7, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants