2.42.0 fails to compile
I'm trying to make an RPM for librsvg 2.42.0 on Fedora 24, but it fails to compile. This is what happens:
warning: bogus date in %changelog: Mon Feb 11 2006 Matthias Clasen mclasen@redhat.com 2.13.93-1 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.whU0ak
- umask 022
- cd /home/omega13a/rpmbuild/BUILD
- LANG=C
- export LANG
- unset DISPLAY
- cd /home/omega13a/rpmbuild/BUILD
- rm -rf librsvg-2.42.0
- /usr/bin/xz -dc /home/omega13a/rpmbuild/SOURCES/librsvg-2.42.0.tar.xz
- /usr/bin/tar -xof -
- STATUS=0
- '[' 0 -ne 0 ']'
- cd librsvg-2.42.0
- /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w .
- exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.IaRcX2
- umask 022
- cd /home/omega13a/rpmbuild/BUILD
- cd librsvg-2.42.0
- LANG=C
- export LANG
- unset DISPLAY
- export CC=gcc
- CC=gcc
- export CXX=g++
- CXX=g++
- GDK_PIXBUF_QUERYLOADERS=/usr/bin/gdk-pixbuf-query-loaders-64
- export GDK_PIXBUF_QUERYLOADERS
- enable_pixbuf_loader=yes
- export enable_pixbuf_loader
- CFLAGS='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic'
- export CFLAGS
- CXXFLAGS='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic'
- export CXXFLAGS
- FFLAGS='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -I/usr/lib64/gfortran/modules'
- export FFLAGS
- FCFLAGS='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -I/usr/lib64/gfortran/modules'
- export FCFLAGS
- LDFLAGS='-Wl,-z,relro -specs=/usr/lib/rpm/redhat/redhat-hardened-ld'
- export LDFLAGS
- '[' 1 = 1 ']' +++ dirname ./configure ++ find . -name config.guess -o -name config.sub
- for i in '$(find $(dirname ./configure) -name config.guess -o -name config.sub)' ++ basename ./config.guess
- '[' -f /usr/lib/rpm/redhat/config.guess ']'
- /usr/bin/rm -f ./config.guess ++ basename ./config.guess
- /usr/bin/cp -fv /usr/lib/rpm/redhat/config.guess ./config.guess '/usr/lib/rpm/redhat/config.guess' -> './config.guess'
- for i in '$(find $(dirname ./configure) -name config.guess -o -name config.sub)' ++ basename ./config.sub
- '[' -f /usr/lib/rpm/redhat/config.sub ']'
- /usr/bin/rm -f ./config.sub ++ basename ./config.sub
- /usr/bin/cp -fv /usr/lib/rpm/redhat/config.sub ./config.sub '/usr/lib/rpm/redhat/config.sub' -> './config.sub'
- '[' 1 = 1 ']'
- '[' x '!=' x-specs=/usr/lib/rpm/redhat/redhat-hardened-ld ']' ++ find . -name ltmain.sh
- for i in '$(find . -name ltmain.sh)'
- /usr/bin/sed -i.backup -e 's
compiler_flags=$compiler_flags="-specs=/usr/lib/rpm/redhat/redhat-hardened-ld"~' ./ltmain.sh - ./configure --build=x86_64-redhat-linux-gnu --host=x86_64-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/lib64 --libexecdir=/usr/libexec --localstatedir=/var --sharedstatedir=/var/lib --mandir=/usr/share/man --infodir=/usr/share/info --disable-static --disable-gtk-doc --enable-introspection --enable-vala checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... /usr/bin/mkdir -p checking for gawk... gawk checking whether make sets $(MAKE)... yes checking whether make supports nested variables... yes checking whether make supports nested variables... (cached) yes checking whether to enable maintainer-specific portions of Makefiles... yes checking whether ln -s works... yes checking for style of include used by make... GNU checking for x86_64-redhat-linux-gnu-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 whether gcc understands -c and -o together... yes checking dependency style of gcc... none checking for library containing strerror... none required checking for x86_64-redhat-linux-gnu-gcc... (cached) gcc checking whether we are using the GNU C compiler... (cached) yes checking whether gcc accepts -g... (cached) yes checking for gcc option to accept ISO C89... (cached) none needed checking whether gcc understands -c and -o together... (cached) yes checking dependency style of gcc... (cached) none checking how to run the C preprocessor... gcc -E checking for gawk... (cached) gawk checking for grep that handles long lines and -e... /usr/bin/grep checking for egrep... /usr/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 whether byte ordering is bigendian... no checking for x86_64-redhat-linux-gnu-pkg-config... /usr/bin/x86_64-redhat-linux-gnu-pkg-config checking pkg-config is at least version 0.9.0... yes checking build system type... x86_64-redhat-linux-gnu checking host system type... x86_64-redhat-linux-gnu checking how to print strings... printf checking for a sed that does not truncate output... /usr/bin/sed checking for fgrep... /usr/bin/grep -F checking for ld used by gcc... /usr/bin/ld checking if the linker (/usr/bin/ld) is GNU ld... yes checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B checking the name lister (/usr/bin/nm -B) interface... BSD nm checking the maximum length of command line arguments... 1572864 checking how to convert x86_64-redhat-linux-gnu file names to x86_64-redhat-linux-gnu format... func_convert_file_noop checking how to convert x86_64-redhat-linux-gnu file names to toolchain format... func_convert_file_noop checking for /usr/bin/ld option to reload object files... -r checking for x86_64-redhat-linux-gnu-objdump... no checking for objdump... objdump checking how to recognize dependent libraries... pass_all checking for x86_64-redhat-linux-gnu-dlltool... no checking for dlltool... no checking how to associate runtime and link libraries... printf %s\n checking for x86_64-redhat-linux-gnu-ar... no checking for ar... ar checking for archiver @FILE support... @ checking for x86_64-redhat-linux-gnu-strip... no checking for strip... strip checking for x86_64-redhat-linux-gnu-ranlib... no checking for ranlib... ranlib checking command to parse /usr/bin/nm -B output from gcc object... ok checking for sysroot... no checking for a working dd... /usr/bin/dd checking how to truncate binary pipes... /usr/bin/dd bs=4096 count=1 checking for x86_64-redhat-linux-gnu-mt... no checking for mt... mt checking if mt is a manifest tool... no checking for dlfcn.h... yes checking for objdir... .libs checking if gcc supports -fno-rtti -fno-exceptions... no checking for gcc option to produce PIC... -fPIC -DPIC checking if gcc PIC flag -fPIC -DPIC works... yes checking if gcc static flag -static works... no checking if gcc supports -c -o file.o... yes checking if gcc supports -c -o file.o... (cached) yes checking whether the gcc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes checking whether -lc should be explicitly linked in... no checking dynamic linker characteristics... GNU/Linux ld.so checking how to hardcode library paths into programs... immediate checking whether stripping libraries is possible... yes checking if libtool supports shared libraries... yes checking whether to build shared libraries... yes checking whether to build static libraries... no checking for cos in -lm... yes checking for cargo... yes checking for rustc... yes checking for some Win32 platform... no checking for native Win32... no checking for gdk-pixbuf-2.0 >= 2.20 glib-2.0 >= 2.52.0 gio-2.0 >= 2.24.0 libxml-2.0 >= 2.9.0 pangocairo >= 1.38.0 pangoft2 >= 1.38.0 cairo >= 1.2.0 cairo-png >= 1.2.0 libcroco-0.6 >= 0.6.1... yes checking for gthread-2.0 >= 2.52.0... yes checking for gmodule-2.0... yes checking for gio-2.0 gio-unix-2.0 gdk-pixbuf-2.0 cairo pangocairo... yes checking for strtok_r... yes checking for gtk+-3.0 >= 3.10.0... yes checking whether to build the GDK-Pixbuf SVG loader... yes checking for gdk-pixbuf-2.0 >= 2.20... yes checking for gdk-pixbuf-query-loaders... /usr/bin/gdk-pixbuf-query-loaders-64 checking if gcc supports "-Wl,-Bsymbolic-functions" flag... yes checking for gtk-doc... yes checking for gtkdoc-check... gtkdoc-check.test checking for gtkdoc-check... /usr/bin/gtkdoc-check checking for gtkdoc-rebase... /usr/bin/gtkdoc-rebase checking for gtkdoc-mkpdf... /usr/bin/gtkdoc-mkpdf checking whether to build gtk-doc documentation... no checking for glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0... yes checking whether to build miscellaneous tools... yes checking whether to build Rust code with debugging information... no checking for gobject-introspection... yes checking for x86_64-redhat-linux-gnu-pkg-config... (cached) /usr/bin/x86_64-redhat-linux-gnu-pkg-config checking pkg-config is at least version 0.9.0... yes checking for vala... yes checking locale.h usability... yes checking locale.h presence... yes checking for locale.h... yes checking for LC_MESSAGES... yes checking for pangoft2 >= 1.38.0... yes checking for fontconfig... yes checking that generated files are newer than configure... done configure: creating ./config.status config.status: creating librsvg-features.h config.status: creating Makefile config.status: creating librsvg-zip config.status: creating gdk-pixbuf-loader/Makefile config.status: creating tests/Makefile config.status: creating tools/Makefile config.status: creating doc/Makefile config.status: creating doc/version.xml config.status: creating config.h.win32 config.status: creating win32/Makefile config.status: creating win32/vs12/Makefile config.status: creating win32/vs12/rsvg-version-paths.props config.status: creating win32/vs14/Makefile config.status: creating win32/vs15/Makefile config.status: creating librsvg-2.0.pc config.status: creating librsvg-2.0-uninstalled.pc config.status: creating config.h config.status: executing depfiles commands config.status: executing libtool commands
librsvg-2.42.0
prefix: /usr
compiler: gcc
Debugging information for Rust: no
Build introspectable bindings: yes
Build Vala bindings: yes
Build GdkPixbuf loader: yes
GTK+ 3.10.0 or later: yes
Build miscellaneous tools: yes
- make -j4
GEN s-enum-types-h
GEN s-enum-types-c
make all-recursive
make[1]: Entering directory '/home/omega13a/rpmbuild/BUILD/librsvg-2.42.0'
Making all in .
make[2]: Entering directory '/home/omega13a/rpmbuild/BUILD/librsvg-2.42.0'
CC librsvg_2_la-librsvg-features.lo
CC librsvg_2_la-rsvg-base-file-util.lo
CC librsvg_2_la-rsvg-base.lo
CC librsvg_2_la-rsvg-cairo-clip.lo
CC librsvg_2_la-rsvg-cairo-draw.lo
CC librsvg_2_la-rsvg-cairo-render.lo
CC librsvg_2_la-rsvg-cond.lo
CC librsvg_2_la-rsvg-css.lo
CC librsvg_2_la-rsvg-defs.lo
CC librsvg_2_la-rsvg-file-util.lo
CC librsvg_2_la-rsvg-filter.lo
CC librsvg_2_la-rsvg-handle.lo
CC librsvg_2_la-rsvg-io.lo
CC librsvg_2_la-rsvg-paint-server.lo
CC librsvg_2_la-rsvg-size-callback.lo
CC librsvg_2_la-rsvg-styles.lo
CC librsvg_2_la-rsvg-text.lo
CC librsvg_2_la-rsvg-xml.lo
CC librsvg_2_la-rsvg.lo
cd ./rust &&
PKG_CONFIG_ALLOW_CROSS=1
PKG_CONFIG='/usr/bin/x86_64-redhat-linux-gnu-pkg-config'
CARGO_TARGET_DIR=/home/omega13a/rpmbuild/BUILD/librsvg-2.42.0/rust/target
cargo build --release CC rsvg_convert-rsvg-convert.o Compiling bitflags v1.0.1 Compiling utf8-ranges v1.0.0 Compiling pkg-config v0.3.9 Compiling strsim v0.6.0 error: expected ident, found # --> vendor/bitflags/src/lib.rs:423:29 | 423 | #[allow(deprecated)] | ^ | ::: vendor/bitflags/src/example_generated.rs | 4 | / bitflags! { 5 | | /// This is the sameFlags
struct defined in the crate level example. 6 | | /// Note that this struct is just for documentation purposes only, it must not be used outside 7 | | /// this crate. ... | 13 | | } 14 | | } | |_- in this macro invocation
error: Could not compile bitflags
.
Build failed, waiting for other jobs to finish...
CC rsvg_convert-rsvg-size-callback.o
CC rsvg_view_3-rsvg-view.o
CC librsvg_2_la-librsvg-enum-types.lo
rsvg-view.c: In function 'view_surface':
rsvg-view.c:563:13: warning: 'gtk_widget_override_background_color' is deprecated [-Wdeprecated-declarations]
gtk_widget_override_background_color (parent_widget, GTK_STATE_FLAG_NORMAL, &rgba);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/gtk-3.0/gtk/gtkapplication.h:27:0,
from /usr/include/gtk-3.0/gtk/gtkwindow.h:33,
from /usr/include/gtk-3.0/gtk/gtkdialog.h:32,
from /usr/include/gtk-3.0/gtk/gtkaboutdialog.h:30,
from /usr/include/gtk-3.0/gtk/gtk.h:31,
from rsvg-view.c:29:
/usr/include/gtk-3.0/gtk/gtkwidget.h:1148:14: note: declared here
void gtk_widget_override_background_color (GtkWidget *widget,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
error: build failed
Makefile:1953: recipe for target '/home/omega13a/rpmbuild/BUILD/librsvg-2.42.0/rust/target/release/librsvg_internals.a' failed
make[2]: *** [/home/omega13a/rpmbuild/BUILD/librsvg-2.42.0/rust/target/release/librsvg_internals.a] Error 101
make[2]: Leaving directory '/home/omega13a/rpmbuild/BUILD/librsvg-2.42.0'
Makefile:1489: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/home/omega13a/rpmbuild/BUILD/librsvg-2.42.0'
Makefile:912: recipe for target 'all' failed
make: *** [all] Error 2
error: Bad exit status from /var/tmp/rpm-tmp.IaRcX2 (%build)
RPM build errors: bogus date in %changelog: Mon Feb 11 2006 Matthias Clasen mclasen@redhat.com 2.13.93-1 Bad exit status from /var/tmp/rpm-tmp.IaRcX2 (%build)
If it helps, I've attached the spec file. librsvg2.spec