重庆思庄Oracle、KingBase、PostgreSQL、Redhat认证学习论坛
标题: PostgreSQL 14.9 在 Oracle Linux 10 编译报错:libxml2 版本不兼容问题解决办法 [打印本页]
作者: ZhangQi 时间: 2025-9-21 14:37
标题: PostgreSQL 14.9 在 Oracle Linux 10 编译报错:libxml2 版本不兼容问题解决办法
在 Oracle Linux 10 上编译 PostgreSQL 14.9 时,启用 --with-libxml --with-libxslt 选项会遇到如下报错:
xml.c:1023:52: error: passing argument 2 of ‘xmlSetStructuredErrorFunc’ from incompatible pointer type [-Wincompatible-pointer-types]
xmlSetStructuredErrorFunc((void *) errcxt, xml_errorHandler);
^
note: expected ‘xmlStructuredErrorFunc’ {aka ‘void (*)(void *, const struct _xmlError *)’}
but argument is of type ‘void (*)(void *, xmlError *)’