Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 923633 - dev-db/postgresql-16.1-r1: xml.c:1177:45: error: incompatible function pointer types passing 'void (void *, xmlErrorPtr)' (aka 'void (void *, struct _xmlError *)') to
Summary: dev-db/postgresql-16.1-r1: xml.c:1177:45: error: incompatible function pointe...
Status: RESOLVED DUPLICATE of bug 923055
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-02-02 15:55 UTC by HougeLangley
Modified: 2024-02-02 16:59 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge --info (emege-info.log,7.96 KB, text/plain)
2024-02-02 15:57 UTC, HougeLangley
Details
Build Log (postgresql-16.1-r1-build-log.log,851.73 KB, text/plain)
2024-02-02 15:58 UTC, HougeLangley
Details

Note You need to log in before you can comment on or make changes to this bug.
Description HougeLangley 2024-02-02 15:55:53 UTC
/usr/lib/llvm/17/bin/clang -Wno-ignored-attributes -fno-strict-aliasing -fwrapv -fexcess-precision=standard -Wno-unused-command-line-argument -Wno-compound-token-split-by-macro -O2  -I. -I. -I../../../../src/include  -D_GNU_SOURCE -I/usr/include/libxml2  -flto=thin -emit-llvm -c -o xml.bc xml.c
xml.c:1177:45: error: incompatible function pointer types passing 'void (void *, xmlErrorPtr)' (aka 'void (void *, struct _xmlError *)') to
      parameter of type 'xmlStructuredErrorFunc' (aka 'void (*)(void *, const struct _xmlError *)') [-Wincompatible-function-pointer-types]
 1177 |         xmlSetStructuredErrorFunc((void *) errcxt, xml_errorHandler);
      |                                                    ^~~~~~~~~~~~~~~~
/usr/include/libxml2/libxml/xmlerror.h:898:29: note: passing argument to parameter 'handler' here
  898 |                                  xmlStructuredErrorFunc handler);
      |                                                         ^
xml.c:4784:55: error: incompatible function pointer types passing 'void (void *, xmlErrorPtr)' (aka 'void (void *, struct _xmlError *)') to
      parameter of type 'xmlStructuredErrorFunc' (aka 'void (*)(void *, const struct _xmlError *)') [-Wincompatible-function-pointer-types]
 4784 |         xmlSetStructuredErrorFunc((void *) xtCxt->xmlerrcxt, xml_errorHandler);
      |                                                              ^~~~~~~~~~~~~~~~
/usr/include/libxml2/libxml/xmlerror.h:898:29: note: passing argument to parameter 'handler' here
  898 |                                  xmlStructuredErrorFunc handler);
      |                                                         ^
xml.c:4838:55: error: incompatible function pointer types passing 'void (void *, xmlErrorPtr)' (aka 'void (void *, struct _xmlError *)') to
      parameter of type 'xmlStructuredErrorFunc' (aka 'void (*)(void *, const struct _xmlError *)') [-Wincompatible-function-pointer-types]
 4838 |         xmlSetStructuredErrorFunc((void *) xtCxt->xmlerrcxt, xml_errorHandler);
      |                                                              ^~~~~~~~~~~~~~~~
/usr/include/libxml2/libxml/xmlerror.h:898:29: note: passing argument to parameter 'handler' here
  898 |                                  xmlStructuredErrorFunc handler);
      |                                                         ^
xml.c:4981:55: error: incompatible function pointer types passing 'void (void *, xmlErrorPtr)' (aka 'void (void *, struct _xmlError *)') to
      parameter of type 'xmlStructuredErrorFunc' (aka 'void (*)(void *, const struct _xmlError *)') [-Wincompatible-function-pointer-types]
 4981 |         xmlSetStructuredErrorFunc((void *) xtCxt->xmlerrcxt, xml_errorHandler);
      |                                                              ^~~~~~~~~~~~~~~~
/usr/include/libxml2/libxml/xmlerror.h:898:29: note: passing argument to parameter 'handler' here
  898 |                                  xmlStructuredErrorFunc handler);
      |                                                         ^
4 errors generated.

Reproducible: Always
Comment 1 HougeLangley 2024-02-02 15:57:25 UTC
Created attachment 884040 [details]
emerge --info
Comment 2 HougeLangley 2024-02-02 15:58:52 UTC
Created attachment 884041 [details]
Build Log
Comment 3 Andreas Sturmlechner gentoo-dev 2024-02-02 16:59:35 UTC

*** This bug has been marked as a duplicate of bug 923055 ***