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 - mgetty-1.2.1-8.fc33 FTBFS: logfile.c:354:20: error: 'sys_nerr' undeclared
Summary: mgetty-1.2.1-8.fc33 FTBFS: logfile.c:354:20: error: 'sys_nerr' undeclared
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: mgetty
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Zdenek Dohnal
QA Contact: Fedora Extras Quality Assurance
URL: https://koschei.fedoraproject.org/pac...
Whiteboard:
Depends On:
Blocks: F33FTBFS
TreeView+ depends on / blocked
 
Reported: 2020-07-14 12:21 UTC by Petr Pisar
Modified: 2020-07-15 06:45 UTC (History)
4 users (show)

Fixed In Version: mgetty-1.2.1-9.fc33
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-07-15 06:45:44 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
Patch sent upstream (432 bytes, patch)
2020-07-15 06:34 UTC, Zdenek Dohnal
no flags Details | Diff

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


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