rpmbuild error

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

I have not done this for a while, and I was trying to build a small rpm using a previously written .spec file which I had created some time ago and which compiled without incident till F27.

The spec file is at: https://paste.fedoraproject.org/paste/UyRdT3LJxQ5cW21SjBeR9w

The source is available at: https://code.google.com/archive/p/wbar/downloads

So, I get the error:


$ rpmbuild -bb wbar.spec 
warning: Macro expanded in comment on line 11: %{name}-%{version}.tar.bz2

Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.XYyyfC
+ umask 022
+ cd /home/maitra/rpmbuild/BUILD
+ cd /home/maitra/rpmbuild/BUILD
+ rm -rf wbar-2.3.4
+ /usr/bin/bzip2 -dc /home/maitra/rpmbuild/SOURCES/wbar-2.3.4.tar.bz2
+ /usr/bin/tar -xof -
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd wbar-2.3.4
+ /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w .
+ exit 0
Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.Am2P0X
+ umask 022
+ cd /home/maitra/rpmbuild/BUILD
+ cd wbar-2.3.4
+ autoreconf -if
aclocal: warning: couldn't open directory 'm4': No such file or directory
src/Makefile.am:18: warning: source file '$(top_srcdir)/src/core/Bar.cc' is in a subdirectory,
src/Makefile.am:18: but option 'subdir-objects' is disabled
automake: warning: possible forward-incompatibility.
automake: At least a source file is in a subdirectory, but the 'subdir-objects'
automake: automake option hasn't been enabled.  For now, the corresponding output
automake: object file(s) will be placed in the top-level directory.  However,
automake: this behaviour will change in future Automake versions: they will
automake: unconditionally cause object files to be placed in the same subdirectory
automake: of the corresponding sources.
automake: You are advised to start using 'subdir-objects' option throughout your
automake: project, to avoid future incompatibilities.
src/Makefile.am:18: warning: source file '$(top_srcdir)/src/core/Icon.cc' is in a subdirectory,
src/Makefile.am:18: but option 'subdir-objects' is disabled
src/Makefile.am:18: warning: source file '$(top_srcdir)/src/core/Main.cc' is in a subdirectory,
src/Makefile.am:18: but option 'subdir-objects' is disabled
src/Makefile.am:18: warning: source file '$(top_srcdir)/src/core/SuperBar.cc' is in a subdirectory,
src/Makefile.am:18: but option 'subdir-objects' is disabled
src/Makefile.am:18: warning: source file '$(top_srcdir)/src/core/SuperIcon.cc' is in a subdirectory,
src/Makefile.am:18: but option 'subdir-objects' is disabled
src/Makefile.am:18: warning: source file '$(top_srcdir)/src/core/XWin.cc' is in a subdirectory,
src/Makefile.am:18: but option 'subdir-objects' is disabled
src/Makefile.am:43: warning: source file '$(top_srcdir)/src/utils/App.cc' is in a subdirectory,
src/Makefile.am:43: but option 'subdir-objects' is disabled
src/Makefile.am:43: warning: source file '$(top_srcdir)/src/utils/Config.cc' is in a subdirectory,
src/Makefile.am:43: but option 'subdir-objects' is disabled
src/Makefile.am:43: warning: source file '$(top_srcdir)/src/utils/Utils.cc' is in a subdirectory,
src/Makefile.am:43: but option 'subdir-objects' is disabled
src/Makefile.am:43: warning: source file '$(top_srcdir)/src/utils/OptParser.cc' is in a subdirectory,
src/Makefile.am:43: but option 'subdir-objects' is disabled
src/Makefile.am:34: warning: source file '$(top_srcdir)/src/config/Run.cc' is in a subdirectory,
src/Makefile.am:34: but option 'subdir-objects' is disabled
src/Makefile.am:34: warning: source file '$(top_srcdir)/src/config/Functions.cc' is in a subdirectory,
src/Makefile.am:34: but option 'subdir-objects' is disabled
src/Makefile.am:34: warning: source file '$(top_srcdir)/src/config/MainConfig.cc' is in a subdirectory,
src/Makefile.am:34: but option 'subdir-objects' is disabled
+ CFLAGS='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection'
+ export CFLAGS
+ CXXFLAGS='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection'
+ export CXXFLAGS
+ FFLAGS='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -I/usr/lib64/gfortran/modules'
+ export FFLAGS
+ FCFLAGS='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -I/usr/lib64/gfortran/modules'
+ export FCFLAGS
+ LDFLAGS='-Wl,-z,relro  -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld'
+ export LDFLAGS
+ '[' 1 = 1 ']'
+++ dirname ./configure
++ find . -name config.guess -o -name config.sub
+ '[' 1 = 1 ']'
+ '[' x '!=' 'x-Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld' ']'
++ find . -name 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
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 whether make supports nested variables... yes
checking whether UID '1000' is supported by ustar format... yes
checking whether GID '1000' is supported by ustar format... yes
checking how to create a ustar tar archive... gnutar
checking for x86_64-redhat-linux-gnu-g++... no
checking for x86_64-redhat-linux-gnu-c++... no
checking for x86_64-redhat-linux-gnu-gpp... no
checking for x86_64-redhat-linux-gnu-aCC... no
checking for x86_64-redhat-linux-gnu-CC... no
checking for x86_64-redhat-linux-gnu-cxx... no
checking for x86_64-redhat-linux-gnu-cc++... no
checking for x86_64-redhat-linux-gnu-cl.exe... no
checking for x86_64-redhat-linux-gnu-FCC... no
checking for x86_64-redhat-linux-gnu-KCC... no
checking for x86_64-redhat-linux-gnu-RCC... no
checking for x86_64-redhat-linux-gnu-xlC_r... no
checking for x86_64-redhat-linux-gnu-xlC... no
checking for g++... g++
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 g++ accepts -g... yes
checking for style of include used by make... GNU
checking dependency style of g++... none
checking for x86_64-redhat-linux-gnu-gcc... no
checking for gcc... gcc
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 how to run the C preprocessor... gcc -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 whether NLS is requested... yes
checking for intltool-update... /bin/intltool-update
checking for intltool-merge... /bin/intltool-merge
checking for intltool-extract... /bin/intltool-extract
checking for xgettext... /bin/xgettext
checking for msgmerge... /bin/msgmerge
checking for msgfmt... /bin/msgfmt
checking for gmsgfmt... /bin/msgfmt
checking for perl... /bin/perl
checking for perl >= 5.8.1... 5.26.2
checking for XML::Parser... ok
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 for LC_MESSAGES... yes
checking for CFPreferencesCopyAppValue... no
checking for CFLocaleCopyCurrent... no
checking libintl.h usability... yes
checking libintl.h presence... yes
checking for libintl.h... yes
checking for ngettext in libc... yes
checking for dgettext in libc... yes
checking for bind_textdomain_codeset... yes
checking for msgfmt... (cached) /bin/msgfmt
checking for dcgettext... yes
checking if msgfmt accepts -c... yes
checking for gmsgfmt... (cached) /bin/msgfmt
checking for xgettext... (cached) /bin/xgettext
checking for x86_64-redhat-linux-gnu-pkg-config... /bin/x86_64-redhat-linux-gnu-pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for modules... yes
checking for gui_modules... yes
checking for pidof... /bin/pidof
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating share/Makefile
config.status: creating etc/Makefile
config.status: creating etc/wbar.cfg
config.status: creating etc/wbar.desktop.in
config.status: creating pixmaps/Makefile
config.status: creating po/Makefile.in
config.status: creating doc/Makefile
config.status: creating doc/man/Makefile
config.status: creating doc/man/es/Makefile
config.status: creating src/Makefile
config.status: creating config.h
config.status: executing depfiles commands
config.status: executing default-1 commands
config.status: executing po/stamp-it commands
=======================================

Execute make update-po

es:
.............. done.
110 translated messages.
de:
.............. done.
108 translated messages, 2 untranslated messages.
fi:
.............. done.
33 translated messages, 2 fuzzy translations, 75 untranslated messages.

=======================================
+ make -j4
make  all-recursive
make[1]: Entering directory '/home/maitra/rpmbuild/BUILD/wbar-2.3.4'
Making all in src
make[2]: Entering directory '/home/maitra/rpmbuild/BUILD/wbar-2.3.4/src'
g++ -DHAVE_CONFIG_H -I. -I..  -DPACKAGE_LOCALE_DIR=\""/usr/share/locale"\" -DPACKAGE_SRC_DIR=\""."\" -DPACKAGE_DATA_DIR=\""/usr/share"\" -Wall -Wunused -Werror -I../src/utils  -I/usr/include/gtk-2.0 -I/usr/lib64/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/fribidi -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/uuid -I/usr/include/harfbuzz -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/atk-1.0 -I/usr/include/libglade-2.0 -pthread -I/usr/include/libxml2  -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -c -o wbar_config-Functions.o `test -f '../src/config/Functions.cc' || echo './'
 `../src/config/Functions.cc
In file included from /usr/include/gtk-2.0/gtk/gtk.h:89,
                 from ../src/config/Functions.h:4,
                 from ../src/config/Functions.cc:1:
/usr/include/gtk-2.0/gtk/gtkfilechooserbutton.h:59:8: error: unnecessary parentheses in declaration of '__gtk_reserved1' [-Werror=parentheses]
   void (*__gtk_reserved1);
        ^
/usr/include/gtk-2.0/gtk/gtkfilechooserbutton.h:60:8: error: unnecessary parentheses in declaration of '__gtk_reserved2' [-Werror=parentheses]
   void (*__gtk_reserved2);
        ^
/usr/include/gtk-2.0/gtk/gtkfilechooserbutton.h:61:8: error: unnecessary parentheses in declaration of '__gtk_reserved3' [-Werror=parentheses]
   void (*__gtk_reserved3);
        ^
/usr/include/gtk-2.0/gtk/gtkfilechooserbutton.h:62:8: error: unnecessary parentheses in declaration of '__gtk_reserved4' [-Werror=parentheses]
   void (*__gtk_reserved4);
        ^
/usr/include/gtk-2.0/gtk/gtkfilechooserbutton.h:63:8: error: unnecessary parentheses in declaration of '__gtk_reserved5' [-Werror=parentheses]
   void (*__gtk_reserved5);
        ^
/usr/include/gtk-2.0/gtk/gtkfilechooserbutton.h:64:8: error: unnecessary parentheses in declaration of '__gtk_reserved6' [-Werror=parentheses]
   void (*__gtk_reserved6);
        ^
/usr/include/gtk-2.0/gtk/gtkfilechooserbutton.h:65:8: error: unnecessary parentheses in declaration of '__gtk_reserved7' [-Werror=parentheses]
   void (*__gtk_reserved7);
        ^
In file included from /usr/include/gtk-2.0/gtk/gtk.h:173,
                 from ../src/config/Functions.h:4,
                 from ../src/config/Functions.cc:1:
/usr/include/gtk-2.0/gtk/gtkstatusicon.h:76:8: error: unnecessary parentheses in declaration of '__gtk_reserved1' [-Werror=parentheses]
   void (*__gtk_reserved1);
        ^
/usr/include/gtk-2.0/gtk/gtkstatusicon.h:77:8: error: unnecessary parentheses in declaration of '__gtk_reserved2' [-Werror=parentheses]
   void (*__gtk_reserved2);
        ^
cc1plus: all warnings being treated as errors
make[2]: *** [Makefile:678: wbar_config-Functions.o] Error 1
make[2]: Leaving directory '/home/maitra/rpmbuild/BUILD/wbar-2.3.4/src'
make[1]: *** [Makefile:405: all-recursive] Error 1
make[1]: Leaving directory '/home/maitra/rpmbuild/BUILD/wbar-2.3.4'
make: *** [Makefile:346: all] Error 2
error: Bad exit status from /var/tmp/rpm-tmp.Am2P0X (%build)


RPM build errors:
    Macro expanded in comment on line 11: %{name}-%{version}.tar.bz2

    Bad exit status from /var/tmp/rpm-tmp.Am2P0X (%build)



I wonder: what is causing these errors? Line 11 of the file seems to be something else. 

I would like to put this rpm up on Fedora if possible.

Many thanks and best wishes,
Ranjan

-- 
Important Notice: This mailbox is ignored: e-mails are set to be deleted on receipt. Please respond to the mailing list if appropriate. For those needing to send personal or professional e-mail, please use appropriate addresses.
_______________________________________________
users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/users@xxxxxxxxxxxxxxxxxxxxxxx



[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux