Ask Your Question

Why can't I rebuild source rpms in Fedora 26

asked 2017-08-18 02:37:09 -0500

Thomas Sondergaard gravatar image

updated 2017-08-18 03:52:52 -0500

hhlp gravatar image

I've recently upgraded my Fedora 25 to 26 using the graphical updater. Since the update I have wanted to modify a few of the Fedora RPMS, but in several cases just rebuilding the stock packages have failed. For example qt5-qtbase and xmlrpc-c both fail to build. This has never been a problem with previous Fedora releases. Here is the build failure from rpmbuild --rebuild xmlrpc-c-1.48.0-4.fc26.src.rpm:

FAILED: lib/abyss++/ 
ccache c++  -o lib/abyss++/ 'lib/abyss++/xmlrpc_abyss++@sha/AbyssServer.cpp.o' 'lib/abyss++/xmlrpc_abyss++@sha/AbyssChanSwitch.cpp.o' 'lib/abyss++/xmlrpc_abyss++@sha/AbyssEnvironment.cpp.o' 'lib/abyss++/xmlrpc_abyss++@sha/AbyssChanSwitchUnix.cpp.o' 'lib/abyss++/xmlrpc_abyss++@sha/AbyssChanSwitchOpenSsl.cpp.o' -Wl,--no-undefined -Wl,--as-needed -shared -fPIC -Wl,-soname, -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 -Wl,-z,relro -specs=/usr/lib/rpm/redhat/redhat-hardened-ld lib/abyss/src/ lib/libutil++/ '-Wl,-rpath,$ORIGIN/:$ORIGIN/../abyss/src:$ORIGIN/../libutil:$ORIGIN/../libutil++' -Wl,-rpath-link,/home/ts/rpmbuild/BUILD/xmlrpc-c-1.48.0/x86_64-redhat-linux-gnu/lib/abyss++:/home/ts/rpmbuild/BUILD/xmlrpc-c-1.48.0/x86_64-redhat-linux-gnu/lib/abyss/src:/home/ts/rpmbuild/BUILD/xmlrpc-c-1.48.0/x86_64-redhat-linux-gnu/lib/libutil:/home/ts/rpmbuild/BUILD/xmlrpc-c-1.48.0/x86_64-redhat-linux-gnu/lib/libutil++  
lib/abyss++/xmlrpc_abyss++@sha/AbyssServer.cpp.o: In function `xmlrpc_c::AbyssServer::Session::Impl::readSomeRequestBody(unsigned long, unsigned char*, bool*, unsigned long*)':
/home/ts/rpmbuild/BUILD/xmlrpc-c-1.48.0/x86_64-redhat-linux-gnu/../lib/abyss++/AbyssServer.cpp:232: undefined reference to `xmlrpc_strfree'
lib/abyss++/xmlrpc_abyss++@sha/AbyssServer.cpp.o: In function `xmlrpc_c::AbyssServer::Session::Impl::body[abi:cxx11]()':
AbyssServer.cpp:(.text+0x17e7): undefined reference to `xmlrpc_strfree'
lib/abyss++/xmlrpc_abyss++@sha/AbyssEnvironment.cpp.o: In function `xmlrpc_c::AbyssEnvironment::AbyssEnvironment()':
/home/ts/rpmbuild/BUILD/xmlrpc-c-1.48.0/x86_64-redhat-linux-gnu/../lib/abyss++/AbyssEnvironment.cpp:27: undefined reference to `xmlrpc_strfree'
collect2: error: ld returned 1 exit status
[149/178] "/usr/bin/python3" "/usr/bin/meson" --internal symbolextractor lib/expat/xmlparse/ 'lib/expat/xmlparse/xmlrpc_xmlparse@sha/lib/expat/xmlparse/' 
ninja: build stopped: subcommand failed.
error: Bad exit status from /var/tmp/rpm-tmp.VMJd2G (%build)
edit retag flag offensive close merge delete


It is weird. I cannot easily say anything about it until I try it myself too. Maybe some GCC updates has made it more strict in some aspect or ... (but it usually don't happen in GCC minor updates). I wonder if building using mock will succeed...

hedayat gravatar imagehedayat ( 2017-08-20 15:38:10 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2017-08-18 19:13:07 -0500

davidva gravatar image

updated 2017-08-18 19:15:19 -0500

I recommend you rebuild using mock.. gcc is special en each update....

dnf -y install mock

usermod -a -G mock your_user


mock -r fedora-26-x86_64 --init

mock -r fedora-26-x86_64 xmlrpc-c-1.48.0-4.fc26.src.rpm

results: /var/lib/mock/fedora-26-x86_64/result/

edit flag offensive delete link more


Thanks for the suggestion. I will definitely try mock, but I still don't understand why I can't rebuild e.g xmlrpc-c on my Fedora 26 in tge same manner that I have done for earlier Fedora releases

Thomas Sondergaard gravatar imageThomas Sondergaard ( 2017-08-19 12:17:20 -0500 )edit

Because your system isn't 100% clean (various development packages installed), example you can rebuild your src.rpm with a virgin docker container (a chroot clean), same way with mock...

davidva gravatar imagedavidva ( 2017-08-19 23:56:09 -0500 )edit

Question Tools



Asked: 2017-08-18 02:36:05 -0500

Seen: 411 times

Last updated: Aug 18 '17