Bug 2259166 - perl-PDF-Haru-1.00-42.fc40 FTBFS: Haru.xs:1195:44: error: passing argument 2 of ‘HPDF_Page_SetDash’ from incompatible pointer type
Summary: perl-PDF-Haru-1.00-42.fc40 FTBFS: Haru.xs:1195:44: error: passing argument 2 ...
Keywords:
Status: NEW
Alias: None
Product: Fedora
Classification: Fedora
Component: perl-PDF-Haru
Version: 40
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Orphan Owner
QA Contact: Fedora Extras Quality Assurance
URL: https://koschei.fedoraproject.org/pac...
Whiteboard:
Depends On:
Blocks: F40FTBFS
TreeView+ depends on / blocked
 
Reported: 2024-01-19 09:31 UTC by Petr Pisar
Modified: 2025-04-25 10:14 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Petr Pisar 2024-01-19 09:31:00 UTC
perl-PDF-Haru-1.00-42.fc40 fails to build in Fedora 40:

gcc -c  -I. -D_REENTRANT -D_GNU_SOURCE -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wno-complain-wrong-lang -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -fwrapv -fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wno-complain-wrong-lang -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64   -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer   -DVERSION=\"1.00\" -DXS_VERSION=\"1.00\" -fPIC "-I/usr/lib64/perl5/CORE"   Haru.c
Haru.xs: In function ‘XS_PDF__Haru__Page_SetDash’:
Haru.xs:1195:44: error: passing argument 2 of ‘HPDF_Page_SetDash’ from incompatible pointer type [-Wincompatible-pointer-types]
 1195 |         RETVAL = HPDF_Page_SetDash  (page, ptn, num_elem + 1, phase);
      |                                            ^~~
      |                                            |
      |                                            HPDF_UINT16 * {aka short unsigned int *}
In file included from Haru.xs:5:
/usr/include/hpdf.h:1192:39: note: expected ‘const HPDF_REAL *’ {aka ‘const float *’} but argument is of type ‘HPDF_UINT16 *’ {aka ‘short unsigned int *’}
 1192 |                     const HPDF_REAL  *dash_ptn,
      |                     ~~~~~~~~~~~~~~~~~~^~~~~~~~

A difference between passing and failing build roots is at <https://koschei.fedoraproject.org/build/17079758>. This failure is probably triggered by upgrading gcc from 13.2.1-6.fc40 to 14.0.1-0.1.fc40.

Comment 1 Fedora Admin user for bugzilla script actions 2024-02-08 12:23:02 UTC
This package has changed maintainer in Fedora. Reassigning to the new maintainer of this component.

Comment 2 Aoife Moloney 2024-02-15 23:10:36 UTC
This bug appears to have been reported against 'rawhide' during the Fedora Linux 40 development cycle.
Changing version to 40.

Comment 3 Aoife Moloney 2025-04-25 10:14:43 UTC
This message is a reminder that Fedora Linux 40 is nearing its end of life.
Fedora will stop maintaining and issuing updates for Fedora Linux 40 on 2025-05-13.
It is Fedora's policy to close all bug reports from releases that are no longer
maintained. At that time this bug will be closed as EOL if it remains open with a
'version' of '40'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, change the 'version' 
to a later Fedora Linux version. Note that the version field may be hidden.
Click the "Show advanced fields" button if you do not see it.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora Linux 40 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora Linux, you are encouraged to change the 'version' to a later version
prior to this bug being closed.


Note You need to log in before you can comment on or make changes to this bug.