Code Monkey home page Code Monkey logo

Comments (5)

jbuchbinder avatar jbuchbinder commented on August 17, 2024

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.

scottbeebiwan avatar scottbeebiwan commented on August 17, 2024

Try it on an Ubuntu live CD, I assume you use some other distributon.

from tty0tty.

jbuchbinder avatar jbuchbinder commented on August 17, 2024

I'm running Ubuntu 18.04 at the moment.

from tty0tty.

SergiyIvanovAtGTI avatar SergiyIvanovAtGTI commented on August 17, 2024

in ubuntu 16.04 and i believe in older ones we should add header #include <linux/sched/signal.h>

from tty0tty.

zoltanmaric avatar zoltanmaric commented on August 17, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.