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

building on gentoo #448

Open
ward3r opened this issue Aug 17, 2022 · 1 comment
Open

building on gentoo #448

ward3r opened this issue Aug 17, 2022 · 1 comment

Comments

@ward3r
Copy link

ward3r commented Aug 17, 2022

Hello
While installing on gentoo using command
pecl install xlswriter

got following errors:
In file included from /tmp/xlswriter/include/minizip/unzip.h:55,
from /tmp/xlswriter/library/libxlsxio/lib/xlsxio_read.c:12:
/tmp/xlswriter/include/minizip/ioapi.h:135:51: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘attribute’ before ‘OF’
135 | typedef voidpf (ZCALLBACK open_file_func) OF((voidpf opaque, const char filename, int mode));
| ^~
/tmp/xlswriter/include/minizip/ioapi.h:136:51: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘attribute’ before ‘OF’
136 | typedef uLong (ZCALLBACK read_file_func) OF((voidpf opaque, voidpf stream, void buf, uLong size));
| ^~

and so on

maybe this is because of macro OF and _Z_OF. but what should i do with this? please help

@ward3r
Copy link
Author

ward3r commented Aug 17, 2022

resolved by adding
export CFLAGS=' -DOF=_Z_OF'
to /etc/profile

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

No branches or pull requests

1 participant