make[1]: Entering directory '/root/rpmbuild/BUILD/libxfce4util-4.13.2' Making all in libxfce4util make[2]: Entering directory '/root/rpmbuild/BUILD/libxfce4util-4.13.2/libxfce4util' make all-am make[3]: Entering directory '/root/rpmbuild/BUILD/libxfce4util-4.13.2/libxfce4util' GISCAN libxfce4util-1.0.gir xfce-generics.h:22: Warning: libxfce4util: multiple comment blocks documenting 'SECTION:xfce-generics:' identifier (already seen at xfce-generics.h:22). libxfce4util-config.h:33: Warning: libxfce4util: symbol='LIBXFCE4UTIL_MAJOR_VERSION': Unknown namespace for symbol 'LIBXFCE4UTIL_MAJOR_VERSION' libxfce4util-config.h:34: Warning: libxfce4util: symbol='LIBXFCE4UTIL_MINOR_VERSION': Unknown namespace for symbol 'LIBXFCE4UTIL_MINOR_VERSION' libxfce4util-config.h:35: Warning: libxfce4util: symbol='LIBXFCE4UTIL_MICRO_VERSION': Unknown namespace for symbol 'LIBXFCE4UTIL_MICRO_VERSION' /root/rpmbuild/BUILD/libxfce4util-4.13.2/libxfce4util/tmp-introspectdzffi3d2/.libs/lt-libxfce4util-1.0: symbol lookup error: /root/rpmbuild/BUILD/libxfce4util-4.13.2/libxfce4util/tmp-introspectdzffi3d2/.libs/lt-libxfce4util-1.0: undefined symbol: xfce_rc_get_type Command '['/root/rpmbuild/BUILD/libxfce4util-4.13.2/libxfce4util/tmp-introspectdzffi3d2/libxfce4util-1.0', '--introspect-dump=/root/rpmbuild/BUILD/libxfce4util-4.13.2/libxfce4util/tmp-introspectdzffi3d2/functions.txt,/root/rpmbuild/BUILD/libxfce4util-4.13.2/libxfce4util/tmp-introspectdzffi3d2/dump.xml']' returned non-zero exit status 127. make[3]: *** [/usr/share/gobject-introspection-1.0/Makefile.introspection:156: libxfce4util-1.0.gir] Error 1 make[3]: Leaving directory '/root/rpmbuild/BUILD/libxfce4util-4.13.2/libxfce4util' make[2]: *** [Makefile:730: all] Error 2 make[2]: Leaving directory '/root/rpmbuild/BUILD/libxfce4util-4.13.2/libxfce4util' make[1]: *** [Makefile:486: all-recursive] Error 1 make[1]: Leaving directory '/root/rpmbuild/BUILD/libxfce4util-4.13.2' make: *** [Makefile:418: all] Error 2 Looks like some code refactoring somewhere along the chain causes this. Please have a look and fix.
I already seen this error on OpenBSD (when trying to debug https://bugzilla.xfce.org/show_bug.cgi?id=15287), but I can't reproduce anymore :/ Should be related to https://git.xfce.org/xfce/libxfce4util/commit/?id=99f20b70df5a02043e14b82d693deda14804c17c Is libxfce4util (an old version) already installed during the build of itself ?
No it was already a *new* version of libxfce4util from Git with Introspection enabled! What helped here was this: https://src.fedoraproject.org/rpms/libxfce4util/blob/master/f/libxfce4util.spec I had to commend (or delete) line 39 of the spec file. I use a modified spec file to create rpm files for Fedora 30 (for personal purposes). So maybe it's related to line 39. After commenting, the issues are gone. But I still wonder why this hasn't happened the firs ttime I've build the introspection enabled version from Git (a few days ago).
I've just compiled git snapshot on Fedora (29 release) and everything is fine, no errors. Ali, in your .spec file you need to add these lines (no need to comment/remove line 39), just before %make_build macro. > # Needed for gobject-introspection build, because we killed RPATH > export LD_LIBRARY_PATH=$( pwd )/libxfce4util/.libs:${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}
So the problem comes from fedora build system ? https://fedoraproject.org/wiki/RPath_Packaging_Draft
Problem comes from Fedora's .spec file (GObject Introspection is not set [1]). I use my own .spec and everything is fine (and I explained how to avoid this error). [1] https://src.fedoraproject.org/rpms/libxfce4util/blob/master/f/libxfce4util.spec