Red Hat Bugzilla – Bug 852635
SDL_mixer not used with _hardened_build set
Last modified: 2012-09-17 18:26:15 EDT
Created attachment 607798 [details]
fix for sound.m4
Description of problem:
Since _hardened_build was enabled for freeciv, SDL_mixer isn't used, due to the configure script's tests failing
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Check build logs.
Lacking sound via SDL_mixer.
Sound via SDL_mixer.
From config.log, the problem is that -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 has ended up more than once on the gcc command line:
configure:20300: checking SDL_mixer.h usability
configure:20300: gcc -c -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -march=core2 -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -march=core2 -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT conftest.c >&5
gcc: fatal error: /usr/lib/rpm/redhat/redhat-hardened-cc1: attempt to rename spec 'cc1_options' to already defined spec 'rh_cc1_options_old'
This is because CFLAGS got added to CPPFLAGS in tests within m4/sound.m4
Created attachment 607800 [details]
patch for configure to avoid running autotools
Thanks, fix on it's way.
freeciv-2.3.2-3.fc18 has been submitted as an update for Fedora 18.
freeciv-2.3.2-3.fc17 has been submitted as an update for Fedora 17.
* should fix your issue,
* was pushed to the Fedora 18 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing freeciv-2.3.2-3.fc18'
as soon as you are able to.
Please go to the following url:
then log in and leave karma (feedback).
freeciv-2.3.2-3.fc17 has been pushed to the Fedora 17 stable repository. If problems still persist, please make note of it in this bug report.
freeciv-2.3.2-3.fc18 has been pushed to the Fedora 18 stable repository. If problems still persist, please make note of it in this bug report.