Bugzilla – Bug 1180965
there is a build issue from rpm package
Last modified: 2023-04-12 00:41:43 UTC
I got a issue like this when building a package with OSC: > rpmbuild: symbol lookup error: /usr/lib64/librpmbuild.so.9: undefined symbol: rpmPushMacroFlags it worked well before updating librpmbuild9 to 4.16.0, please check it.
Please also update the 'librpmbuild9' package! (I guess we should add a requires of the specific rpm version into the package.)
(In reply to Michael Schröder from comment #1) > Please also update the 'librpmbuild9' package! > > (I guess we should add a requires of the specific rpm version into the > package.) yes, librpmbuild9 should require the matched version of "rpm" package, that's the problem. In the build environment, the version is not different: # rpm -q rpm rpm-4.15.1-8.1.x86_64 # rpm -q librpmbuild9 librpmbuild9-4.16.0-1.1.x86_64 it worked after I updated rpm to 4.16.0-1.1.
Hello, I've just found the same bug after a "zypper dup" while working under OBS (osc build): [...] [ 7s] ----------------------------------------------------------------- [ 7s] I have the following modifications for fec.spec: [ 7s] ----------------------------------------------------------------- [ 7s] ----- building fec.spec (user abuild) [ 7s] ----------------------------------------------------------------- [ 7s] ----------------------------------------------------------------- [ 7s] + exec rpmbuild -ba --define '_srcdefattr (-,root,root)' --nosignature /home/abuild/rpmbuild/SOURCES/fec.spec [ 7s] rpmbuild: symbol lookup error: /usr/lib64/librpmbuild.so.9: undefined symbol: rpmPushMacroFlags [ 7s] [ 7s] tweed failed "build fec.spec" at Sun Jan 17 12:49:03 UTC 2021. [ 7s] The buildroot was: /var/tmp/build-root/openSUSE_Tumbleweed-x86_64 zot@tweed:~/OBS/home:astronopteryx/fec> rpm -q rpm rpm-4.16.0-1.1.x86_64 zot@tweed:~/OBS/home:astronopteryx/fec> rpm -q librpmbuild9 librpmbuild9-4.16.0-1.1.x86_64 so the two versions are aligned but the problem is still present here.
You need to check the versions in the buildroot, i.e. do: chroot /var/tmp/build-root/openSUSE_Tumbleweed-x86_64 rpm -q rpm librpmbuild9
(In reply to Michael Schröder from comment #4) > You need to check the versions in the buildroot, i.e. do: > > chroot /var/tmp/build-root/openSUSE_Tumbleweed-x86_64 rpm -q rpm librpmbuild9 :/ # rpm -q librpmbuild9 librpmbuild9-4.16.0-1.1.x86_64 :/ # rpm -q rpm rpm-4.15.1-8.1.x86_64 bingo! Thank you
*** Bug 1181623 has been marked as a duplicate of this bug. ***