[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-block] [PATCH v2 8/9] tests/docker: Kludge for missing libunistrin
From: |
Philippe Mathieu-Daudé |
Subject: |
[Qemu-block] [PATCH v2 8/9] tests/docker: Kludge for missing libunistring.so symlink on Ubuntu 18.04 |
Date: |
Fri, 14 Jun 2019 12:07:17 +0200 |
When linking statically on Ubuntu 18.04 we get:
$ make subdir-x86_64-softmmu
[...]
LINK x86_64-softmmu/qemu-system-x86_64
c++: error: /usr/lib/x86_64-linux-gnu/libunistring.so: No such file or
directory
This library is pulled in by GTK:
$ pkg-config --libs --static gtk+-3.0
-lgtk-3 -latk-bridge-2.0 -latspi -ldbus-1 -lpthread -lsystemd -lgdk-3
-lgio-2.0 -lXinerama -lXi -lXrandr -lXcursor -lXcomposite -lXdamage -lXfixes
-lxkbcommon -lwayland-cursor -lwayland-egl -lwayland-client -lepoxy -ldl
-lpangocairo-1.0 -lpangoft2-1.0 -lharfbuzz -lm -lgraphite2 -lpango-1.0 -lm
-latk-1.0 -lcairo-gobject -lcairo -lz -lpixman-1 -lfontconfig -lexpat
-lfreetype -lexpat -lfreetype -lpng16 -lm -lz -lm -lxcb-shm -lxcb-render
-lXrender -lXext -lX11 -lpthread -lxcb -lXau -lXdmcp -lgdk_pixbuf-2.0 -lm
-lpng16 -lm -lz -lm -lz -lgio-2.0 -lz -lresolv -lselinux -lmount -lgmodule-2.0
-pthread -ldl -lgobject-2.0 -lffi -lglib-2.0 -pthread -lpcre -pthread
However, while the library is presentm, its symlink is missing:
$ ls -ld /usr/lib/x86_64-linux-gnu/libunistring.so
ls: cannot access '/usr/lib/x86_64-linux-gnu/libunistring.so': No such file
or directory
$ ls -ld /usr/lib/x86_64-linux-gnu/libunistring.so*
lrwxrwxrwx. 1 root root 21 Mar 3 2018
/usr/lib/x86_64-linux-gnu/libunistring.so.2 -> libunistring.so.2.1.0
-rw-r--r--. 1 root root 1562664 Mar 3 2018
/usr/lib/x86_64-linux-gnu/libunistring.so.2.1.0
Fix the issue by creating the missing symlink manually.
Signed-off-by: Philippe Mathieu-Daudé <address@hidden>
---
tests/docker/dockerfiles/ubuntu1804.docker | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/tests/docker/dockerfiles/ubuntu1804.docker
b/tests/docker/dockerfiles/ubuntu1804.docker
index 2e2900150b..7e45c52166 100644
--- a/tests/docker/dockerfiles/ubuntu1804.docker
+++ b/tests/docker/dockerfiles/ubuntu1804.docker
@@ -54,4 +54,8 @@ ENV PACKAGES flex bison \
RUN apt-get update && \
apt-get -y install $PACKAGES
RUN dpkg -l $PACKAGES | sort > /packages.txt
+# The libunistring2 package does not create a symlink to libunistring.so
+# Create it manually to fix:
+# error: /usr/lib/x86_64-linux-gnu/libunistring.so: No such file or directory
+RUN ln -s libunistring.so.2 /usr/lib/x86_64-linux-gnu/libunistring.so
ENV FEATURES clang pyyaml sdl2
--
2.20.1
- [Qemu-block] [PATCH v2 0/9] configure: Fix softmmu --static linking, Philippe Mathieu-Daudé, 2019/06/14
- [Qemu-block] [PATCH v2 1/9] configure: Only generate GLUSTERFS variables if glusterfs is usable, Philippe Mathieu-Daudé, 2019/06/14
- [Qemu-block] [PATCH v2 2/9] configure: Link test before auto-enabling GlusterFS libraries, Philippe Mathieu-Daudé, 2019/06/14
- [Qemu-block] [PATCH v2 3/9] configure: Link test before auto-enabling libusb library, Philippe Mathieu-Daudé, 2019/06/14
- [Qemu-block] [PATCH v2 4/9] configure: Link test before auto-enabling libusbredir library, Philippe Mathieu-Daudé, 2019/06/14
- [Qemu-block] [PATCH v2 5/9] configure: Link test before auto-enabling PulseAudio library, Philippe Mathieu-Daudé, 2019/06/14
- [Qemu-block] [PATCH v2 6/9] configure: Link test before auto-enabling OpenGL libraries, Philippe Mathieu-Daudé, 2019/06/14
- [Qemu-block] [PATCH v2 7/9] configure: Link test before auto-enabling GTK libraries, Philippe Mathieu-Daudé, 2019/06/14
- [Qemu-block] [PATCH v2 8/9] tests/docker: Kludge for missing libunistring.so symlink on Ubuntu 18.04,
Philippe Mathieu-Daudé <=
- [Qemu-block] [PATCH v2 9/9] .travis.yml: Test softmmu static linking, Philippe Mathieu-Daudé, 2019/06/14