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 1856751

Summary: libtnc-1.25-25.fc33 FTBFS: policy_tree.c:62:77: error: ‘sys_errlist’ undeclared
Product: [Fedora] Fedora Reporter: Petr Pisar <ppisar>
Component: libtncAssignee: Tom "spot" Callaway <tcallawa>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: avagarwa, spotrh, tcallawa
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
URL: https://koschei.fedoraproject.org/package/libtnc?collection=f33
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-07-14 13:45:21 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    

Description Petr Pisar 2020-07-14 11:36:40 UTC
libtnc-1.25-25.fc3 fails to build in Fedora 33:

libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../.. -I/usr/include/libxml2 -I../../src/libtnc -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 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fPIC -DPIC -c policy_tree.c  -fPIC -DPIC -o .libs/policy_tree.o
policy_tree.c: In function ‘pt_parse_policy’:
policy_tree.c:50:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
   50 |     if (file = fopen(filename, "r"))
      |         ^~~~
policy_tree.c:55:2: warning: implicit declaration of function ‘yyparse’ [-Wimplicit-function-declaration]
   55 |  yyparse(&policy);
      |  ^~~~~~~
policy_tree.c:62:77: error: ‘sys_errlist’ undeclared (first use in this function)
   62 |  fprintf(stderr, "OSC_IMV could not open policy file '%s': %s\n", filename, sys_errlist[errno]);
      |                                                                             ^~~~~~~~~~~

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

Comment 1 Tom "spot" Callaway 2020-07-14 13:45:21 UTC
Fixed in libtnc-1.25-26.fc33