Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 923055 - dev-db/postgresql-16.1 - xml.c: error: passing argument 2 of xmlSetStructuredErrorFunc from incompatible pointer type [-Wincompatible-pointer-types]
Summary: dev-db/postgresql-16.1 - xml.c: error: passing argument 2 of xmlSetStructured...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: PgSQL Bugs
URL: https://postgr.es/m/1389505.170638226...
Whiteboard:
Keywords: PATCH
: 923633 (view as bug list)
Depends on:
Blocks: c99-porting libxml2-2.12
  Show dependency tree
 
Reported: 2024-01-27 18:07 UTC by Toralf Förster
Modified: 2024-02-04 05:02 UTC (History)
4 users (show)

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


Attachments
emerge-info.txt (emerge-info.txt,20.27 KB, text/plain)
2024-01-27 18:07 UTC, Toralf Förster
Details
dev-db:postgresql-16.1:20240127-172949.log.xz (dev-db:postgresql-16.1:20240127-172949.log.xz,21.89 KB, application/x-xz)
2024-01-27 18:07 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,150.16 KB, text/plain)
2024-01-27 18:07 UTC, Toralf Förster
Details
environment (environment,162.98 KB, text/plain)
2024-01-27 18:07 UTC, Toralf Förster
Details
etc.clang.tar.xz (etc.clang.tar.xz,1.12 KB, application/x-xz)
2024-01-27 18:07 UTC, Toralf Förster
Details
etc.portage.tar.xz (etc.portage.tar.xz,17.14 KB, application/x-xz)
2024-01-27 18:07 UTC, Toralf Förster
Details
logs.tar.xz (logs.tar.xz,20.05 KB, application/x-xz)
2024-01-27 18:07 UTC, Toralf Förster
Details
qlist-info.txt (qlist-info.txt,249.37 KB, text/plain)
2024-01-27 18:07 UTC, Toralf Förster
Details
temp.tar.xz (temp.tar.xz,56.74 KB, application/x-xz)
2024-01-27 18:07 UTC, Toralf Förster
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2024-01-27 18:07:20 UTC
too long lines were shrinked:

x86_64-pc-linux-gnu-gcc -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Werror=vla -Wendif-labels -Wmissing-format-attribute -Wimplicit-fallthrough=3 -Wcast-function-type -Wshadow=compatible-local -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -W
x86_64-pc-linux-gnu-gcc -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Werror=vla -Wendif-labels -Wmissing-format-attribute -Wimplicit-fallthrough=3 -Wcast-function-type -Wshadow=compatible-local -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -W
x86_64-pc-linux-gnu-gcc -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Werror=vla -Wendif-labels -Wmissing-format-attribute -Wimplicit-fallthrough=3 -Wcast-function-type -Wshadow=compatible-local -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -W
x86_64-pc-linux-gnu-gcc -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Werror=vla -Wendif-labels -Wmissing-format-attribute -Wimplicit-fallthrough=3 -Wcast-function-type -Wshadow=compatible-local -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -W
x86_64-pc-linux-gnu-gcc -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Werror=vla -Wendif-labels -Wmissing-format-attribute -Wimplicit-fallthrough=3 -Wcast-function-type -Wshadow=compatible-local -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -W
xml.c: In function pg_xml_init:
xml.c:1177:52: error: passing argument 2 of xmlSetStructuredErrorFunc from incompatible pointer type [-Wincompatible-pointer-types]
 1177 |         xmlSetStructuredErrorFunc((void *) errcxt, xml_errorHandler);
      |                                                    ^~~~~~~~~~~~~~~~

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_desktop_systemd-20240125-143002

  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-pc-linux-gnu-14 *
clang/llvm (if any):
clang version 16.0.6
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/16/bin
Configuration file: /etc/clang/x86_64-pc-linux-gnu-clang.cfg
/usr/lib/llvm/16
16.0.6
Python 3.11.7
Available Ruby profiles:
  [1]   ruby31 (with Rubygems)
  [2]   ruby32 (with Rubygems)
  [3]   ruby33 (with Rubygems) *
Available Rust versions:
  [1]   rust-bin-1.74.1 *
The following VMs are available for generation-2:
1)	Eclipse Temurin JDK 17.0.8.1_p1 [openjdk-bin-17]
*)	Eclipse Temurin JDK 21.0.1_p12 [openjdk-bin-21]
Available Java Virtual Machines:
  [1]   openjdk-bin-17 
  [2]   openjdk-bin-21  system-vm

The Glorious Glasgow Haskell Compilation System, version 9.2.8
php cli (if any):
go version go1.21.6 linux/amd64

  HEAD of ::gentoo
commit f5de42d1c70e820cd152846634d290e31047dab1
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Sat Jan 27 15:48:19 2024 +0000

    2024-01-27 15:48:19 UTC

emerge -qpvO dev-db/postgresql
[ebuild  N    ] dev-db/postgresql-16.1  USE="icu kerberos ldap lz4 nls pam readline server ssl systemd xml zlib -debug -doc -llvm -perl -python (-selinux) -static-libs -tcl -uuid -zstd" PYTHON_SINGLE_TARGET="python3_11 -python3_10 -python3_12"
Comment 1 Toralf Förster gentoo-dev 2024-01-27 18:07:21 UTC
Created attachment 883321 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2024-01-27 18:07:22 UTC
Created attachment 883322 [details]
dev-db:postgresql-16.1:20240127-172949.log.xz
Comment 3 Toralf Förster gentoo-dev 2024-01-27 18:07:24 UTC
Created attachment 883323 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2024-01-27 18:07:25 UTC
Created attachment 883324 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2024-01-27 18:07:26 UTC
Created attachment 883325 [details]
etc.clang.tar.xz
Comment 6 Toralf Förster gentoo-dev 2024-01-27 18:07:27 UTC
Created attachment 883326 [details]
etc.portage.tar.xz
Comment 7 Toralf Förster gentoo-dev 2024-01-27 18:07:28 UTC
Created attachment 883327 [details]
logs.tar.xz
Comment 8 Toralf Förster gentoo-dev 2024-01-27 18:07:29 UTC
Created attachment 883328 [details]
qlist-info.txt
Comment 9 Toralf Förster gentoo-dev 2024-01-27 18:07:30 UTC
Created attachment 883329 [details]
temp.tar.xz
Comment 11 Andreas Sturmlechner gentoo-dev 2024-02-02 16:59:35 UTC
*** Bug 923633 has been marked as a duplicate of this bug. ***
Comment 12 Aurelien Minet 2024-02-03 15:30:29 UTC
FYI same problem with postgresql version 12
Regards
Comment 13 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-02-03 20:13:31 UTC
ping, please add the patch
Comment 15 Larry the Git Cow gentoo-dev 2024-02-04 05:02:32 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9a3b10c4e499a87fafd6e2df9c9f87469451014b

commit 9a3b10c4e499a87fafd6e2df9c9f87469451014b
Author:     Aaron W. Swenson <titanofold@gentoo.org>
AuthorDate: 2024-02-04 04:57:50 +0000
Commit:     Aaron W. Swenson <titanofold@gentoo.org>
CommitDate: 2024-02-04 05:02:08 +0000

    dev-db/postgresql: Fix builind with libxml-2.12
    
    Closes: https://bugs.gentoo.org/923055
    Signed-off-by: Aaron W. Swenson <titanofold@gentoo.org>

 .../postgresql/files/postgresql-12-xml-2.12.patch  |  83 ++++
 .../postgresql/files/postgresql-13-xml-2.12.patch  |  83 ++++
 .../postgresql/files/postgresql-14-xml-2.12.patch  |  83 ++++
 .../postgresql/files/postgresql-15-xml-2.12.patch  |  83 ++++
 .../postgresql/files/postgresql-16-xml-2.12.patch  |  83 ++++
 dev-db/postgresql/postgresql-12.17-r2.ebuild       | 454 ++++++++++++++++++++
 dev-db/postgresql/postgresql-13.13-r2.ebuild       | 466 ++++++++++++++++++++
 dev-db/postgresql/postgresql-14.10-r2.ebuild       | 466 ++++++++++++++++++++
 dev-db/postgresql/postgresql-15.5-r2.ebuild        | 468 ++++++++++++++++++++
 dev-db/postgresql/postgresql-16.1-r2.ebuild        | 472 +++++++++++++++++++++
 10 files changed, 2741 insertions(+)