From: Steve O. <oc...@nc...> - 2007-10-04 00:52:39
|
On 3 Oct 2007 at 19:59, Steve Ochani wrote: > > then try compiling: run > > > > gcc -I. -O2 -o sshguard sshguard.o sshguard_whitelist.o > > sshguard_log.o sshguard_procauth.o simclist.o attack_parser.o > > attack_scanner.o fwalls/libfwall.a -lpthread -lsocket -lresolv -lnsl > > Did that and I get 1 linker error > > gcc -I. -O2 -o sshguard sshguard.o sshguard_whitelist.o > sshguard_log.o sshguard_procauth.o simclist.o attack_parser.o > attack_scanner.o fwalls/libfwall.a -lpthread - lsocket -lresolv -lnsl > Undefined first referenced > symbol in file > gethostbyname2 attack_parser.o > ld: fatal: Symbol referencing errors. No output written to sshguard > collect2: ld returned 1 exit status I edited attack_parser.c and changed gethostbyname2 call to plain old gethostbyname and took out the last arg of AF_INET even though I realize the 2nd call is for ipv6, but I'm not using ipv6 so I should be ok. I'll hopefully have time to install and test it tomorrow. Thanks for the help. I'll report back by results. (I can't wait to get my new Linux servers in a few months and get rid of p.o.s. solaris) -Steve O. |