gpt4 book ai didi

z/OS USS 上的 zlib

转载 作者:行者123 更新时间:2023-12-02 09:01:15 26 4
gpt4 key购买 nike

我正在尝试在 z/OS USS(这就是大型机)上编译 z/lib。我有 gmake 和 c89 编译器(我假设它符合 c89 标准),并且 USS 应该符合 POSIX。

但是 zlib 似乎出现了问题

struct internal_state FAR *state; /* not visible by applications */

有以下错误

c89 -O3 -DUSE_MMAP -D_XOPEN_SOURCE_EXTENDED=1 -D_POSIX_SOURCE   -c -o example.o example.c
ERROR CCN3277 ./zlib.h:92 Syntax error: possible missing ';' or ','?
ERROR CCN3007 ./zlib.h:92 "struct internal_state" is undefined.
ERROR CCN3166 ./zlib.h:103 Definition of function FAR requires parentheses.
ERROR CCN3276 ./zlib.h:103 Syntax error: possible missing '{'?
ERROR CCN3273 ./zlib.h:124 Missing type in declaration of gz_header.
ERROR CCN3166 ./zlib.h:126 Definition of function gz_header requires parentheses.
ERROR CCN3276 ./zlib.h:126 Syntax error: possible missing '{'?
WARNING CCN3137 ./zlib.h:1346 Declaration must declare at least one declarator, tag, or the members of an enumeration.
ERROR CCN3275 ./zlib.h:1350 Unexpected text z encountered.
ERROR CCN3282 ./zlib.h:1350 The type of the parameters must be specified in a prototype.
ERROR CCN3275 ./example.c:95 Unexpected text file encountered.
ERROR CCN3045 ./example.c:95 Undeclared identifier gzFile.
ERROR CCN3046 ./example.c:96 Syntax error.
ERROR CCN3045 ./example.c:98 Undeclared identifier file.
ERROR CCN3019 ./example.c:523 Expecting an array or a pointer to object type.
ERROR CCN3280 ./example.c:527 Function argument assignment between types "const char*" and "int" is not allowed.
CCN0793(I) Compilation failed for file ./example.c. Object file not created.
FSUM3065 The COMPILE step ended with return code 12.
FSUM3017 Could not compile example.c. Correct the errors and try again.
gmake: *** [example.o] Error 3

当我逐步取出 FAR *(我认为它是一个远指针,但我真的不太确定)时,错误就会消失。但由于这是一个库,我不确定删除它会产生什么其他工件。

有人有什么想法吗?

那里有旧的大型机头吗?

最佳答案

事实证明,zlib 的早期版本可以在 USS 上编译,版本 1.1.4 或接近该版本。它是一个后级,但我认为这是可行的,因为它是在最新代码中实现 FAR 指针之前。所以我想我已经可以使用自动取款机了。

感谢您的所有帮助。

问候

标记。

关于z/OS USS 上的 zlib,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1062442/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com