We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[[email protected]:[PL]:/mnt/storage/home/kmeaw/psyscall]$ make cc -g -Wall -std=c89 -pedantic -c -o psyscall.o psyscall.c psyscall.c:21:43: error: dereferencing pointer to incomplete type ‘struct user’ #define PT_REGS (sizeof(((struct user *)0)->regs)/sizeof(unsigned long)) ^ psyscall.c:29:12: note: in expansion of macro ‘PT_REGS’ } regs[PT_REGS]; ^~~~~~~ psyscall.c: In function ‘init_arch’: psyscall.c:81:16: error: ‘PTRACE_GETREGS’ undeclared (first use in this function); did you mean ‘PTRACE_GETREGSET’? if (ptrace(PTRACE_GETREGS, child, NULL, ®s0) == -1) { ^~~~~~~~~~~~~~ PTRACE_GETREGSET psyscall.c:81:16: note: each undeclared identifier is reported only once for each function it appears in psyscall.c:96:20: error: ‘PTRACE_SETREGS’ undeclared (first use in this function); did you mean ‘PTRACE_GETREGS’? ptrace(PTRACE_SETREGS, child, NULL, regs); ^~~~~~~~~~~~~~ PTRACE_GETREGS psyscall.c:58:42: warning: unused variable ‘regs’ [-Wunused-variable] long regs0[PT_REGS], regs1[PT_REGS], regs[PT_REGS]; ^~~~ psyscall.c:58:26: warning: unused variable ‘regs1’ [-Wunused-variable] long regs0[PT_REGS], regs1[PT_REGS], regs[PT_REGS]; ^~~~~ psyscall.c:58:10: warning: unused variable ‘regs0’ [-Wunused-variable] long regs0[PT_REGS], regs1[PT_REGS], regs[PT_REGS]; ^~~~~ psyscall.c: In function ‘psyscall’: psyscall.c:343:12: error: ‘PTRACE_GETREGS’ undeclared (first use in this function); did you mean ‘PTRACE_GETREGSET’? ptrace(PTRACE_GETREGS, child, NULL, ®s); ^~~~~~~~~~~~~~ PTRACE_GETREGSET psyscall.c:375:12: error: ‘PTRACE_SETREGS’ undeclared (first use in this function); did you mean ‘PTRACE_GETREGS’? ptrace(PTRACE_SETREGS, pid, NULL, ®s); ^~~~~~~~~~~~~~ PTRACE_GETREGS psyscall.c:267:34: warning: unused variable ‘saved’ [-Wunused-variable] long argv[6], regs[PT_REGS], saved[PT_REGS], ret; ^~~~~ psyscall.c:267:19: warning: unused variable ‘regs’ [-Wunused-variable] long argv[6], regs[PT_REGS], saved[PT_REGS], ret; ^~~~ Makefile:10: recipe for target 'psyscall.o' failed make: *** [psyscall.o] Error 1 [[email protected]:[PL]:/mnt/storage/home/kmeaw/psyscall]$ gcc -v Using built-in specs. COLLECT_GCC=gcc COLLECT_LTO_WRAPPER=/usr/lib/gcc/aarch64-linux-gnu/7/lto-wrapper Target: aarch64-linux-gnu Configured with: ../src/configure -v --with-pkgversion='Ubuntu/Linaro 7.5.0-3ubuntu1~18.04' --with-bugurl=file:///usr/share/doc/gcc-7/README.Bugs --enable-languages=c,ada,c++,go,d,fortran,objc,obj-c++ --prefix=/usr --with-gcc-major-version-only --program-suffix=-7 --program-prefix=aarch64-linux-gnu- --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --enable-bootstrap --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-libquadmath --disable-libquadmath-support --enable-plugin --enable-default-pie --with-system-zlib --enable-multiarch --enable-fix-cortex-a53-843419 --disable-werror --enable-checking=release --build=aarch64-linux-gnu --host=aarch64-linux-gnu --target=aarch64-linux-gnu Thread model: posix gcc version 7.5.0 (Ubuntu/Linaro 7.5.0-3ubuntu1~18.04) [[email protected]:[PL]:/mnt/storage/home/kmeaw/psyscall]$ lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 18.04.5 LTS Release: 18.04 Codename: bionic
The text was updated successfully, but these errors were encountered:
No branches or pull requests
The text was updated successfully, but these errors were encountered: