Open ward3r opened 2 years ago
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
resolved by adding export CFLAGS=' -DOF=_Z_OF' to /etc/profile
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