leborchuk commented on issue #1432:
URL: https://github.com/apache/cloudberry/issues/1432#issuecomment-4225281151
1. xercex-c should be placed directly under `/usr/local/lib` - does not know
why /usr/local/xerces-c/lib does not rowk
2. The same issue with warning in compilation
```
fe-secure-openssl.c: In function ‘initialize_SSL’:
fe-secure-openssl.c:800:21: error: unused variable ‘pkey’
[-Werror=unused-variable]
800 | EVP_PKEY *pkey = NULL;
| ^~~~
xml.c: In function ‘pg_xml_init’:
xml.c:1025:52: error: passing argument 2 of ‘xmlSetStructuredErrorFunc’ from
incompatible pointer type [-Wincompatible-pointer-types]
1025 | xmlSetStructuredErrorFunc((void *) errcxt, xml_errorHandler);
| ^~~~~~~~~~~~~~~~
| |
| void (*)(void *,
xmlError *) {aka void (*)(void *, struct _xmlError *)}
In file included from /usr/include/libxml2/libxml/valid.h:15,
from /usr/include/libxml2/libxml/parser.h:19,
from xml.c:50:
/usr/include/libxml2/libxml/xmlerror.h:898:57: note: expected
‘xmlStructuredErrorFunc’ {aka ‘void (*)(void *, const struct _xmlError *)’} but
argument is of type ‘void (*)(void *, xmlError *)’ {aka ‘void (*)(void *,
struct _xmlError *)’}
898 | xmlStructuredErrorFunc handler);
| ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~
xml.c: In function ‘XmlTableFetchRow’:
xml.c:4562:62: error: passing argument 2 of ‘xmlSetStructuredErrorFunc’ from
incompatible pointer type [-Wincompatible-pointer-types]
4562 | xmlSetStructuredErrorFunc((void *) xtCxt->xmlerrcxt,
xml_errorHandler);
|
^~~~~~~~~~~~~~~~
| |
| void
(*)(void *, xmlError *) {aka void (*)(void *, struct _xmlError *)}
/usr/include/libxml2/libxml/xmlerror.h:898:57: note: expected
‘xmlStructuredErrorFunc’ {aka ‘void (*)(void *, const struct _xmlError *)’} but
argument is of type ‘void (*)(void *, xmlError *)’ {aka ‘void (*)(void *,
struct _xmlError *)’}
898 | xmlStructuredErrorFunc handler);
| ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~
xml.c: In function ‘XmlTableGetValue’:
xml.c:4616:62: error: passing argument 2 of ‘xmlSetStructuredErrorFunc’ from
incompatible pointer type [-Wincompatible-pointer-types]
4616 | xmlSetStructuredErrorFunc((void *) xtCxt->xmlerrcxt,
xml_errorHandler);
|
^~~~~~~~~~~~~~~~
| |
| void
(*)(void *, xmlError *) {aka void (*)(void *, struct _xmlError *)}
/usr/include/libxml2/libxml/xmlerror.h:898:57: note: expected
‘xmlStructuredErrorFunc’ {aka ‘void (*)(void *, const struct _xmlError *)’} but
argument is of type ‘void (*)(void *, xmlError *)’ {aka ‘void (*)(void *,
struct _xmlError *)’}
898 | xmlStructuredErrorFunc handler);
| ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~
xml.c: In function ‘XmlTableDestroyOpaque’:
xml.c:4759:62: error: passing argument 2 of ‘xmlSetStructuredErrorFunc’ from
incompatible pointer type [-Wincompatible-pointer-types]
4759 | xmlSetStructuredErrorFunc((void *) xtCxt->xmlerrcxt,
xml_errorHandler);
|
^~~~~~~~~~~~~~~~
| |
| void
(*)(void *, xmlError *) {aka void (*)(void *, struct _xmlError *)}
/usr/include/libxml2/libxml/xmlerror.h:898:57: note: expected
‘xmlStructuredErrorFunc’ {aka ‘void (*)(void *, const struct _xmlError *)’} but
argument is of type ‘void (*)(void *, xmlError *)’ {aka ‘void (*)(void *,
struct _xmlError *)’}
898 | xmlStructuredErrorFunc handler);
| ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~
make[4]: *** [<builtin>: xml.o] Error 1
make[4]: *** Waiting for unfinished jobs....
cc1: all warnings being treated as errors
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]