Unable to build 18.04 version
Closed this issue · 2 comments
sbaumgartner75 commented
Build fails with the following error:
$ git clone https://github.com/danielguerra69/ubuntu-xrdp.git
$ cd ubuntu-xrdp
$ docker build -t ubuntu-xrdp:testing .
[ ... ]
modules/module-snap-policy.c:27:10: fatal error: glib.h: No such file or directory
#include <glib.h>
^~~~~~~~
compilation terminated.
make[4]: *** [modules/module_snap_policy_la-module-snap-policy.lo] Error 1
make[4]: *** Waiting for unfinished jobs....
make[4]: Entering directory '/tmp/pulseaudio-11.1/src'
/bin/bash ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -I../src -I../src/modules -I../src/modules -DPA_ALSA_PATHS_DIR=\"/usr/share/pulseaudio/alsa-mixer/paths\" -DPA_ALSA_PROFILE_SETS_DIR=\"/usr/share/pulseaudio/alsa-mixer/profile-sets\" -DPA_SRCDIR=\"/tmp/pulseaudio-11.1/src\" -DPA_BUILDDIR=\"/tmp/pulseaudio-11.1/src\" -DPULSE_LOCALEDIR=\"/usr/share/locale\" -Wdate-time -D_FORTIFY_SOURCE=2 -DFASTPATH -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -std=gnu11 -g -O2 -fdebug-prefix-map=/tmp/pulseaudio-11.1=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -W -Wextra -pipe -Wno-long-long -Wno-overlength-strings -Wunsafe-loop-optimizations -Wundef -Wformat=2 -Wlogical-op -Wsign-compare -Wformat-security -Wmissing-include-dirs -Wformat-nonliteral -Wpointer-arith -Winit-self -Wdeclaration-after-statement -Wfloat-equal -Wmissing-prototypes -Wredundant-decls -Wmissing-declarations -Wmissing-noreturn -Wshadow -Wendif-labels -Wcast-align -Wstrict-aliasing -Wwrite-strings -Wno-unused-parameter -ffast-math -fno-common -fdiagnostics-show-option -fdiagnostics-color=auto -c -o modules/rtp/module_rtp_send_la-module-rtp-send.lo `test -f 'modules/rtp/module-rtp-send.c' || echo './'`modules/rtp/module-rtp-send.c
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -I../src -I../src/modules -I../src/modules -DPA_ALSA_PATHS_DIR=\"/usr/share/pulseaudio/alsa-mixer/paths\" -DPA_ALSA_PROFILE_SETS_DIR=\"/usr/share/pulseaudio/alsa-mixer/profile-sets\" -DPA_SRCDIR=\"/tmp/pulseaudio-11.1/src\" -DPA_BUILDDIR=\"/tmp/pulseaudio-11.1/src\" -DPULSE_LOCALEDIR=\"/usr/share/locale\" -Wdate-time -D_FORTIFY_SOURCE=2 -DFASTPATH -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -std=gnu11 -g -O2 -fdebug-prefix-map=/tmp/pulseaudio-11.1=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -W -Wextra -pipe -Wno-long-long -Wno-overlength-strings -Wunsafe-loop-optimizations -Wundef -Wformat=2 -Wlogical-op -Wsign-compare -Wformat-security -Wmissing-include-dirs -Wformat-nonliteral -Wpointer-arith -Winit-self -Wdeclaration-after-statement -Wfloat-equal -Wmissing-prototypes -Wredundant-decls -Wmissing-declarations -Wmissing-noreturn -Wshadow -Wendif-labels -Wcast-align -Wstrict-aliasing -Wwrite-strings -Wno-unused-parameter -ffast-math -fno-common -fdiagnostics-show-option -fdiagnostics-color=auto -c modules/rtp/module-rtp-send.c -fPIC -DPIC -o modules/rtp/.libs/module_rtp_send_la-module-rtp-send.o
make[4]: Leaving directory '/tmp/pulseaudio-11.1/src'
Makefile:4951: recipe for target 'all' failed
make[3]: *** [all] Error 2
Makefile:812: recipe for target 'all-recursive' failed
make[2]: *** [all-recursive] Error 1
make[1]: *** [all] Error 2
Makefile:627: recipe for target 'all' failed
dh_auto_build: make -j2 -O returned exit code 2
make: *** [build] Error 25
debian/rules:34: recipe for target 'build' failed
dpkg-buildpackage: error: debian/rules build subprocess returned exit status 2
The command '/bin/sh -c dpkg-buildpackage -rfakeroot -uc -b' returned a non-zero code: 2
$ docker info
Client:
Debug Mode: false
Server:
Containers: 11
Running: 10
Paused: 0
Stopped: 1
Images: 25
Server Version: 19.03.15
Storage Driver: overlay2
Backing Filesystem: extfs
Supports d_type: true
Native Overlay Diff: true
Logging Driver: json-file
Cgroup Driver: cgroupfs
Plugins:
Volume: local
Network: bridge host ipvlan macvlan null overlay
Log: awslogs fluentd gcplogs gelf journald json-file local logentries splunk syslog
Swarm: inactive
Runtimes: runc
Default Runtime: runc
Init Binary: docker-init
containerd version: 269548fa27e0089a8b8278fc4fc781d7f65a939b
runc version: ff819c7e9184c13b7c2607fe6c30ae19403a7aff
init version: fec3683
Security Options:
seccomp
Profile: default
Kernel Version: 4.9.0-16-amd64
Operating System: Debian GNU/Linux 9 (stretch)
OSType: linux
Architecture: x86_64
CPUs: 2
Total Memory: 9.725GiB
Name: granit
ID: NSSH:TLER:HF2I:VAQL:4YLN:TOYL:SRQY:WENZ:OCCI:7QI5:YQYA:OY3I
Docker Root Dir: /var/lib/docker
Debug Mode: false
Registry: https://index.docker.io/v1/
Labels:
Experimental: false
Insecure Registries:
127.0.0.0/8
Live Restore Enabled: true
WARNING: No swap limit support
wolf-yuan-6115 commented
Same issue here
sbaumgartner75 commented
Branch 20.04 works - and as 18.04 is out of support anyway, no need to address this issue any further.