I'm trying to compile a simple botnet I made, with the command gcc -static -lpthread client.c
but every time i do it, it throws these errors:
/usr/bin/ld: cannot find -lpthread
/usr/bin/ld: cannot find -lc
/usr/bin/ld: cannot find -lc
It compiles fine whenever I compile without -static
but I can't figure it out. You can find the code here. For the record this simple botnet is based off of bashlite, but has no actual DDoS functions, and cannot do any real harm. Any help would be appreciated.
I solved it when I did
yum install glibc-static