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

liuxiao CSDN会员 liuxiao 墨衍会员 · AI 创作全网分发 墨衍智能分发 通过墨衍一键同步至各平台 可同步平台 CSDN微信公众号微博知乎掘金百家号博客园抖音小红书 你的文章也可以这样分发 墨衍会员 ¥399起/年,写一次发全网 我也要 + 加入社区

在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)];
 

...全文

相关推荐

Shellshock漏洞原理与防护:Bash环境变量远程代码执行详解

Shellshock(CVE-2014-6271)是一种影响Bash解释器的高危远程代码执行漏洞,其本质源于Bash对环境变量中函数定义的不安全解析机制——当变量值以'() {'开头时,Bash不仅加载函数,还会执行'}'之后的任意命令。该漏洞不依赖Web应用逻辑,只要存在外部输入被设为环境变量并触发/bin/bash启动,即可被利用,典型场景包括Apache CGI、SSH ForceCommand、DHCP客户端及Git钩子等。技术价值在于暴露了操作系统层面对环境变量的信任假设缺陷,推动了‘最小权限调用

weixin_30879169

TensorFlow 2.9生产就绪指南:模型上线稳定性与工业部署实践

SavedModel和TFLite是工业级AI模型交付的两大核心格式,其稳定性、体积、跨平台兼容性直接决定模型能否真正落地。TensorFlow 2.9并非面向算法研究的版本迭代,而是聚焦生产环境四大硬约束——内存墙、IO墙、算力墙与兼容墙——所构建的工程化加固版本。它通过重构tf.data内存管理、优化XNNPACK指令调度、增强Windows/CUDA集成、标准化签名函数等底层改进,显著提升模型服务P99延迟稳定性与边缘设备推理鲁棒性。适用于金融风控、智能质检、预测性维护等需7×24小时高可用、资源受限

weixin_34416649

DeepSeek V4与昇腾910B协同实践:混合训练、稳定推理与国产化落地指南

大模型国产化适配是当前AI基础设施建设的核心命题,其本质是算力底座与模型架构的深度耦合。从原理看,异构训练需突破算子兼容性、精度一致性、通信协议统一三大技术关卡;技术价值在于实现供应链安全前提下的性能-成本最优平衡;典型应用场景覆盖政务信创、金融合规推理、行业微调等对自主可控有强约束的领域。DeepSeek V4作为首个在SFT、RLHF Reward建模及离线蒸馏等关键阶段完成昇腾910B全链路验证的大模型,提供了可复用的混合训练范式与工程化调优路径,标志着国产AI芯片已跨越‘能跑’迈向‘稳用、好用、敢用

weixin_33724570

库存管理基于Excel的多商品组合订单需求拆解模型:SKU级供需预测与四情景压力测试系统设计 Excel 多商品组合订单的需求拆解|Excel模型与模拟数据

内容概要:本文档围绕Excel中多商品组合订单的基础SKU需求拆解,构建从订单行、组合用量表到仓库周需求、期初可供、计划到货及欠交结转的完整计算链条。通过四种组合、六种SKU、两座仓库和八个业务周的模拟数据,演示如何将组合套数准确转换为SKU件数,防止重复扣减与错误状态纳入,并按周递推供需覆盖与欠交变化。文档提供结构化输入校验、公式体系、守恒检查与四情景复算机制,确保结果可追溯、可核对。全部数据为基于固定随机种子生成的原创模拟记录,配套可编辑Excel工作簿与独立Python程序实现双向验证。 适合人群:适用于负责订单汇总、组合商品管理、库存分析、仓配协同、需求计划及业务分析文档编制的相关人员。日常使用者需掌握Excel基本操作如单元格引用、筛选与求和;具备Python基础者可配合标准库运行程序进行批量验证或数据重生成。业务管理岗可重点阅读结果与风险章节,结合工作表索引追踪数值来源。 使用场景及目标:适用于活动套单、同单含组合与单品、多仓备货、到货周期偏移及需求波动等场景。目标是实现组合订单向基础SKU的精准拆解,按周粒度完成供需匹配与欠交递推,识别输入冲突与窗口外到货影响,支持需求增幅、到货延期等多情景模拟分析,所有结论均可从源订单、BOM、Excel公式或独立程序追溯验证。 其他说明:项目交付包含A4文档、可编辑Excel、完整Python代码、CSV输入表、计算快照、四情景结果、测试记录、README指引及作者验收记录。采用固定随机种子确保数据一致性,强调输入有效性校验与双守恒(供给与需求)原则。Excel工作簿采用三层结构(源输入—公式计算—结果展示),支持手动编辑与自动重算,但扩容需重新生成网格。独立Python程序可用于交叉验证,保障模型可靠性。

nantangyuxi

东汉AD35年世界历史地图矢量文件SHP格式.zip

本资源为《东汉AD35年世界历史地图矢量文件SHP格式》压缩包,文件大小约 29.99 MB,便于集中下载、整理和使用。具体内容请结合压缩包内的实际文件与说明查看。 在当前可读取的目录中,可见JSON 文件、属性表(.dbf)、投影说明文件(.prj)、Shapefile 主文件(.shp)、Shapefile 索引(.shx)。建议解压后保持原有目录结构,先浏览文件清单与说明,再选择需要的资料进行加载或整理。 应用方面,可根据实际资料用于学习练习、资料检索、研究整理或项目参考。使用时可先确定所需内容,建立清晰的文件分类,再按项目要求进行筛选、转换与汇总。 使用 Shapefile 数据时,请把实际配套的 .shp、.shx、.dbf 等文件保存在同一目录,并保持同名关联;加载后再检查坐标系与中文字段显示。如需叠加其它数据,请先统一坐标与字段口径。 数据来源、时间范围、坐标系、字段定义、精度和使用条件,请以实际文件及原始说明为准。本介绍不对文件名之外尚未核实的信息作额外承诺。

白水先森
评论 1
收藏 已收藏
分享
返回顶部
liuxiao CSDN会员
Linux/Unix社区 23,224 成员 74,535 内容