Red Hat Bugzilla – Bug 172220
Compilation fails because of compiler profiling
Last modified: 2007-11-30 17:07:21 EST
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; fr-FR; rv:1.7.12) Gecko/20050919 Firefox/1.0.7
Description of problem:
Compilation of libxml2- on RHEL U2 x86_64 (everything installed) fails with this error message:
/usr/bin/ld: .libs/xmllint: hidden symbol `__gcov_merge_single' in /usr/lib/gcc/x86_64-redhat-linux/3.4.4/libgcov.a(_gcov_merge_single.o) is referenced by DSO
/usr/bin/ld: final link failed: Nonrepresentable section on output
collect2: ld returned 1 exit status
make: *** [xmllint] Error 1
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. rpmbuild --rebuild libxml2-2.6.16-6.src.rpm
Actual Results: Error message (see above)
Expected Results: libxml2 should rebuild without error.
This behavior could be avoided if compiler profiling specific code is removed from the SPEC file. Doing a simple %configure, make, %makeinstall works.
Already done in the version for Fedora Core 5 as well as the libxml.spec.in
present in upstream CVS,
Is it really the correct answer to have a known issue building a package that
your customers may need to rebuild for the next 5 years, and it does not build?
I would think that known non-buildable packages should be address and fixed
inside the RHEL4 release set.
This bug is also reported in the following CentOS bug:
w.r.t #2 this is already fixed internally, maybe you just didn see the update yet,
Is the ftp site the place updates should be pushed? As of this writting, I
still don't see a libxml2 file in there.
It is not out yet ! Just desactivate compiler profiling in the spec file
it's trivial and that's what the Fedora and upstream packages have been doing
for 2 years now, it's not like some secret magic patch is missing !
If doing that edit scares you, I suggest you simply don't rebuild the RPM
or rebuild the Fedora source RPM, or the associated source RPMs found in
That is not the point ... I know how to edit spec files (since I build and
However, I don't add NON-Trademark/Logo (technical) items to RHEL packages.
This needs to fixed in the Enterprise Linux codebase ... it is broken.