Bug 190518
Summary: | Changes in gcc break libxml2 compilation | ||||||
---|---|---|---|---|---|---|---|
Product: | Red Hat Enterprise Linux 4 | Reporter: | Bastien Nocera <bnocera> | ||||
Component: | gcc | Assignee: | Daniel Veillard <veillard> | ||||
Status: | CLOSED ERRATA | QA Contact: | |||||
Severity: | medium | Docs Contact: | |||||
Priority: | medium | ||||||
Version: | 4.0 | CC: | jakub, tao | ||||
Target Milestone: | --- | Keywords: | Reopened | ||||
Target Release: | --- | ||||||
Hardware: | All | ||||||
OS: | Linux | ||||||
Whiteboard: | |||||||
Fixed In Version: | RHBA-2007-0195 | Doc Type: | Bug Fix | ||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2007-05-01 22:45:59 UTC | Type: | --- | ||||
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: | 234547 | ||||||
Attachments: |
|
Description
Bastien Nocera
2006-05-03 08:53:28 UTC
That sounds like libxml2 bug. From the above error message it sounds like ./.libs/libxml2.so was compiled with -fprofile-generate (well, at least one of the source files for that library), yet when libxml2.so was linked, gcc was not given the needed -fprofile-generate option, therefore -lgcov was not linked in. I have verified that gcc 3.4.5-2 driver adds -lgcov whenever linking with -fprofile-generate, so I'm very sure the bug is not on the gcc side. The spec file does: if [ $GCC_VERSION -ge 34 ] then PROF_GEN='-fprofile-generate' PROF_USE='-fprofile-use' fi if [ "$PROF_GEN" != "" ] then # First generate a profiling version CFLAGS="${RPM_OPT_FLAGS} ${PROF_GEN}" %configure make that used to work, that breaks now, I didn't changed anything. Daniel If it doesn't use those flags when linking the shared library, then it is broken. If it worked before, it was by pure accident. Reopening and reassigning to libxml2 for fixing. It's not used in Fedora. Only in RHEL4 package, where fixing means a respin and I'm not try to do that unless everybody needed to get such a push line up saying it's needed... Daniel The component of this request is planned to be updated in Red Hat enterprise Linux 4.5. This enhancement request was evaluated by Red Hat Product Management for inclusion in a Red Hat Enterprise Linux maintenance release. Product Management has requested further review of this request by Red Hat Engineering, for potential inclusion in a Red Hat Enterprise Linux Update release for currently deployed products. This request is not yet committed for inclusion in an Update release. The following patch seems to fix the link problem while keeping the profiling in the spec, and work on my RHEL-4 U4 i386 box, Daniel Created attachment 143305 [details]
Patch fixing the spec file to avoid the linking problem
452596 build (dist-4E-qu-candidate, RHEL-4:libxml2-2_6_16-8) A version with the fix has been built in dist-4E-qu-candidate, but profiling has been deactivated for s390 since build with profiling breaks on that platform. Daniel An advisory has been issued which should help the problem described in this bug report. This report is therefore being closed with a resolution of ERRATA. For more information on the solution and/or where to find the updated files, please follow the link below. You may reopen this bug report if the solution does not work for you. http://rhn.redhat.com/errata/RHBA-2007-0195.html |