I've been trying to compile this binary for two days solid now, and I can't figure it out. I reckon I'm missing some sort of DNS library, but I can't figure out what.
[CODE]
cc -O2 -Wall -c -pthread axfrtest.c
cc -O2 -Wall -c -pthread main.c
cc -O2 -Wall -c -pthread chkver.c
cc -O2 -Wall -c -pthread genver.c
cc -O2 -Wall -c -pthread vercmp.c
cc -O2 -Wall -c -pthread skiptodata.c
cc -O2 -Wall -c -pthread skipname.c
cc -O2 -Wall -c -pthread recurtest.c
cc -O2 -Wall -c -pthread report.c
cc -O2 -Wall -c -pthread vcheck.c
cc -O2 -Wall -c -pthread usage.c
cc -O2 -Wall -c -pthread vexit.c
cc -O2 -Wall -c -pthread spin.c
cc -O2 -Wall -o porkbind axfrtest.o main.o chkver.o genver.o vercmp.o skiptodata.o skipname.o recurtest.o report.o vcheck.o usage.o vexit.o spin.o -pthread || cc -O2 -Wall -o porkbind axfrtest.o main.o chkver.o genver.o vercmp.o skiptodata.o skipname.o recurtest.o report.o vcheck.o usage.o vexit.o spin.o -pthread -lresolv
main.o: In function `main':
main.c

.text+0x2b3): undefined reference to `__res_query'
main.c

.text+0x592): undefined reference to `__dn_expand'
skipname.o: In function `skipname':
skipname.c

.text+0x3b): undefined reference to `__dn_expand'
recurtest.o: In function `recurtest':
recurtest.c

.text+0x73): undefined reference to `__res_query'
vcheck.o: In function `vcheck':
vcheck.c

.text+0xae): undefined reference to `__res_query'
collect2: ld returned 1 exit status[CODE]
Any help would be great..I can't put code tags on it for some reason either.