Bug 1862551
| Summary: | update liburing to latest | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 8 | Reporter: | Jeff Moyer <jmoyer> |
| Component: | liburing | Assignee: | Jeff Moyer <jmoyer> |
| Status: | CLOSED ERRATA | QA Contact: | guazhang <guazhang> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 8.3 | CC: | axboe, corwin, coughlan, guazhang, lmiksik, revers, sgarzare |
| Target Milestone: | rc | Flags: | pm-rhel:
mirror+
|
| Target Release: | 8.3 | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2020-11-04 04:18: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: | 1769597, 1947230 | ||
|
Description
Jeff Moyer
2020-07-31 16:58:49 UTC
Thanks, acked Hello
# cat Makefile
CFLAGS ?= -g -O2
XCFLAGS =
override CFLAGS += -Wall -D_GNU_SOURCE
include ../Makefile.quiet
[root@storageqe-67 examples]# make
CC io_uring-test
CC io_uring-cp
CC link-cp
CC ucontext-cp
[root@storageqe-67 examples]# ldd io_uring-cp
linux-vdso.so.1 (0x00007fff887f9000)
liburing.so.1 => not found
libc.so.6 => /lib64/libc.so.6 (0x00007fd08ca80000)
/lib64/ld-linux-x86-64.so.2 (0x00007fd08ce43000)
[root@storageqe-67 examples]#
Hello
I get the error when run make in examples, Did I miss something?
git clone git://git.kernel.dk/liburing.git
[root@storageqe-67 examples]# make
CC io_uring-test
io_uring-test.c:13:10: fatal error: liburing.h: No such file or directory
#include "liburing.h"
^~~~~~~~~~~~
compilation terminated.
make: *** [Makefile:20: io_uring-test] Error 1
[root@storageqe-67 examples]#
> root@storageqe-67 examples]# ldd io_uring-cp > linux-vdso.so.1 (0x00007fff887f9000) > liburing.so.1 => not found > libc.so.6 => /lib64/libc.so.6 (0x00007fd08ca80000) > /lib64/ld-linux-x86-64.so.2 (0x00007fd08ce43000) You probably didn't install the library yet, so it can't find it. > I get the error when run make in examples, Did I miss something? Don't run make from inside the directory, run it from the top level and it'll work. thanks, I got it. # ldd io_uring-cp linux-vdso.so.1 (0x00007fffa4af1000) liburing.so.1 => /lib/liburing.so.1 (0x00007f22d5a7c000) libc.so.6 => /lib64/libc.so.6 (0x00007f22d56b9000) /lib64/ld-linux-x86-64.so.2 (0x00007f22d5c80000) Exactly. You'll also want to run one of the examples to ensure they load the library properly (there's really no reason it shouldn't work, that's just for completeness). For instance, from the examples directory: dd if=/dev/zero of=testfile bs=1M count=1 ./io_uring-test testfile Submitted=4, completed=4 Guangwu, can you confirm that the example program(s) run as expected? (In reply to Jeff Moyer from comment #11) > Guangwu, can you confirm that the example program(s) run as expected? Yes, It works Hello # ldd io_uring-cp linux-vdso.so.1 (0x00007ffe7bdc1000) liburing.so.1 => /lib64/liburing.so.1 (0x00007fb9e1d65000) libc.so.6 => /lib64/libc.so.6 (0x00007fb9e19a2000) /lib64/ld-linux-x86-64.so.2 (0x00007fb9e1f69000) # rpm -qa |grep liburing liburing-1.0.7-3.el8.x86_64 liburing-devel-1.0.7-3.el8.x86_64 so move to verified 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 (liburing bug fix and enhancement 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/RHBA-2020:4841 The needinfo request[s] on this closed bug have been removed as they have been unresolved for 500 days |