Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.

Bug 1856765

Summary: mgetty-1.2.1-8.fc33 FTBFS: logfile.c:354:20: error: 'sys_nerr' undeclared
Product: [Fedora] Fedora Reporter: Petr Pisar <ppisar>
Component: mgettyAssignee: Zdenek Dohnal <zdohnal>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: msekleta, redhat-bugzilla, tkorbar, zdohnal
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
URL: https://koschei.fedoraproject.org/package/mgetty?collection=f33
Whiteboard:
Fixed In Version: mgetty-1.2.1-9.fc33 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-07-15 06:45:44 UTC Type: Bug
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: 1803234    
Attachments:
Description Flags
Patch sent upstream none

Description Petr Pisar 2020-07-14 12:21:07 UTC
mgetty-1.2.1-8.fc33 fails to build in Fedora 33:

cc -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -fasynchronous-unwind-tables -fstack-clash-protection -Wall -DAUTO_PPP -D_FILE_OFFSET_BITS=64 -DHAVE_LOCKDEV -fno-strict-aliasing   -c -o logfile.o logfile.c
logfile.c: In function 'lprintf':
logfile.c:354:20: error: 'sys_nerr' undeclared (first use in this function)
  354 |         ( errnr <= sys_nerr ) ? sys_errlist[errnr]:
      |                    ^~~~~~~~

A difference between passing and failing build root is at <https://koschei.fedoraproject.org/build/8571801>. This is probably trigged by upgrading glibc-devel from 2.31.9000-17.fc33 to 2.31.9000-19.fc33.

Comment 1 Zdenek Dohnal 2020-07-15 06:33:41 UTC
Hi Petr,

thank you for reporting the issue!

glibc removed sys_nerr and sys_errlist from public API, since they are deprecated. I wrote the patch which uses strerror() and sent to upstream via email. mgetty will be rebuilt soon.

Comment 2 Zdenek Dohnal 2020-07-15 06:34:20 UTC
Created attachment 1701152 [details]
Patch sent upstream