Bug 172220 - Compilation fails because of compiler profiling
Compilation fails because of compiler profiling
Product: Red Hat Enterprise Linux 4
Classification: Red Hat
Component: libxml2 (Show other bugs)
x86_64 Linux
medium Severity medium
: ---
: ---
Assigned To: Daniel Veillard
Depends On:
  Show dependency treegraph
Reported: 2005-11-01 13:24 EST by Patrice Guay
Modified: 2007-11-30 17:07 EST (History)
4 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2005-11-01 18:00:26 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Patrice Guay 2005-11-01 13:24:00 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[2]: *** [xmllint] Error 1

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

How reproducible:

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.

Additional info:

This behavior could be avoided if compiler profiling specific code is removed from the SPEC file. Doing a simple %configure, make, %makeinstall works.
Comment 1 Daniel Veillard 2005-11-01 18:00:26 EST
Already done in the version for Fedora Core 5 as well as the libxml.spec.in
present in upstream CVS,

Comment 2 Johnny Hughes 2007-01-26 04:28:06 EST
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.
Comment 3 Johnny Hughes 2007-01-26 04:41:30 EST
This bug is also reported in the following CentOS bug:
Comment 4 Daniel Veillard 2007-01-26 05:07:41 EST
w.r.t #2 this is already fixed internally, maybe you just didn see the update yet,

Comment 5 Eric Moret 2007-01-26 14:22:52 EST
Is the ftp site the place updates should be pushed? As of this writting, I 
still don't see a libxml2 file in there.

Comment 6 Daniel Veillard 2007-01-27 05:30:26 EST
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

Comment 7 Johnny Hughes 2007-01-27 06:09:11 EST
That is not the point ... I know how to edit spec files (since I build and
maintain CentOS-4).

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.

Note You need to log in before you can comment on or make changes to this bug.