Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 924387 - games-strategy/0ad-0.0.26_alpha-r1: invalid conversion from ‘void (*)(void*, xmlErrorPtr)’ {aka ‘void (*)( void*, _xmlError*)’} to ‘xmlStructuredErrorFunc’ {aka ‘void (*)(void*, const _xmlError*)’} [-fpermissive]
Summary: games-strategy/0ad-0.0.26_alpha-r1: invalid conversion from ‘void (*)(void*, ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal with 1 vote (vote)
Assignee: Gentoo Games
URL: https://code.wildfiregames.com/D5219
Whiteboard:
Keywords: PATCH
Depends on:
Blocks: libxml2-2.12
  Show dependency tree
 
Reported: 2024-02-12 21:53 UTC by Quentin Retornaz
Modified: 2024-04-05 10:15 UTC (History)
8 users (show)

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


Attachments
build.log (build.log.bz2,244.28 KB, application/x-bzip2)
2024-02-12 21:57 UTC, Quentin Retornaz
Details
emerge --info (emerge-info.txt,6.98 KB, text/plain)
2024-02-12 21:59 UTC, Quentin Retornaz
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Quentin Retornaz 2024-02-12 21:53:05 UTC
Next to dev-libs/icu-74.2 update, games-strategy/0ad-0.0.26_alpha-r1 fails to build. with the following error:
../../../source/ps/XML/RelaxNG.cpp:162:50: error: invalid conversion from ‘void (*)(void*, xmlErrorPtr)’ {aka ‘void (*)(
void*, _xmlError*)’} to ‘xmlStructuredErrorFunc’ {aka ‘void (*)(void*, const _xmlError*)’} [-fpermissive]
  162 |         xmlRelaxNGSetValidStructuredErrors(ctxt, &relaxNGErrorHandler, NULL);
      |                                                  ^~~~~~~~~~~~~~~~~~~~
      |                                                  |
      |                                                  void (*)(void*, xmlErrorPtr) {aka void (*)(void*, _xmlError*)}


Reproducible: Always

Steps to Reproduce:
1. update dev-libs/icu to 74.2
2. build games-strategy/0ad-0.0.26_alpha-r1

Actual Results:  
build fail

Expected Results:  
build succeed
Comment 1 Quentin Retornaz 2024-02-12 21:57:32 UTC
Created attachment 884819 [details]
build.log
Comment 2 Quentin Retornaz 2024-02-12 21:59:32 UTC
Created attachment 884820 [details]
emerge --info
Comment 3 CaptainBlood 2024-02-16 07:06:14 UTC
Same here.
Comment 4 Vasilis Lourdas 2024-02-16 16:30:34 UTC
Here too.
Comment 5 Quentin Retornaz 2024-02-16 19:07:12 UTC
I’m trying to build games-strategy/0ad-0.0.26_alpha-r1 with this patch:
https://github.com/0ad/0ad/commit/d2426312.patch
I’ll keep you informed if that works.
Comment 6 Quentin Retornaz 2024-02-16 19:31:16 UTC
The patch I did give above is making build working
Comment 7 Vasilis Lourdas 2024-02-17 06:17:39 UTC
(In reply to Quentin Retornaz from comment #6)
> The patch I did give above is making build working

Yeah, it works for me too.
Comment 8 Richard Kenney 2024-02-20 21:38:47 UTC
The above patch fixed it for me too.
Comment 9 Jorge Nerin 2024-02-24 16:40:12 UTC
That patch also did work for me (x86_64 AMD). For anyone else reading this that may not know how to use the patch:

mkdir -p /etc/portage/patches/games-strategy/0ad-0.0.26_alpha-r1
cd /etc/portage/patches/games-strategy/0ad-0.0.26_alpha-r1
wget https://github.com/0ad/0ad/commit/d2426312.patch

And emerge again.
Comment 10 Quentin Retornaz 2024-03-08 15:35:49 UTC
Hello,
Just to remove any doubt, this patch is from upstream that did fix the issue:
https://code.wildfiregames.com/D5219
Comment 11 kavol 2024-04-01 06:23:23 UTC
thanks guys, works for me to

ping, as the solution is known, can someone with enough right just add the patch to the tree, please?
Comment 12 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-04-01 06:28:07 UTC
I'll take a quick look.
Comment 13 Larry the Git Cow gentoo-dev 2024-04-01 06:46:38 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4e42097df80ddaf3eb5ca2906bc2c8625785f6ba

commit 4e42097df80ddaf3eb5ca2906bc2c8625785f6ba
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2024-04-01 06:44:09 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2024-04-01 06:45:52 +0000

    games-strategy/0ad: fix build w/ libxml2-2.12
    
    Closes: https://bugs.gentoo.org/924387
    Signed-off-by: Sam James <sam@gentoo.org>

 games-strategy/0ad/0ad-0.0.26_alpha-r1.ebuild      |   4 +-
 .../0ad/files/0ad-0.0.26_alpha-libxml2-2.12.patch  | 274 +++++++++++++++++++++
 2 files changed, 277 insertions(+), 1 deletion(-)
Comment 14 kavol 2024-04-05 10:15:34 UTC
now that was quick :-) - thankyou!