Bug 1180965 - there is a build issue from rpm package
Summary: there is a build issue from rpm package
Status: NEW
: 1181623 (view as bug list)
Alias: None
Product: openSUSE Tumbleweed
Classification: openSUSE
Component: Basesystem (show other bugs)
Version: Current
Hardware: Other Other
: P5 - None : Normal (vote)
Target Milestone: ---
Assignee: Michael Schröder
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-01-15 08:47 UTC by jun wang
Modified: 2023-04-12 00:41 UTC (History)
2 users (show)

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description jun wang 2021-01-15 08:47:35 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.
Comment 1 Michael Schröder 2021-01-15 11:22:11 UTC
Please also update the 'librpmbuild9' package!

(I guess we should add a requires of the specific rpm version into the package.)
Comment 2 jun wang 2021-01-15 14:07:29 UTC
(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.
Comment 3 giuseppe massimo bertani 2021-01-17 13:06:05 UTC
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.
Comment 4 Michael Schröder 2021-01-18 10:15:16 UTC
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
Comment 5 giuseppe massimo bertani 2021-01-18 21:07:53 UTC
(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
Comment 6 Aleksa Sarai 2021-02-01 00:57:15 UTC
*** Bug 1181623 has been marked as a duplicate of this bug. ***