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 1729180

Summary: lagan-2.0-25.fc31 FTBFS: src/fchaos.c:532: undefined reference to `findPrev'
Product: [Fedora] Fedora Reporter: Petr Pisar <ppisar>
Component: laganAssignee: Christian Iseli <Christian.Iseli>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 31CC: Christian.Iseli, releng
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
URL: https://apps.fedoraproject.org/koschei/package/lagan?collection=f31
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-09-10 23:03:56 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: 1700317, 1732841    

Description Petr Pisar 2019-07-11 13:48:01 UTC
lagan-2.0-25.fc31 fails to build in Fedora 31:

gcc -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -o ../chaos fchaos.c thrtrie.c skiplist.c global.c translate.c filebuffer.c -lm -DCHAOS__FLAG
[...]
BUILDSTDERR: /usr/bin/ld: /tmp/ccKa2PVI.o: in function `connectToPrev':
BUILDSTDERR: /builddir/build/BUILD/lagan20/src/fchaos.c:532: undefined reference to `findPrev'
BUILDSTDERR: collect2: error: ld returned 1 exit status

Comment 1 Petr Pisar 2019-07-11 13:54:37 UTC
I guess it's because the distribution linker flags %{build_ldflags} are not honored.

Comment 2 Ben Cotton 2019-08-13 17:10:50 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 31 development cycle.
Changing version to '31'.

Comment 3 Ben Cotton 2019-08-13 19:03:24 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 31 development cycle.
Changing version to 31.

Comment 4 Petr Pisar 2019-09-03 06:35:18 UTC
*** Bug 1735981 has been marked as a duplicate of this bug. ***

Comment 5 Christian Iseli 2019-09-10 23:03:56 UTC
Fixed in rawhide, was due to gcc failing to automatically inline a function, solved by forcing inlining