MysticRyuujin / guac-install

Script for installing Guacamole on Ubuntu

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Failed. See /tmp/guacamole_1.4.0_build.log

Cryptogram-zz opened this issue · comments

Hit:1 http://ca.archive.ubuntu.com/ubuntu impish InRelease
Hit:2 http://ca.archive.ubuntu.com/ubuntu impish-updates InRelease
Hit:3 http://ca.archive.ubuntu.com/ubuntu impish-backports InRelease
Hit:4 http://ca.archive.ubuntu.com/ubuntu impish-security InRelease
Reading package lists... Done
Updating apt...
Found libmariadb-java package (known issues). Will download libmysql-java 8.0.27 and install manually
Found tomcat9 package...
Installing packages. This might take a few minutes...
OK

Downloading files...
guacamole-server-1.4.0.tar.gz 100%[=================================================>] 1.05M --.-KB/s in 0.08s
Downloaded guacamole-server-1.4.0.tar.gz
guacamole-1.4.0.war 100%[=================================================>] 12.41M 68.4MB/s in 0.2s
Downloaded guacamole-1.4.0.war
guacamole-auth-jdbc-1.4.0.tar 100%[=================================================>] 15.72M 74.1MB/s in 0.2s
Downloaded guacamole-auth-jdbc-1.4.0.tar.gz
mysql-connector-java-8.0.27.t 100%[=================================================>] 4.02M 19.4MB/s in 0.2s
Downloaded mysql-connector-java-8.0.27.tar.gz
Downloading complete.

Building Guacamole-Server with GCC 11.2.0
Configuring Guacamole-Server. This might take a minute...
OK
Running Make on Guacamole-Server. This might take a few minutes...
Failed. See /tmp/guacamole_1.4.0_build.log

------------------------ end of the log file: guacamole_1.4.0_build.log -----------------------
Making all in src/guacenc
make[2]: Entering directory '/home/administrator/guacamole-server-1.4.0/src/guacenc'
CC guacenc-buffer.o
CC guacenc-cursor.o
CC guacenc-display.o
CC guacenc-display-buffers.o
CC guacenc-display-image-streams.o
CC guacenc-display-flatten.o
CC guacenc-display-layers.o
CC guacenc-display-sync.o
CC guacenc-encode.o
CC guacenc-ffmpeg-compat.o
ffmpeg-compat.c: In function ‘guacenc_avcodec_encode_video’:
ffmpeg-compat.c:140:5: error: ‘av_init_packet’ is deprecated [-Werror=deprecated-declarations]
140 | av_init_packet(&packet);
| ^~~~~~~~~~~~~~
In file included from /usr/include/x86_64-linux-gnu/libavcodec/bsf.h:30,
from /usr/include/x86_64-linux-gnu/libavcodec/avcodec.h:44,
from video.h:27,
from ffmpeg-compat.h:24,
from ffmpeg-compat.c:21:
/usr/include/x86_64-linux-gnu/libavcodec/packet.h:488:6: note: declared here
488 | void av_init_packet(AVPacket *pkt);
| ^~~~~~~~~~~~~~
cc1: all warnings being treated as errors
make[2]: *** [Makefile:802: guacenc-ffmpeg-compat.o] Error 1
make[2]: Leaving directory '/home/administrator/guacamole-server-1.4.0/src/guacenc'
make[1]: *** [Makefile:536: all-recursive] Error 1
make[1]: Leaving directory '/home/administrator/guacamole-server-1.4.0'
make: *** [Makefile:458: all] Error 2

Fresh build of ubuntu 20.10:

Not related but yes I did try this note after on another fresh build:
"NOTE: Ubuntu users having issues with RDP have reported the following fix:"

Same results.

Workaround if you don't care about recording the screen (as in: a video), add the flag --disable-guacenc to the configure step in the script (ctrl-f "Configuring Guacamole-Server. This might take a minute").

And after installation guacd is not properly bound because of a missing guacd.conf (see recent pull request):
cat>/etc/guacamole/guacd.conf
echo'[server]'>/etc/guacamole/guacd.conf
echo'bind_host = 0.0.0.0'>/etc/guacamole/guacd.conf
echo'bind_port = 4822'>/etc/guacamole/guacd.conf

(I bound the host to 127.0.0.1 instead of 0.0.0.0 though)

Run with flag to not have make warnings result in errors CFLAGS=-Wno-error ./guac-install.sh