Bug 1884997

Summary: qemu-kvm FTBFS on rhel7.9
Product: Red Hat Enterprise Linux 7 Reporter: Tuomo Soini <tis>
Component: qemu-kvmAssignee: Miroslav Rezanina <mrezanin>
Status: CLOSED ERRATA QA Contact: Quan Wenli <wquan>
Severity: unspecified Docs Contact:
Priority: high    
Version: 7.9CC: jinzhao, jmaloy, jreznik, juzhang, mrezanin, nss-nspr-maint, riehecky, rrelyea, virt-maint
Target Milestone: rcKeywords: Triaged, ZStream
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: qemu-kvm-1.5.3-175.el7_9.3 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1885321 (view as bug list) Environment:
Last Closed: 2021-02-02 12:07:01 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1885321    
Attachments:
Description Flags
End of config.log none

Description Tuomo Soini 2020-10-04 10:41:16 UTC
After nss-3.53.1 upgrade qemu-kvm fails to build. Configure gives this error:

ERROR: User requested feature nss
       configure was not able to find it

This configure used C code snippet fails to build (succeeds with nss-3.44.0)

#include <pk11pub.h>
int main(void) { PK11_FreeSlot(0); return 0; }

Comment 2 Tuomo Soini 2020-10-04 17:33:08 UTC
Created attachment 1718817 [details]
End of config.log

Comment 4 Tuomo Soini 2020-10-05 15:14:45 UTC
Actually that was bad testing from me. I change component to qemu-kvm because nss is not the reason for this compiler warning.

So on 7.8 build wroks.
On 7.9 build fails - and it is not about nss version. On 7.9 with old nss-3.44.0 builds fails identically.

Comment 18 Quan Wenli 2021-01-08 07:09:56 UTC
Have successfully reproduce it with qemu-kvm-1.5.3-175.el7_9.1. 

With qemu-kvm-1.5.3-175.el7_9.1:

+ ./configure --prefix=/usr --libdir=/usr/lib64 --sysconfdir=/etc --interp-prefix=/usr/qemu-%M --audio-drv-list=pa,alsa --with-confsuffix=/qemu-kvm --localstatedir=/var --libexecdir=/usr/libexec --with-pkgversion=qemu-kvm-1.5.3-175.el7.test --disable-strip --disable-qom-cast-debug '--extra-ldflags=-Wl,--build-id -pie -Wl,-z,relro -Wl,-z,now' '--extra-cflags=-O2 -g -pipe -Wall  -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -fPIE -DPIE' --enable-trace-backend=dtrace --enable-werror --disable-xen --disable-virtfs --enable-kvm --enable-libusb --enable-spice --enable-seccomp --disable-fdt --enable-docs --disable-sdl --disable-debug-tcg --disable-sparse --disable-brlapi --disable-bluez --disable-vde --disable-curses --enable-curl --enable-libssh2 --enable-vnc-tls --enable-vnc-sasl --enable-linux-aio --enable-smartcard-nss --enable-lzo --enable-snappy --enable-usb-redir --enable-vnc-png --disable-vnc-jpeg --enable-vnc-ws --enable-uuid --disable-vhost-scsi --disable-guest-agent --disable-live-block-ops --disable-live-block-migration --enable-rbd --enable-glusterfs --enable-tcmalloc --block-drv-rw-whitelist=qcow2,raw,file,host_device,blkdebug,nbd,iscsi,gluster,rbd --block-drv-ro-whitelist=vmdk,vhdx,vpc,ssh,https --iasl=/bin/false --target-list=x86_64-softmmu

ERROR: User requested feature nss
       configure was not able to find it

error: Bad exit status from /var/tmp/rpm-tmp.mxuYra (%build)


RPM build errors:
    Bad exit status from /var/tmp/rpm-tmp.mxuYra (%build)
make: *** [rh-rpms] Error 1



With qemu-kvm-1.5.3-175.el7_9.3, there are no build error. so set it to VERIFIED. thanks,

Comment 23 errata-xmlrpc 2021-02-02 12:07:01 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Moderate: qemu-kvm security and bug fix update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2021:0347