[GH-ISSUE #428] Linux(CentOS6) Build Error. #336

Closed
opened 2026-05-05 12:10:16 -06:00 by gitea-mirror · 0 comments
Owner

Originally created by @taehyun1234 on GitHub (Dec 27, 2023).
Original GitHub issue: https://github.com/jmcnamara/libxlsxwriter/issues/428

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?

Originally created by @taehyun1234 on GitHub (Dec 27, 2023). Original GitHub issue: https://github.com/jmcnamara/libxlsxwriter/issues/428 # 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?
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/libxlsxwriter#336
No description provided.