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 1422989

Summary: hardlink building issue in F26 armv7hl and i686
Product: [Fedora] Fedora Reporter: Francisco Javier Tsao Santín <tsao>
Component: hardlinkAssignee: Francisco Javier Tsao Santín <tsao>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: rawhideCC: kevin, releng, smooge, tsao
Target Milestone: ---   
Target Release: ---   
Hardware: i686   
OS: Linux   
Whiteboard:
Fixed In Version: 1.2-1 Doc Type: Bug Fix
Doc Text:
Cause: inline declarations written for GNU89 Consequence: package doesn't compile with gcc7 in 32bits Fix: Updated to C99 standard Result: package builds again
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-02-16 19:21:57 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: 1423041    

Description Francisco Javier Tsao Santín 2017-02-16 18:36:22 UTC
Description of problem:
hardlink builds fail in 32-bit architectures

Version-Release number of selected component (if applicable):
1.1-4

How reproducible:

+ gcc -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4
-grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m32 -march=i686 -fasynchronous-unwind-tables hardlink.c -o hardlink
/tmp/cc1xWk9j.o: In function `rf':
/builddir/build/BUILD/hardlink-1.1/hardlink.c:257: undefined reference to `stcmp'
collect2: error: ld returned 1 exit status

Steps to Reproduce:
1. F26 build 
2.
3.

Actual results:


Expected results:


Additional info:

Comment 1 Francisco Javier Tsao Santín 2017-02-16 19:21:57 UTC
Following the advice by Jakub Jelinek, I fixed modifying the inline declarations in this way for a better C99 compatibility:
 
__attribute__((always_inline)) inline int stcmp(struct stat *st1, struct stat *st2, int content_only)

Pushed the solution to Rawhide.

Comment 2 Francisco Javier Tsao Santín 2017-02-17 15:29:41 UTC
*** Bug 1423702 has been marked as a duplicate of this bug. ***