jmcnamara / libxlsxwriter

A C library for creating Excel XLSX files.
https://libxlsxwriter.github.io
Other
1.48k stars 330 forks source link

Linux(CentOS6) Build Error. #428

Closed taehyun1234 closed 8 months ago

taehyun1234 commented 8 months ago

libxlsxwriter: Reporting Bugs

make[1]: Directory '/home/tmp/libxlsxwriter/third_party/minizip' entry ioapi.c: In function ‘fseek64_file_func’: ioapi.c:190:37: error: ‘z_off64_t’ undeclared (first use in this function) if(FSEEKO_FUNC((FILE *)stream, (z_off64_t)offset, fseek_origin) != 0) ^ ioapi.c:25:62: note: in definition of macro ‘FSEEKO_FUNC’

define FSEEKO_FUNC(stream, offset, origin) fseeko64(stream, offset, origin)

                                                          ^~~~~~

ioapi.c:190:37: note: each undeclared identifier is reported only once for each function it appears in if(FSEEKO_FUNC((FILE *)stream, (z_off64_t)offset, fseek_origin) != 0) ^ ioapi.c:25:62: note: in definition of macro ‘FSEEKO_FUNC’

define FSEEKO_FUNC(stream, offset, origin) fseeko64(stream, offset, origin)

                                                          ^~~~~~

ioapi.c:190:47: error: expected ‘)’ before ‘offset’ if(FSEEKO_FUNC((FILE *)stream, (z_off64_t)offset, fseek_origin) != 0) ^ ioapi.c:25:62: note: in definition of macro ‘FSEEKO_FUNC’

define FSEEKO_FUNC(stream, offset, origin) fseeko64(stream, offset, origin)

                                                          ^~~~~~

ioapi.c:25:45: error: too few arguments to function ‘fseeko64’

define FSEEKO_FUNC(stream, offset, origin) fseeko64(stream, offset, origin)

                                         ^

ioapi.c:190:8: note: in expansion of macro ‘FSEEKO_FUNC’ if(FSEEKO_FUNC((FILE )stream, (z_off64_t)offset, fseek_origin) != 0) ^~~ In file included from ioapi.h:50:0, from ioapi.c:29: /usr/include/stdio.h:813:12: note: declared here extern int fseeko64 (FILE stream, off64_t off, int whence); ^~~~ Makefile:38: 'ioapi.o' make[1]: [ioapi.o] Error 1 make[1]: Directory '/home/tmp/libxlsxwriter/third_party/minizip' Exit Makefile:31: 'third_party' Command to target failed make: [third_party] Error 2

I did install zlib. like this link https://libxlsxwriter.github.io/getting_started.html and then I just clone this Directory, and build it. but some error occurred like that. how I can solve this problem?