Bug 49141 - XFree86-4.1.0-0.8.6 not compile
XFree86-4.1.0-0.8.6 not compile
Product: Red Hat Raw Hide
Classification: Retired
Component: XFree86 (Show other bugs)
i686 Linux
medium Severity medium
: ---
: ---
Assigned To: Mike A. Harris
David Lawrence
Depends On:
  Show dependency treegraph
Reported: 2001-07-15 09:29 EDT by Vladimir Kondratiev
Modified: 2007-04-18 12:34 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2001-07-15 09:29:04 EDT
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 Vladimir Kondratiev 2001-07-15 09:29:01 EDT
Description of problem:
Package do not compile due to compiler flag '-fno-merge-constants'.
Failure occurred in directory xc/lib/font/bitmap, file bitmap.c
Flag mentioned is not found neither in gcc 2.96, nor in gcc 3.0

How reproducible:

Steps to Reproduce:
1.rpm --rebuild XFree86-4.1.0-0.8.6.src.rpm

Actual Results:  gcc -O2 -march=i386 -mcpu=i686 -pipe -ansi -pedantic -Wall
-Wpointer-arith -fno-merge-constants  -I../../../../include/fonts
-I../../include -I../../../../programs/Xserver/include 		  
-I../../../../include -I../  -I../../../.. -I../../../../exports/include 
-Dlinux -D__i386__ -D_POSIX_C_SOURCE=199309L -D_POSIX_SOURCE
cc1: Unrecognized option `-fno-merge-constants'

make[6]: *** [bitmap.o] Error 1

Expected Results:  compilation OK

Additional info:
Comment 1 Mike A. Harris 2001-07-15 10:48:47 EDT
You need to either:

1) Use gcc from rawhide


2) Edit the spec file and remove the changes that were done to work
   with gcc string merging, prelinking

#1 is recommended, unless this is for a production system, in which case
it is not recommended to use 4.1.0 yet anyway.

I've resolved this bug by making gcc >= 2.96-93 a buildprereq in the specfile.

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