Compile Issue for F_GETPIPE_SZ
prayashkrsaha opened this issue · 2 comments
exploit-1.c: In function 'prepare_pipe':
exploit-1.c:49:48: error: 'F_GETPIPE_SZ' undeclared (first use in this function)
49 | const unsigned pipe_size = fcntl(p[1], F_GETPIPE_SZ);
| ^~~~~~~~~~~~
exploit-1.c:49:48: note: each undeclared identifier is reported only once for each function it appears in
exploit-2.c: In function 'prepare_pipe':
exploit-2.c:102:44: error: 'F_GETPIPE_SZ' undeclared (first use in this function)
102 | const unsigned pipe_size = fcntl(p[1], F_GETPIPE_SZ);
| ^~~~~~~~~~~~
exploit-2.c:102:44: note: each undeclared identifier is reported only once for each function it appears in
If you are compiling this on Debian, make sure you have GCC and the build-essential packages installed.
This is a fresh install of Ubuntu 20.04 LTS. I have GCC on the system using conda forge as I don't have the root password to install it using the apt package manager.