displaylink driver troubles
by Sparkfist from LinuxQuestions.org on (#5H22P)
I've got an HP Elitebook 840 G2 with Linux Mint installed. I have a USB-C dock I want to use with it. But running into issues getting the driver installed. I've tried running both displaylink-driver-1.2.65.run and displaylink-driver-5.4.0-55.153.run. Both give me an error when trying to run them as root user, after chmod 755.
The text below is the log (/var/lib/dkms/evdi/1.2.65/build/make.log) from the failed install of 1.2.65
Code:DKMS make.log for evdi-1.2.65 for kernel 5.4.0-72-generic (x86_64)
Sun 25 Apr 2021 06:40:06 PM EDT
make KBUILD_VERBOSE=1 SUBDIRS=/var/lib/dkms/evdi/1.2.65/build SRCROOT=/var/lib/dkms/evdi/1.2.65/build CONFIG_MODULE_SIG= -C /lib/modules/5.4.0-72-generic/build modules
make[1]: Entering directory '/usr/src/linux-headers-5.4.0-72-generic'
make -f ./Makefile syncconfig
make -f ./scripts/Makefile.build obj=scripts/basic
gcc -Wp,-MD,scripts/basic/.fixdep.d -Wall -Wmissing-prototypes -Wstrict-prototypes -O2 -fomit-frame-pointer -std=gnu89 -o scripts/basic/fixdep scripts/basic/fixdep.c
scripts/basic/fixdep.c:97:10: fatal error: sys/types.h: No such file or directory
97 | #include <sys/types.h>
| ^~~~~~~~~~~~~
compilation terminated.
make[3]: *** [scripts/Makefile.host:107: scripts/basic/fixdep] Error 1
make[2]: *** [Makefile:550: scripts_basic] Error 2
make[1]: *** [Makefile:723: include/config/auto.conf.cmd] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-5.4.0-72-generic'
make: *** [Makefile:21: all] Error 2
Text below is the output when trying to run the 5.4.0-55
Code:Verifying archive integrity... 100% All good.
Uncompressing DisplayLink Linux Driver 5.4.0-55.153 100%
DisplayLink Linux Software 5.4.0-55.153 install script called:
Distribution discovered: Linux Mint 20.1
logname: no login name
Failed to get session path: No session 'SESSION' known
Installing
[ Installing EVDI ]
[[ Installing EVDI DKMS module ]]
Error! DKMS tree already contains: evdi-1.9.1
You cannot add the same module/version combo more than once.
EVDI DKMS module already installed.
[[ Installing module configuration files ]]
[[ Installing EVDI library ]]
cc -I../module -std=gnu99 -fPIC -D_FILE_OFFSET_BITS=64 -c -o evdi_lib.o evdi_lib.c
In file included from evdi_lib.c:5:
/usr/lib/gcc/x86_64-linux-gnu/9/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory
9 | # include_next <stdint.h>
| ^~~~~~~~~~
compilation terminated.
make: *** [<builtin>: evdi_lib.o] Error 1
ERROR: Failed to build evdi library.


The text below is the log (/var/lib/dkms/evdi/1.2.65/build/make.log) from the failed install of 1.2.65
Code:DKMS make.log for evdi-1.2.65 for kernel 5.4.0-72-generic (x86_64)
Sun 25 Apr 2021 06:40:06 PM EDT
make KBUILD_VERBOSE=1 SUBDIRS=/var/lib/dkms/evdi/1.2.65/build SRCROOT=/var/lib/dkms/evdi/1.2.65/build CONFIG_MODULE_SIG= -C /lib/modules/5.4.0-72-generic/build modules
make[1]: Entering directory '/usr/src/linux-headers-5.4.0-72-generic'
make -f ./Makefile syncconfig
make -f ./scripts/Makefile.build obj=scripts/basic
gcc -Wp,-MD,scripts/basic/.fixdep.d -Wall -Wmissing-prototypes -Wstrict-prototypes -O2 -fomit-frame-pointer -std=gnu89 -o scripts/basic/fixdep scripts/basic/fixdep.c
scripts/basic/fixdep.c:97:10: fatal error: sys/types.h: No such file or directory
97 | #include <sys/types.h>
| ^~~~~~~~~~~~~
compilation terminated.
make[3]: *** [scripts/Makefile.host:107: scripts/basic/fixdep] Error 1
make[2]: *** [Makefile:550: scripts_basic] Error 2
make[1]: *** [Makefile:723: include/config/auto.conf.cmd] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-5.4.0-72-generic'
make: *** [Makefile:21: all] Error 2
Text below is the output when trying to run the 5.4.0-55
Code:Verifying archive integrity... 100% All good.
Uncompressing DisplayLink Linux Driver 5.4.0-55.153 100%
DisplayLink Linux Software 5.4.0-55.153 install script called:
Distribution discovered: Linux Mint 20.1
logname: no login name
Failed to get session path: No session 'SESSION' known
Installing
[ Installing EVDI ]
[[ Installing EVDI DKMS module ]]
Error! DKMS tree already contains: evdi-1.9.1
You cannot add the same module/version combo more than once.
EVDI DKMS module already installed.
[[ Installing module configuration files ]]
[[ Installing EVDI library ]]
cc -I../module -std=gnu99 -fPIC -D_FILE_OFFSET_BITS=64 -c -o evdi_lib.o evdi_lib.c
In file included from evdi_lib.c:5:
/usr/lib/gcc/x86_64-linux-gnu/9/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory
9 | # include_next <stdint.h>
| ^~~~~~~~~~
compilation terminated.
make: *** [<builtin>: evdi_lib.o] Error 1
ERROR: Failed to build evdi library.