On Thu, 2024-02-29 at 19:19 +0900, Mamoru TASAKA wrote: > Petr Pisar wrote on 2024/02/29 18:35: > > V Thu, Feb 29, 2024 at 10:02:32AM +0100, Jos de Kloe napsal(a): > > > Dear all, > > > > > > while doing koji builds for the latest eccodes version 2.34.1 I > > > ran in to an > > > issue that is puzzling to me, and I have no idea to solve this. > > > > > > The build runs just fine for f38, f39 and f41/rawhide, but for > > > f40 I get a > > > number of g++ errors like this: > > > > > > error: ‘opj_destroy_decompress’ was not declared in this scope; > > > did you > > > mean ‘opj_end_decompress’? > > > 209 | opj_destroy_decompress(dinfo); > > > | ^~~~~~~~~~~~~~~~~~~~~~ > > > | opj_end_decompress > > > > > > see: > > > https://koji.fedoraproject.org/koji/buildinfo?buildID=2412368 > > > > > > Does anyone have an idea what is happening here and how this can > > > be solved? > > > > > The function is supposed to be declared in openjpeg.h header file > > which is > > supposed to be packaged in openjpeg2-devel. > > > > Checking root.log files of eccodes builds, F40 used > > openjpeg2-devel-2.5.1-1.fc40, while F41 used openjpeg2-devel-2.5.2- > > 1.fc41. > > > > It's quite possible that opj_destroy_decompress was added in 2.5.2 > > and does > > not exist in 2.5.1. If it is so, you should specify the minimal > > version among > > BuildRequires: openjpeg2-devel >= 2.5.2. > > > > Why is openjpeg2-devel-2.5.2-1.fc40 not available in F40 build > > root? It is > > because that build has not been submitted to Bodhi and has not > > passed into > > updates repository. > > > > I recommend creating a side tag for F40, tag openjpeg2-devel-2.5.2- > > 1.fc40 > > there, build eccodes there, and both builds push into a single > > Bodhi update. > > > > -- Petr > > > > openjpeg2 header file is broken in 2.5.1: > https://github.com/uclouvain/openjpeg/issues/1514 > due to this commit: > https://github.com/uclouvain/openjpeg/commit/c4b3a91ede1d0301f7f5f50287c0bda35aa7ca7e > > and fixed in 2.5.2: > https://github.com/uclouvain/openjpeg/pull/1515 > https://github.com/uclouvain/openjpeg/commit/e521a5094be3be4f8657a2253958b0d752616479 > > So F39 and F38 buildroot openjpeg2 (2.5.0) is okay, F41 buildroot > openjpeg2 (2.5.2) is > also okay, really current F40 buildroot openjpeg2 (2.5.1) is broken. BTW I think package openjpeg2 should be renamed to openjpeg since openjpeg (1) was retired and for example is openjpeg.h header file not openjpeg2.h header file Best regards, -- Sérgio M. B. -- _______________________________________________ devel mailing list -- devel@xxxxxxxxxxxxxxxxxxxxxxx To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxxxxxxxx Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/devel@xxxxxxxxxxxxxxxxxxxxxxx Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue