64位centos上rsync源码编译时报错未知类型int32

liuxiao 2022-01-22 12:27:31

在64位centos7上编译rsync源码时,报错未知类型int32,请问如何解决?

In file included from ./rounding.c:20:0:
./rsync.h:576:3: 错误:#error Could not find a 32-bit integer variable
 # error Could not find a 32-bit integer variable
   ^
./rsync.h:645:2: 错误:未知的类型名‘int32’
  int32 size, entries;
  ^
./rsync.h:646:9: 错误:expected ‘:’, ‘,’, ‘;’, ‘}’ or ‘__attribute__’ before ‘node_size’
  uint32 node_size;
         ^
./rsync.h:652:2: 错误:未知的类型名‘int32’
  int32 key;
  ^
./rsync.h:732:3: 错误:#error Character pointers are not 4 or 8 bytes.
 # error Character pointers are not 4 or 8 bytes.
   ^
./rsync.h:736:2: 错误:未知的类型名‘int32’
  int32 num;
  ^
./rsync.h:737:9: 错误:expected ‘:’, ‘,’, ‘;’, ‘}’ or ‘__attribute__’ before ‘unum’
  uint32 unum;
         ^
./rsync.h:753:9: 错误:expected ‘:’, ‘,’, ‘;’, ‘}’ or ‘__attribute__’ before ‘len32’
  uint32 len32;  /* Lowest 32 bits of the file's length */
         ^
./rsync.h:895:2: 错误:未知的类型名‘int32’
  int32 len;  /**< length of chunk of file */
  ^
./rsync.h:896:9: 错误:expected ‘:’, ‘,’, ‘;’, ‘}’ or ‘__attribute__’ before ‘sum1’
  uint32 sum1;         /**< simple checksum */
         ^
./rsync.h:905:2: 错误:未知的类型名‘int32’
  int32 count;  /**< how many chunks */
  ^
./rsync.h:906:2: 错误:未知的类型名‘int32’
  int32 blength;  /**< block_length */
  ^
./rsync.h:907:2: 错误:未知的类型名‘int32’
  int32 remainder; /**< flength % block_length */
  ^
./rsync.h:916:2: 错误:未知的类型名‘int32’
  int32 p_size;  /* Largest window size we allocated */
  ^
./rsync.h:917:2: 错误:未知的类型名‘int32’
  int32 p_len;  /* Latest (rounded) window size  */
  ^
./rsync.h:918:2: 错误:未知的类型名‘int32’
  int32 def_window_size; /* Default window size   */
  ^
./rsync.h:954:9: 错误:expected ‘:’, ‘,’, ‘;’, ‘}’ or ‘__attribute__’ before ‘rflags’
  uint32 rflags;
         ^
In file included from ./rsync.h:1041:0,
                 from ./rounding.c:20:
./byteorder.h:76:1: 错误:expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘IVALu’
 IVALu(const uchar *buf, int pos)
 ^
./byteorder.h:87:36: 错误:expected ‘;’, ‘,’ or ‘)’ before ‘val’
 SIVALu(uchar *buf, int pos, uint32 val)
                                    ^
./byteorder.h:122:1: 错误:expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘IVAL’
 IVAL(const char *buf, int pos)
 ^
./byteorder.h:128:34: 错误:expected ‘;’, ‘,’ or ‘)’ before ‘val’
 SIVAL(char *buf, int pos, uint32 val)
                                  ^
In file included from ./rsync.h:1042:0,
                 from ./rounding.c:20:
./lib/mdigest.h:10:9: 错误:expected ‘:’, ‘,’, ‘;’, ‘}’ or ‘__attribute__’ before ‘A’
  uint32 A, B, C, D;
         ^
./lib/mdigest.h:17:60: 错误:expected ‘;’, ‘,’ or ‘)’ before ‘length’
 void mdfour_update(md_context *md, const uchar *in, uint32 length);
                                                            ^
In file included from ./rsync.h:1101:0,
                 from ./rounding.c:20:
./proto.h:28:8: 错误:expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘get_checksum1’
 uint32 get_checksum1(char *buf1, int32 len);
        ^
./proto.h:29:31: 错误:未知的类型名‘int32’
 void get_checksum2(char *buf, int32 len, char *sum);
                               ^
./proto.h:32:32: 错误:未知的类型名‘int32’
 void sum_update(const char *p, int32 len);
                                ^
./proto.h:70:41: 错误:expected ‘;’, ‘,’ or ‘)’ before ‘rflags’
 const filter_rule *rule_template(uint32 rflags);
                                         ^
./proto.h:82:48: 错误:未知的类型名‘int32’
 struct map_struct *map_file(int fd, OFF_T len, int32 read_size, int32 blk_size);
                                                ^
./proto.h:82:65: 错误:未知的类型名‘int32’
 struct map_struct *map_file(int fd, OFF_T len, int32 read_size, int32 blk_size);
                                                                 ^
./proto.h:83:53: 错误:未知的类型名‘int32’
 char *map_ptr(struct map_struct *map, OFF_T offset, int32 len);
                                                     ^
./proto.h:110:20: 错误:未知的类型名‘int32’
       stat_x *sxp, int32 iflags, uchar fnamecmp_type,
                    ^
./proto.h:158:1: 错误:未知的类型名‘int32’
 int32 read_int(int f);
 ^
./proto.h:159:1: 错误:未知的类型名‘int32’
 int32 read_varint(int f);
 ^
./proto.h:170:23: 错误:未知的类型名‘int32’
 void write_int(int f, int32 x);
                       ^
./proto.h:171:26: 错误:未知的类型名‘int32’
 void write_varint(int f, int32 x);
                          ^
./proto.h:179:23: 错误:未知的类型名‘int32’
 void write_ndx(int f, int32 ndx);
                       ^
./proto.h:180:1: 错误:未知的类型名‘int32’
 int32 read_ndx(int f);
 ^
./proto.h:295:24: 错误:未知的类型名‘int32’
 void send_token(int f, int32 token, struct map_struct *buf, OFF_T offset,
                        ^
./proto.h:296:3: 错误:未知的类型名‘int32’
   int32 n, int32 toklen);
   ^
./proto.h:296:12: 错误:未知的类型名‘int32’
   int32 n, int32 toklen);
            ^
./proto.h:297:1: 错误:未知的类型名‘int32’
 int32 recv_token(int f, char **data);
 ^
./proto.h:298:28: 错误:未知的类型名‘int32’
 void see_token(char *data, int32 toklen);
                            ^
./proto.h:352:8: 错误:expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘fuzzy_distance’
 uint32 fuzzy_distance(const char *s1, unsigned len1, const char *s2, unsigned len2);
        ^
./rounding.c: 在函数‘main’中:
./rounding.c:35:13: 警告:变量‘test_array’被设定但未被使用 [-Wunused-but-set-variable]
  static int test_array[1 - 2 * (ACTUAL_SIZE != EXPECTED_SIZE)];
 

...全文
267 1 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
无聊人士张 2022-03-04
  • 打赏
  • 举报
回复

大佬解决了吗?

标题SpringBoot与Android融合的智慧旅游平台设计研究AI更换标题第1章引言阐述智慧旅游的发展背景、SpringBoot与Android技术结合的意义、国内外研究现状及论文创新点。1.1研究背景与意义分析智慧旅游行业现状及平台建设的必要性。1.2国内外研究现状综述国内外智慧旅游平台的研究进展。1.3研究方法及创新点介绍本文采用的研究方法和技术创新点。第2章相关理论总结SpringBoot、Android开发及智慧旅游相关理论。2.1SpringBoot框架原理介绍SpringBoot框架的核心特性与优势。2.2Android开发基础阐述Android系统的架构及开发环境搭建。2.3智慧旅游概念及应用解释智慧旅游的定义及其在旅游业中的应用场景。第3章平台设计详细介绍基于SpringBoot与Android的智慧旅游平台设计方案。3.1平台架构设计平台的整体架构,包括前端、后端及数据库设计。3.2功能模块设计分析平台的主要功能模块,如景点推荐、导航、用户管理等。3.3数据库设计阐述数据库的设计思路,包括表结构、关系等。第4章平台实现介绍平台的具体实现过程,包括前端界面开发、后端服务搭建及数据库实现。4.1Android前端界面开发介绍Android前端界面的设计与实现方法。4.2SpringBoot后端服务搭建阐述后端服务的搭建过程,包括API设计、接口实现等。4.3数据库实现与优化介绍数据库的实现细节及优化策略。第5章实验与分析对平台进行实验验证,分析实验结果,评估平台性能。5.1实验环境与数据介绍实验环境、测试数据及评估指标。5.2实验方法与步骤实验的具体方法和步骤,包括功能测试、性能测试等。5.3实验结果与分析根据实验结果,分析平台的性能及存在的问题。第6章结论与展望总结平台设计与实现的主要成果,提出未来改进方向。6.1研究结论概括平台设计与实现的主要成果和创
标题SpringBoot与Android结合的健康饮食推荐系统研究AI更换标题第1章引言阐述健康饮食推荐系统的研究背景、意义、国内外研究现状、论文方法及创新点。1.1研究背景与意义分析健康饮食需求增长及传统推荐系统的不足,说明系统开发必要性。1.2国内外研究现状综述国内外健康饮食推荐系统的研究进展与存在的问题。1.3研究方法及创新点介绍SpringBoot与Android结合的开发方法及系统创新点。第2章相关理论总结健康饮食推荐系统涉及的理论基础,确立研究基石。2.1健康饮食理论阐述健康饮食的基本原则、营养搭配等理论知识。2.2推荐系统理论介绍推荐系统的基本原理、算法分类及适用场景。2.3SpringBoot与Android开发理论概述SpringBoot框架和Android开发平台的特点及应用。第3章系统设计详细描述健康饮食推荐系统的整体设计方案。3.1系统架构设计介绍系统的总体架构,包括前端、后端及数据库设计。3.2功能模块设计阐述用户管理、饮食记录、推荐算法等核心模块的设计思路。3.3数据库设计说明数据库表结构、字段设计及数据关系。第4章研究方法详细描述系统开发过程中的模型设计、数据收集和分析方法。4.1模型设计介绍推荐算法模型的选择、构建及优化过程。4.2数据收集方法说明用户饮食数据、健康数据等数据的收集途径和方式。4.3数据分析方法阐述对收集到的数据进行处理、分析的方法和技术。第5章研究结果呈现系统开发完成后的实验分析结果。5.1系统实现效果展示系统界面、功能实现情况及用户交互体验。5.2推荐准确性分析通过对比实验,分析推荐算法的准确性和有效性。5.3用户满意度调查通过问卷调查等方式,收集用户对系统的满意度反馈。第6章结论与展望总结研究成果,并提出未来研究方向。6.1研究结论概括系统开发的主要成果,包括功能实现、推荐效果等。6.2展望指出系统存在的不足,提出改进方

23,215

社区成员

发帖
与我相关
我的任务
社区描述
Linux/Unix社区 应用程序开发区
社区管理员
  • 应用程序开发区社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧