已开启
json-c 版本不适配问题,请修复! #33
AtomGit-Bot创建于  2022年6月30日
AtomGit-Bot
2022年6月30日 创建

该问题是怎么引起的?

一、源代码编译出现错误
二、使用安装包出现错误

重现步骤

硬件:x86_64
系统:openeuler 22.03 LTS
数据库:opengauss 2.1.0-5.oe2203
yukon:1.0版本
系统安装的json-c-devel 为0.15-2.oe2203版本

一、源代码编译出现错误
mvt.c:515:2: 错误:‘JsonbIteratorToken’ was not declared in this scope; did you mean ‘JsonbIteratorNext’?
mvt.c:530:39: 错误:‘JsonbValue’ {aka ‘struct JsonbValue’} has no member named ‘val’

猜测由json-c-devel版本错误引起

二、使用安装包安装后,出现的错误
使用Yukon-1.0-openGauss2.1.0中install.sh安装
创建postgis扩展出现如下错误

CREATE EXTENSION postgis

ERROR: could not load library "postgis-3.so": libjson-c.so.2: cannot open shared object file: No such file or directory

需要libjson-c.so.2, 而安装包以及操作系统中只有libjson-c.so.5

报错信息

likedislike
AAtomGit-Bot
2022年6月30日 创建了缺陷
opengauss-bot
opengauss-bot成员
2022年6月30日 评论:

Hey @xinxincx, Welcome to openGauss Community.
All of the projects in openGauss Community are maintained by @opengauss-bot.
That means the developers can comment below every pull request or issue to trigger Bot Commands.
Please follow instructions at Here to find the details.

likedislike
huangning2
huangning2成员
2022年6月30日 评论:

@xinxincx 由于目前测试均在 Centos7 1816 上测试。openeuler 22.03 LTS 没有测试过。我们先测试一下。

likedislike
AtomGit-Bot
2022年6月30日 评论:

@xinxincx 由于目前测试均在 Centos7 1816 上测试。openeuler 22.03 LTS 没有测试过。我们先测试一下。

好的,谢谢

likedislike
AAtomGit-Bot
2022年7月8日 将负责人设置为huangning2
opengauss-bot
opengauss-bot成员
2022年9月1日 评论:

/sig gis

likedislike
opengauss-bot
opengauss-bot成员
2022年9月1日 评论:

Hi @xinxincx,
if you want to get quick review about your issue, please contact the owner in first: @zhouqinsm ,
and then any of the maintainers: @zhouqinsm , @xiong_xjun
and then any of the committers: @yang_jingqiao , @gentle_hu , @sqyyeah , @liwenlong2021
if you have any question, please contact the SIG: GIS.

likedislike
opengauss-botopengauss-bot成员
2022年9月1日 添加了   sig/gis 标签
huangning2
huangning2成员
2022年9月19日 评论:

@xinxincx 你好,目前 openeuler 22.03 暂未适配,但是是可以编译的,这是我们目前测试的结果

编译结果:

编译结果

版本信息:

输入图片说明

likedislike
huangning2huangning2成员
2022年9月19日 将任务状态从 待办的 修改为已确认
huangning2huangning2成员
2022年9月19日 将任务状态从 已确认 修改为修复中
huangning2huangning2成员
2022年9月19日 将任务状态从 修复中 修改为已完成
opengauss_botopengauss_bot成员
2025年4月27日 重新打开了 issue
opengauss_botopengauss_bot成员
3月20日 删除了label:sig/gis
opengauss_botopengauss_bot成员
3月20日 添加了label:sig/GIS
opengauss_botopengauss_bot成员
3月20日 添加了label:sig/Community