Comments (5)
Couldn't reproduce.
/tmp/tty0tty$ make
make -C module clean
make[1]: Entering directory '/tmp/tty0tty/module'
rm -rf *.o *~ core .depend .*.cmd *.ko *.mod.c .tmp_versions modules.order Module.symvers
make[1]: Leaving directory '/tmp/tty0tty/module'
make -C pts clean
make[1]: Entering directory '/tmp/tty0tty/pts'
rm -rf tty0tty *.o core
make[1]: Leaving directory '/tmp/tty0tty/pts'
make -C module default
make[1]: Entering directory '/tmp/tty0tty/module'
make -C /lib/modules/4.15.0-22-generic/build M=/tmp/tty0tty/module modules
make[2]: Entering directory '/usr/src/linux-headers-4.15.0-22-generic'
CC [M] /tmp/tty0tty/module/tty0tty.o
Building modules, stage 2.
MODPOST 1 modules
CC /tmp/tty0tty/module/tty0tty.mod.o
LD [M] /tmp/tty0tty/module/tty0tty.ko
make[2]: Leaving directory '/usr/src/linux-headers-4.15.0-22-generic'
make[1]: Leaving directory '/tmp/tty0tty/module'
make -C pts all
make[1]: Entering directory '/tmp/tty0tty/pts'
gcc -Wall -O2 -D_GNU_SOURCE -Wno-unused-but-set-variable tty0tty.c -o tty0tty
make[1]: Leaving directory '/tmp/tty0tty/pts'
/tmp/tty0tty$
from tty0tty.
Try it on an Ubuntu live CD, I assume you use some other distributon.
from tty0tty.
I'm running Ubuntu 18.04 at the moment.
from tty0tty.
in ubuntu 16.04 and i believe in older ones we should add header #include <linux/sched/signal.h>
from tty0tty.
@scottbeebiwan I just ran into the same issue, albeit on a different line, using the archive on Sourceforge on Ubuntu 18.04. Here's the output of uname -a
:
Linux zoltan-ThinkPad-T470s 4.15.0-29-generic #31-Ubuntu SMP Tue Jul 17 15:39:52 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
And the output of make
in module/
:
make -C /lib/modules/4.15.0-29-generic/build M=/home/zoltan/code/tty0tty-1.2/module modules
make[1]: Entering directory '/usr/src/linux-headers-4.15.0-29-generic'
CC [M] /home/zoltan/code/tty0tty-1.2/module/tty0tty.o
/home/zoltan/code/tty0tty-1.2/module/tty0tty.c: In function ‘tty0tty_ioctl_tiocmiwait’:
/home/zoltan/code/tty0tty-1.2/module/tty0tty.c:524:8: error: implicit declaration of function ‘signal_pending’; did you mean ‘timer_pending’? [-Werror=implicit-function-declaration]
if (signal_pending(current))
^~~~~~~~~~~~~~
timer_pending
cc1: some warnings being treated as errors
scripts/Makefile.build:339: recipe for target '/home/zoltan/code/tty0tty-1.2/module/tty0tty.o' failed
make[2]: *** [/home/zoltan/code/tty0tty-1.2/module/tty0tty.o] Error 1
Makefile:1552: recipe for target '_module_/home/zoltan/code/tty0tty-1.2/module' failed
make[1]: *** [_module_/home/zoltan/code/tty0tty-1.2/module] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-4.15.0-29-generic'
Makefile:26: recipe for target 'default' failed
make: *** [default] Error 2
However, after cloning this repo from GitHub, make
works fine.
from tty0tty.
Related Issues (20)
- tiocmiwait ioctl is broken HOT 1
- Error Compiling HOT 1
- CUSE build of tty0tty HOT 1
- Device or resource busy
- modprobe: ERROR: could not insert 'tty0tty': Device or resource busy HOT 3
- write error: Invalid argument HOT 5
- tty_port_destroy was added in 3.8.1. HOT 1
- [Solved] tty0tty error on Linux Mint 19.3 HOT 4
- Installation steps on fedora 27 HOT 1
- modprobe: ERROR: could not insert 'tty0tty': Device or resource busy HOT 9
- Not working on Linux kernel 5.12.4-arch1-2 HOT 2
- make Error
- Does not compile against kernel 5.14
- Ubuntu /module/make error HOT 8
- WSL2 support HOT 1
- Unnecessary step in the installation process HOT 1
- Resource temporarily unavailable HOT 1
- Back/forward compatibility issues HOT 1
- tty0tty failed after update to Linux 6.1 HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tty0tty.