Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 01-25-2009, 02:04 PM   #1
LQ Newbie
Registered: Jan 2009
Distribution: Slackware
Posts: 14

Rep: Reputation: 0
Post sshguard won't compile

My logs are filled with brute force attempts to my SSH server. I learned and installed an iptables firewall script, but now I need a way to block brute force attempts. Sshguard worked well when I had freeBSD but now I'm into slackware. It configures correctly...

(root):sshguard/sshguard-1.4rc2# ./configure --with-firewall=iptables
checking for a BSD-compatible install... /bin/ginstall -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking for ranlib... ranlib
checking for bison... bison -y
checking for flex... flex
checking lex output file root... lex.yy
checking lex library... -lfl
checking whether yytext is a pointer... yes
checking for pthread_create in -lpthread... yes
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/wait.h that is POSIX.1 compatible... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking arpa/inet.h usability... yes
checking arpa/inet.h presence... yes
checking for arpa/inet.h... yes
checking malloc.h usability... yes
checking malloc.h presence... yes
checking for malloc.h... yes
checking netdb.h usability... yes
checking netdb.h presence... yes
checking for netdb.h... yes
checking netinet/in.h usability... yes
checking netinet/in.h presence... yes
checking for netinet/in.h... yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking sys/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.h... yes
checking syslog.h usability... yes
checking syslog.h presence... yes
checking for syslog.h... yes
checking for unistd.h... (cached) yes
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking for off_t... yes
checking for pid_t... yes
checking for size_t... yes
checking vfork.h usability... no
checking vfork.h presence... no
checking for vfork.h... no
checking for fork... yes
checking for vfork... yes
checking for working fork... yes
checking for working vfork... (cached) yes
checking for stdlib.h... (cached) yes
checking for GNU libc compatible malloc... yes
checking return type of signal handlers... void
checking for gethostbyname... yes
checking for inet_ntoa... yes
checking for strerror... yes
checking for strstr... yes
checking for strtol... yes
checking for iptables... /usr/sbin
configure: Using /usr/sbin as location for iptables
configure: creating ./config.status
config.status: creating Makefile
config.status: creating man/Makefile
config.status: creating src/Makefile
config.status: creating src/fwalls/Makefile
config.status: creating src/config.h
config.status: executing depfiles commands
No errors or anything but when I run "make" ...

(root):sshguard/sshguard-1.4rc2# make
Making all in src
make[1]: Entering directory `/sshguard/sshguard-1.4rc2/src'
make  all-recursive
make[2]: Entering directory `/sshguard/sshguard-1.4rc2/src'
Making all in fwalls
make[3]: Entering directory `/sshguard/sshguard-1.4rc2/src/fwalls'
gcc -DHAVE_CONFIG_H -I. -I../../src    -I. -I.. -Wall -O2 -std=c99 -g -O2 -MT command.o -MD -MP -MF .deps/command.Tpo -c -o command.o command.c
command.c: In function 'run_command':
command.c:58: warning: implicit declaration of function 'setenv'
command.c:67: warning: implicit declaration of function 'unsetenv'
mv -f .deps/command.Tpo .deps/command.Po
rm -f libfwall.a
ar cru libfwall.a command.o
ranlib libfwall.a
make[3]: Leaving directory `/sshguard/sshguard-1.4rc2/src/fwalls'
make[3]: Entering directory `/sshguard/sshguard-1.4rc2/src'
gcc -DHAVE_CONFIG_H -I.    -I. -O2 -std=c99 -Wall -g -O2 -MT sshguard_options.o -MD -MP -MF .deps/sshguard_options.Tpo -c -o sshguard_options.o sshguard_options.c
sshguard_options.c: In function 'get_options_cmdline':
sshguard_options.c:44: warning: implicit declaration of function 'getopt'
sshguard_options.c:47: error: 'optarg' undeclared (first use in this function)
sshguard_options.c:47: error: (Each undeclared identifier is reported only once
sshguard_options.c:47: error: for each function it appears in.)
make[3]: *** [sshguard_options.o] Error 1
make[3]: Leaving directory `/sshguard/sshguard-1.4rc2/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/sshguard/sshguard-1.4rc2/src'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/sshguard/sshguard-1.4rc2/src'
make: *** [all-recursive] Error 1
Am I missing a package or something?
Old 01-26-2009, 05:03 AM   #2
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
'sshguard-1.4rc2' : buggy code
Solution : fix the code or use

1) sshguard-1.0 , used in the newest Ubuntu, Debian
> > "Links for sshguard" > [sshguard_1.0.orig.tar.gz]
2) sshguard-1.3

1.0 and 1.3 compiles with no errors.


Last edited by knudfl; 01-26-2009 at 05:04 AM.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
[Compile kernel] How to compile/install the modules ? frenchn00b Linux - General 1 09-06-2009 03:18 PM
LXer: sshguard: Protection for OpenSSH LXer Syndicated Linux News 0 03-06-2007 09:16 PM
Compile madwifi, ... compile error , how can i do. ERBRMN Linux - Networking 3 03-08-2006 07:56 PM
ntop compile/post-compile problem? tjb Linux - Software 3 12-28-2004 04:22 PM
how to compile mitchb Linux - Newbie 4 06-25-2004 06:20 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:46 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration