Bug 2366508

Summary: bluechi: FTBFS in Fedora Rawhide: error: call to ‘*__inet_pton_chk’ declared with attribute warning: inet_pton called with a destination buffer size too small
Product: [Fedora] Fedora Reporter: Karolina Surma <ksurma>
Component: bluechiAssignee: Michael Engel <mengel>
Status: CLOSED NEXTRELEASE QA Contact:
Severity: medium Docs Contact:
Priority: unspecified    
Version: 43CC: mengel, mhroncok, mkemel, pingou, psabata
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
URL: https://koschei.fedoraproject.org/package/bluechi
Whiteboard:
Fixed In Version: bluechi-1.0.1-1.fc43 Doc Type: ---
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2025-08-27 22:16:41 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 2322407, 2339432    

Description Karolina Surma 2025-05-15 13:46:30 UTC
Description of problem:
Package bluechi fails to build from source in Fedora Rawhide.

Version-Release number of selected component (if applicable):
0.10.2-1.fc43

Steps to Reproduce:
koji build --scratch f43 bluechi-0.10.2-1.fc43.src.rpm

Additional info:
This package is tracked by Koschei. See:
https://koschei.fedoraproject.org/package/bluechi

Reproducible: Always

Actual Results:
In file included from /usr/include/features.h:524,
                 from /usr/include/assert.h:35,
                 from ../src/libbluechi/test/common/network/get_address_test.c:6:
In function ‘inet_pton’,
    inlined from ‘getaddrinfo_mock’ at ../src/libbluechi/test/common/network/get_address_test.c:75:17:
/usr/include/bits/inet-fortified.h:56:10: error: call to ‘*__inet_pton_chk’ declared with attribute warning: inet_pton called with a destination buffer size too small [-Werror=attribute-warning]
   56 |   return __glibc_fortify (inet_pton, sz, sizeof (char),
      |          ^~~~~~~~~~~~~~~
In function ‘inet_pton’,
    inlined from ‘getaddrinfo_mock’ at ../src/libbluechi/test/common/network/get_address_test.c:76:22:
/usr/include/bits/inet-fortified.h:56:10: error: call to ‘*__inet_pton_chk’ declared with attribute warning: inet_pton called with a destination buffer size too small [-Werror=attribute-warning]
   56 |   return __glibc_fortify (inet_pton, sz, sizeof (char),
      |          ^~~~~~~~~~~~~~~

Comment 1 Michael Engel 2025-05-16 08:14:30 UTC
This has been fixed in this PR:
https://github.com/eclipse-bluechi/bluechi/pull/1067

It will be part of the next BlueChi release.