A bug with rpmbuild for fedora 17/18 and possibly others.

when the SPEC file contains
%{configure} .... then CFLAGS and is set and causes the configure to fail.

but if ./configure is used then the error does not happen.
I will report this to Fedora also.


Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.tuuACo
+ umask 022
+ cd /root/rpmbuild/BUILD
+ LANG=C
+ export LANG
+ unset DISPLAY
+ cd /root/rpmbuild/BUILD
+ rm -rf mpd-0.16.8
+ /usr/bin/bzip2 -dc /root/rpmbuild/SOURCES/mpd-0.16.8.tar.bz2
+ /usr/bin/tar -xf -
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd mpd-0.16.8
+ /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w .
+ echo 'Patch #0 (mpd-0.16.7-default-pulseaudio.patch):'
Patch #0 (mpd-0.16.7-default-pulseaudio.patch):
+ /usr/bin/cat /root/rpmbuild/SOURCES/mpd-0.16.7-default-pulseaudio.patch
+ /usr/bin/patch -s -p0 --fuzz=0
+ echo 'Patch #1 (mpd-0.16.8-socket-location.patch):'
Patch #1 (mpd-0.16.8-socket-location.patch):
+ /usr/bin/cat /root/rpmbuild/SOURCES/mpd-0.16.8-socket-location.patch
+ /usr/bin/patch -s -p1 --fuzz=0
+ exit 0
Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.eifTRR
+ umask 022
+ cd /root/rpmbuild/BUILD
+ cd mpd-0.16.8
+ LANG=C
+ export LANG
+ unset DISPLAY
+ sed -i -e 's,sound.target,sound.target network.target,g' mpd.service.in
+ CFLAGS='-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 -m32 -march=i686 -mtune=atom 
-fasynchronous-unwind-tables'
+ export CFLAGS
+ CXXFLAGS='-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 -m32 -march=i686 -mtune=atom 
-fasynchronous-unwind-tables'
+ export CXXFLAGS
+ FFLAGS='-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 -m32 -march=i686 -mtune=atom 
-fasynchronous-unwind-tables -I/usr/lib/gfortran/modules'
+ export FFLAGS
+ LDFLAGS='-Wl,-z,relro -specs=/usr/lib/rpm/redhat/redhat-hardened-ld'
+ export LDFLAGS
+ ./configure --build=i686-redhat-linux-gnu --host=i686-redhat-linux-gnu 
--program-prefix= --disable-dependency-tracking --prefix=/usr 
--exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc 
--datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib 
--libexecdir=/usr/libexec --localstatedir=/var --sharedstatedir=/var/lib 
--mandir=/usr/share/man --infodir=/usr/share/info 
--with-systemdsystemunitdir=/usr/lib/systemd/system --enable-bzip2 
--enable-lastfm --enable-mikmod --enable-zzip
checking for a BSD-compatible install... /bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for style of include used by make... GNU
checking for i686-redhat-linux-gnu-gcc... no
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking dependency style of gcc... none
checking for gcc option to accept ISO C99... -std=gnu99
checking for i686-redhat-linux-gnu-g++... no
checking for i686-redhat-linux-gnu-c++... no
checking for i686-redhat-linux-gnu-gpp... no
checking for i686-redhat-linux-gnu-aCC... no
checking for i686-redhat-linux-gnu-CC... no
checking for i686-redhat-linux-gnu-cxx... no
checking for i686-redhat-linux-gnu-cc++... no
checking for i686-redhat-linux-gnu-cl.exe... no
checking for i686-redhat-linux-gnu-FCC... no
checking for i686-redhat-linux-gnu-KCC... no
checking for i686-redhat-linux-gnu-RCC... no
checking for i686-redhat-linux-gnu-xlC_r... no
checking for i686-redhat-linux-gnu-xlC... no
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... none
checking for i686-redhat-linux-gnu-ranlib... no
checking for ranlib... ranlib
checking for g++... /usr/lib/ccache/g++
checking whether make sets $(MAKE)... (cached) yes
checking for i686-redhat-linux-gnu-pkg-config... no
checking for pkg-config... /bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking build system type... i686-redhat-linux-gnu
checking host system type... i686-redhat-linux-gnu
checking for daemon... yes
checking for fork... yes
checking for syslog... yes
checking for socket in -lsocket... no
checking for gethostbyname in -lnsl... yes
checking for pipe2... yes
checking for accept4... yes
checking for exp in -lm... yes
checking how to run the C preprocessor... gcc -std=gnu99 -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking locale.h usability... yes
checking locale.h presence... yes
checking for locale.h... yes
checking valgrind/memcheck.h usability... no
checking valgrind/memcheck.h presence... no
checking for valgrind/memcheck.h... no
checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... 64
checking for GLIB... yes
checking for ipv6... yes
checking for struct ucred... yes
checking for getpeereid... no
checking for inotify_init... yes
checking for inotify_init1... yes
checking tcpd.h usability... no
checking tcpd.h presence... no
checking for tcpd.h... no
configure: WARNING: libwrap not found -- disabling libwrap
checking for CUE... yes
configure: auto-detected libcue parsing library
checking for ID3TAG... yes
configure: auto-detected id3tag
checking for AVAHI... yes
configure: auto-detected avahi client library
checking for SQLITE... yes
configure: auto-detected SQLite database support
checking for SAMPLERATE... yes
configure: auto-detected libsamplerate resampling
checking for SAMPLERATE_013... yes
checking for CURL... yes
configure: auto-detected libcurl HTTP streaming
checking for MMS... yes
configure: auto-detected libmms mms:// protocol support
checking for BZ2_bzDecompressInit in -lbz2... yes
checking for bzip2... /bin/bzip2
checking for ZZIP... yes
checking for zip... /bin/zip
checking for AUDIOFILE... yes
configure: auto-detected audiofile decoder plugin
checking faad.h usability... no
checking faad.h presence... yes
configure: WARNING: faad.h: present but cannot be compiled
configure: WARNING: faad.h:     check for missing prerequisite headers?
configure: WARNING: faad.h: see the Autoconf documentation
configure: WARNING: faad.h:     section "Present But Cannot Be Compiled"
configure: WARNING: faad.h: proceeding with the compiler's result
configure: WARNING:     ## 
----------------------------------------------------- ##
configure: WARNING:     ## Report this to 
musicpd-dev-team@lists.sourceforge.net ##
configure: WARNING:     ## 
----------------------------------------------------- ##
checking for faad.h... no
configure: WARNING: faad2 lib needed for MP4/AAC support -- disabling MP4/AAC 
support
checking for FFMPEG... yes
configure: auto-detected ffmpeg decoder library
checking libavcodec/avcodec.h usability... yes
checking libavcodec/avcodec.h presence... yes
checking for libavcodec/avcodec.h... yes
checking for FLAC... yes
configure: auto-detected FLAC decoder
checking whether FLAC_API_SUPPORTS_OGG_FLAC is declared... yes
checking for OGG... yes
checking for GME... no
configure: WARNING: libgme not found -- disabling gme decoder plugin
checking for MAD... yes
configure: auto-detected libmad MP3 decoder plugin
checking for SHOUT... yes
configure: auto-detected shout output plugin
checking for MPG123... no
configure: WARNING: libmpg123 not found -- disabling libmpg123 decoder plugin
checking for libmikmod-config... /bin/libmikmod-config
checking for MODPLUG... yes
configure: auto-detected modplug decoder plugin
checking for SNDFILE... no
configure: WARNING: libsndfile not found -- disabling libsndfile decoder plugin
checking mpc/mpcdec.h usability... no
checking mpc/mpcdec.h presence... no
checking for mpc/mpcdec.h... no
checking mpcdec/mpcdec.h usability... no
checking mpcdec/mpcdec.h presence... yes
configure: WARNING: mpcdec/mpcdec.h: present but cannot be compiled
configure: WARNING: mpcdec/mpcdec.h:     check for missing prerequisite headers?
configure: WARNING: mpcdec/mpcdec.h: see the Autoconf documentation
configure: WARNING: mpcdec/mpcdec.h:     section "Present But Cannot Be 
Compiled"
configure: WARNING: mpcdec/mpcdec.h: proceeding with the compiler's result
configure: WARNING:     ## 
----------------------------------------------------- ##
configure: WARNING:     ## Report this to 
musicpd-dev-team@lists.sourceforge.net ##
configure: WARNING:     ## 
----------------------------------------------------- ##
checking for mpcdec/mpcdec.h... no
configure: WARNING: mpcdec lib needed for MPC support -- disabling MPC support
checking for VORBIS... yes
configure: auto-detected Ogg Vorbis decoder
checking for main in -lsidplay2... no
configure: WARNING: libsidplay2 not found -- disabling sidplay decoder plugin
checking for WAVPACK... yes
configure: auto-detected WavPack decoder plugin
checking for VORBISENC... yes
configure: auto-detected Ogg Vorbis encoder
checking lame/lame.h usability... yes
checking lame/lame.h presence... yes
checking for lame/lame.h... yes
checking for lame_init in -lmp3lame... yes
checking for TWOLAME... no
configure: WARNING: libtwolame not found -- disabling TwoLAME encoder
checking for ALSA... yes
configure: auto-detected ALSA output plugin
checking for mkfifo... yes
checking for JACK... yes
configure: auto-detected JACK output plugin
checking for jack_set_info_function... yes
checking for AO... yes
configure: auto-detected libao output plugin
checking sys/soundcard.h usability... yes
checking sys/soundcard.h presence... yes
checking for sys/soundcard.h... yes
checking for PULSE... yes
configure: auto-detected PulseAudio output plugin
checking whether the C compiler accepts -Wall... yes
checking whether the C compiler accepts -Wextra... yes
checking whether the C compiler accepts -Wmissing-prototypes... yes
checking whether the C compiler accepts -Wshadow... yes
checking whether the C compiler accepts -Wpointer-arith... yes
checking whether the C compiler accepts -Wstrict-prototypes... yes
checking whether the C compiler accepts -Wcast-qual... yes
checking whether the C compiler accepts -Wwrite-strings... yes
checking whether the C compiler accepts -pedantic... yes

########### MPD CONFIGURATION ############

Archive support:
        (+bzip2) (-ISO9660) (+ZIP) 
Autodiscovery support:
        (+Avahi) (-Bonjour) 
Client support:
        (+IPv6) (+TCP) (+UNIX Domain Sockets) 
File format support:
        (-AAC) (-C64 SID) (+FFMPEG) (+FLAC) (-FluidSynth) (-GME) (-libsndfile) 
        (+MikMod) (+MODPLUG) (+MAD) (-MPG123) (-MP4) (-Musepack) (+OggFLAC) 
        (-OggTremor) (+OggVorbis) (+WAVE) (+WavPack) (-WildMidi) 
Other features:
        (+libsamplerate) (+inotify) (+SQLite) 
Metadata support:
        (+cue) (+ID3) 
Playback support:
        (+ALSA) (-FFADO) (+FIFO) (+File Recorder) (+HTTP Daemon) (+JACK) 
(+libao) (+OSS) 
        (-OpenAL) (-OS X) (-Pipeline) (+PulseAudio) (-Media MVP) (+SHOUTcast) 
        (-Solaris) (-WinMM) 
Streaming encoder support:
        (+FLAC) (+LAME) (+Ogg Vorbis) (-TwoLAME) (+WAVE) 
Streaming support:
        (+CURL) (+Last.FM) (+MMS) 

##########################################

Generating files needed for compilation
configure: creating ./config.status
config.status: creating Makefile
config.status: creating config.h
config.status: executing depfiles commands
configure: creating ./config.status
config.status: creating Makefile
config.status: creating mpd.service
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing depfiles commands
MPD is ready for compilation, type "make" to begin.
+ make -j2
make  all-am
------------------------------------------------------------------------------
How ServiceNow helps IT people transform IT departments:
1. A cloud service to automate IT design, transition and operations
2. Dashboards that offer high-level views of enterprise services
3. A single system of record for all IT processes
http://p.sf.net/sfu/servicenow-d2d-j
_______________________________________________
Musicpd-dev-team mailing list
Musicpd-dev-team@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/musicpd-dev-team

Reply via email to