From: Bruno D. <Bru...@Ma...> - 2010-03-31 04:12:02
|
Hi folks, I've been trying to get /sshguard-1.5rc1 working on my system running Solaris 10 69$ gmake Making all in src gmake[1]: Entering directory `/data/homedirs/bdelbono/sshguard-1.5rc1/src' gmake all-recursive gmake[2]: Entering directory `/data/homedirs/bdelbono/sshguard-1.5rc1/src' Making all in parser gmake[3]: Entering directory `/data/homedirs/bdelbono/sshguard-1.5rc1/src/parser' gmake all-am gmake[4]: Entering directory `/data/homedirs/bdelbono/sshguard-1.5rc1/src/parser' gcc -DHAVE_CONFIG_H -I. -I../../src -I. -I.. -Wall -std=c99 -D_POSIX_C_SOURCE=200112L -g -O2 -MT attack_parser.o -MD -MP -MF .deps/attack_parser.Tpo -c -o attack_parser.o attack_parser.c In file included from ../sshguard.h:24, from attack_parser.y:42: ../sshguard_addresskind.h:34: error: `INET6_ADDRSTRLEN' undeclared here (not in a function) gmake[4]: *** [attack_parser.o] Error 1 gmake[4]: Leaving directory `/data/homedirs/bdelbono/sshguard-1.5rc1/src/parser' gmake[3]: *** [all] Error 2 gmake[3]: Leaving directory `/data/homedirs/bdelbono/sshguard-1.5rc1/src/parser' gmake[2]: *** [all-recursive] Error 1 gmake[2]: Leaving directory `/data/homedirs/bdelbono/sshguard-1.5rc1/src' gmake[1]: *** [all] Error 2 gmake[1]: Leaving directory `/data/homedirs/bdelbono/sshguard-1.5rc1/src' gmake: *** [all-recursive] Error 1 Warm regards, -- Bruno Delbono Open-Systems Group http://www.open-systems.org http://www.mail.ac |
From: Mij <mi...@ss...> - 2010-03-31 15:18:09
|
thanks for reporting. Apparently Solaris doesn't expose that definition. It's fixed in r186 on the SVN; you'll get it in 1.5 stable, or see http://www.sshguard.net/download/repository/ On Mar 31, 2010, at 5:42 , Bruno Delbono wrote: > Hi folks, > > I've been trying to get /sshguard-1.5rc1 working on my system running Solaris 10 > > 69$ gmake > Making all in src > gmake[1]: Entering directory `/data/homedirs/bdelbono/sshguard-1.5rc1/src' > gmake all-recursive > gmake[2]: Entering directory `/data/homedirs/bdelbono/sshguard-1.5rc1/src' > Making all in parser > gmake[3]: Entering directory `/data/homedirs/bdelbono/sshguard-1.5rc1/src/parser' > gmake all-am > gmake[4]: Entering directory `/data/homedirs/bdelbono/sshguard-1.5rc1/src/parser' > gcc -DHAVE_CONFIG_H -I. -I../../src -I. -I.. -Wall -std=c99 -D_POSIX_C_SOURCE=200112L -g -O2 -MT attack_parser.o -MD -MP -MF .deps/attack_parser.Tpo -c -o attack_parser.o attack_parser.c > In file included from ../sshguard.h:24, > from attack_parser.y:42: > ../sshguard_addresskind.h:34: error: `INET6_ADDRSTRLEN' undeclared here (not in a function) > gmake[4]: *** [attack_parser.o] Error 1 > gmake[4]: Leaving directory `/data/homedirs/bdelbono/sshguard-1.5rc1/src/parser' > gmake[3]: *** [all] Error 2 > gmake[3]: Leaving directory `/data/homedirs/bdelbono/sshguard-1.5rc1/src/parser' > gmake[2]: *** [all-recursive] Error 1 > gmake[2]: Leaving directory `/data/homedirs/bdelbono/sshguard-1.5rc1/src' > gmake[1]: *** [all] Error 2 > gmake[1]: Leaving directory `/data/homedirs/bdelbono/sshguard-1.5rc1/src' > gmake: *** [all-recursive] Error 1 > > Warm regards, > > > -- > Bruno Delbono > Open-Systems Group > http://www.open-systems.org > http://www.mail.ac > ------------------------------------------------------------------------------ > Download Intel® Parallel Studio Eval > Try the new software tools for yourself. Speed compiling, find bugs > proactively, and fine-tune applications for parallel performance. > See why Intel Parallel Studio got high marks during beta. > http://p.sf.net/sfu/intel-sw-dev_______________________________________________ > Sshguard-users mailing list > Ssh...@li... > https://lists.sourceforge.net/lists/listinfo/sshguard-users |
From: Bruno D. <Bru...@Ma...> - 2010-03-31 23:43:25
|
Hi Mij, On Wed, Mar 31, 2010 at 11:17 AM, Mij <mi...@ss...> wrote: > thanks for reporting. Apparently Solaris doesn't expose that definition. > It's fixed in r186 on the SVN; you'll get it in 1.5 stable, or see > http://www.sshguard.net/download/repository/ Check'd out r186. It now, fails further down with sshguard_blacklist.c [...] gmake[3]: Entering directory `/data/homedirs/bdelbono/sshguard/trunk/src' gcc -DHAVE_CONFIG_H -I. -I. -std=c99 -Wall -D_POSIX_C_SOURCE=200112L -g -O2 -MT sshguard.o -MD -MP -MF .deps/sshguard.Tpo -c -o sshguard.o sshguard.c mv -f .deps/sshguard.Tpo .deps/sshguard.Po gcc -DHAVE_CONFIG_H -I. -I. -std=c99 -Wall -D_POSIX_C_SOURCE=200112L -g -O2 -MT sshguard_whitelist.o -MD -MP -MF .deps/sshguard_whitelist.Tpo -c -o sshguard_whitelist.o sshguard_whitelist.c mv -f .deps/sshguard_whitelist.Tpo .deps/sshguard_whitelist.Po gcc -DHAVE_CONFIG_H -I. -I. -std=c99 -Wall -D_POSIX_C_SOURCE=200112L -g -O2 -MT sshguard_log.o -MD -MP -MF .deps/sshguard_log.Tpo -c -o sshguard_log.o sshguard_log.c mv -f .deps/sshguard_log.Tpo .deps/sshguard_log.Po gcc -DHAVE_CONFIG_H -I. -I. -std=c99 -Wall -D_POSIX_C_SOURCE=200112L -g -O2 -MT sshguard_procauth.o -MD -MP -MF .deps/sshguard_procauth.Tpo -c -o sshguard_procauth.o sshguard_procauth.c sshguard_procauth.c: In function `procauth_getprocpid': sshguard_procauth.c:162: warning: int format, pid_t arg (arg 3) sshguard_procauth.c: In function `procauth_ischildof': sshguard_procauth.c:177: warning: int format, pid_t arg (arg 3) sshguard_procauth.c:177: warning: int format, pid_t arg (arg 4) mv -f .deps/sshguard_procauth.Tpo .deps/sshguard_procauth.Po gcc -DHAVE_CONFIG_H -I. -I. -std=c99 -Wall -D_POSIX_C_SOURCE=200112L -g -O2 -MT sshguard_blacklist.o -MD -MP -MF .deps/sshguard_blacklist.Tpo -c -o sshguard_blacklist.o sshguard_blacklist.c sshguard_blacklist.c: In function `attacker_serializer': sshguard_blacklist.c:79: error: `INET_ADDRSTRLEN' undeclared (first use in this function) sshguard_blacklist.c:79: error: (Each undeclared identifier is reported only once sshguard_blacklist.c:79: error: for each function it appears in.) sshguard_blacklist.c:90: warning: implicit declaration of function `htonl' sshguard_blacklist.c: In function `attacker_unserializer': sshguard_blacklist.c:129: warning: implicit declaration of function `ntohl' gmake[3]: *** [sshguard_blacklist.o] Error 1 gmake[3]: Leaving directory `/data/homedirs/bdelbono/sshguard/trunk/src' gmake[2]: *** [all-recursive] Error 1 gmake[2]: Leaving directory `/data/homedirs/bdelbono/sshguard/trunk/src' gmake[1]: *** [all] Error 2 gmake[1]: Leaving directory `/data/homedirs/bdelbono/sshguard/trunk/src' gmake: *** [all-recursive] Error 1 Warm regards, -- Bruno Delbono Open-Systems Group http://www.open-systems.org http://www.mail.ac |
From: Mij <mi...@ss...> - 2010-04-01 08:27:56
|
ok, r187 should generalize the change, please give it a try On Apr 1, 2010, at 24:50 , Bruno Delbono wrote: > Hi Mij, > > On Wed, Mar 31, 2010 at 11:17 AM, Mij <mi...@ss...> wrote: > thanks for reporting. Apparently Solaris doesn't expose that definition. > It's fixed in r186 on the SVN; you'll get it in 1.5 stable, or see > http://www.sshguard.net/download/repository/ > > Check'd out r186. It now, fails further down with sshguard_blacklist.c > > [...] > gmake[3]: Entering directory `/data/homedirs/bdelbono/sshguard/trunk/src' > gcc -DHAVE_CONFIG_H -I. -I. -std=c99 -Wall -D_POSIX_C_SOURCE=200112L -g -O2 -MT sshguard.o -MD -MP -MF .deps/sshguard.Tpo -c -o sshguard.o sshguard.c > mv -f .deps/sshguard.Tpo .deps/sshguard.Po > gcc -DHAVE_CONFIG_H -I. -I. -std=c99 -Wall -D_POSIX_C_SOURCE=200112L -g -O2 -MT sshguard_whitelist.o -MD -MP -MF .deps/sshguard_whitelist.Tpo -c -o sshguard_whitelist.o sshguard_whitelist.c > mv -f .deps/sshguard_whitelist.Tpo .deps/sshguard_whitelist.Po > gcc -DHAVE_CONFIG_H -I. -I. -std=c99 -Wall -D_POSIX_C_SOURCE=200112L -g -O2 -MT sshguard_log.o -MD -MP -MF .deps/sshguard_log.Tpo -c -o sshguard_log.o sshguard_log.c > mv -f .deps/sshguard_log.Tpo .deps/sshguard_log.Po > gcc -DHAVE_CONFIG_H -I. -I. -std=c99 -Wall -D_POSIX_C_SOURCE=200112L -g -O2 -MT sshguard_procauth.o -MD -MP -MF .deps/sshguard_procauth.Tpo -c -o sshguard_procauth.o sshguard_procauth.c > sshguard_procauth.c: In function `procauth_getprocpid': > sshguard_procauth.c:162: warning: int format, pid_t arg (arg 3) > sshguard_procauth.c: In function `procauth_ischildof': > sshguard_procauth.c:177: warning: int format, pid_t arg (arg 3) > sshguard_procauth.c:177: warning: int format, pid_t arg (arg 4) > mv -f .deps/sshguard_procauth.Tpo .deps/sshguard_procauth.Po > gcc -DHAVE_CONFIG_H -I. -I. -std=c99 -Wall -D_POSIX_C_SOURCE=200112L -g -O2 -MT sshguard_blacklist.o -MD -MP -MF .deps/sshguard_blacklist.Tpo -c -o sshguard_blacklist.o sshguard_blacklist.c > sshguard_blacklist.c: In function `attacker_serializer': > sshguard_blacklist.c:79: error: `INET_ADDRSTRLEN' undeclared (first use in this function) > sshguard_blacklist.c:79: error: (Each undeclared identifier is reported only once > sshguard_blacklist.c:79: error: for each function it appears in.) > sshguard_blacklist.c:90: warning: implicit declaration of function `htonl' > sshguard_blacklist.c: In function `attacker_unserializer': > sshguard_blacklist.c:129: warning: implicit declaration of function `ntohl' > gmake[3]: *** [sshguard_blacklist.o] Error 1 > gmake[3]: Leaving directory `/data/homedirs/bdelbono/sshguard/trunk/src' > gmake[2]: *** [all-recursive] Error 1 > gmake[2]: Leaving directory `/data/homedirs/bdelbono/sshguard/trunk/src' > gmake[1]: *** [all] Error 2 > gmake[1]: Leaving directory `/data/homedirs/bdelbono/sshguard/trunk/src' > gmake: *** [all-recursive] Error 1 > > Warm regards, > > -- > Bruno Delbono > Open-Systems Group > http://www.open-systems.org > http://www.mail.ac |
From: Bruno D. <bru...@op...> - 2010-04-01 19:42:58
|
On Thu, Apr 1, 2010 at 4:27 AM, Mij <mi...@ss...> wrote: > ok, r187 should generalize the change, please give it a try > Cool. Now we're at: gcc -DHAVE_CONFIG_H -I. -I. -std=c99 -Wall -D_POSIX_C_SOURCE=200112L -g -O2 -MT sshguard_logsuck.o -MD -MP -MF .deps/sshguard_logsuck.Tpo -c -o sshguard_logsuck.o sshguard_logsuck.c In file included from sshguard_logsuck.c:34: fnv.h:87: error: syntax error before "Fnv32_t" fnv.h:87: warning: type defaults to `int' in declaration of `Fnv32_t' fnv.h:87: warning: data definition has no type or storage class fnv.h:124: error: syntax error before "fnv_32a_str" fnv.h:124: error: syntax error before "Fnv32_t" fnv.h:124: warning: type defaults to `int' in declaration of `fnv_32a_str' fnv.h:124: warning: data definition has no type or storage class gmake[3]: *** [sshguard_logsuck.o] Error 1 gmake[3]: Leaving directory `/data/homedirs/bdelbono/sshguard/src' gmake[2]: *** [all-recursive] Error 1 gmake[2]: Leaving directory `/data/homedirs/bdelbono/sshguard/src' gmake[1]: *** [all] Error 2 gmake[1]: Leaving directory `/data/homedirs/bdelbono/sshguard/src' gmake: *** [all-recursive] Error 1 -- Bruno Delbono Open-Systems Group http://www.open-systems.org http://www.mail.ac |
From: Bruno D. <bru...@op...> - 2010-04-01 21:40:01
|
There was a compile problem of -lsocket -lnsl missing which caused this problem. So far, the build works with the changes you suggest and the addition of -lsocket -lnsl. Perhaps you can incorporate it as well. Built on SunOS sun 5.10 Generic_142900-06 sun4u sparc SUNW,Sun-Blade-2500 [bdelbono@sun ~/sshguard] 14$ gcc -v Reading specs from /usr/sfw/lib/gcc/sparc-sun-solaris2.10/3.4.3/specs Configured with: /sfw10/builds/build/sfw10-patch/usr/src/cmd/gcc/gcc-3.4.3/configure --prefix=/usr/sfw --with-as=/usr/ccs/bin/as --without-gnu-as --with-ld=/usr/ccs/bin/ld --without-gnu-ld --enable-languages=c,c++ --enable-shared Thread model: posix gcc version 3.4.3 (csl-sol210-3_4-branch+sol_rpath) gcc -I. -std=c99 -Wall -D_POSIX_C_SOURCE=200112L -g -O2 -o sshguard sshguard.o sshguard_whitelist.o sshguard_log.o sshguard_procauth.o sshguard_blacklist.o sshguard_options.o sshguard_logsuck.o simclist.o hash_32a.o parser/libparser.a fwalls/libfwall.a -lpthread Undefined first referenced symbol in file __xnet_getaddrinfo sshguard_whitelist.o freeaddrinfo sshguard_whitelist.o inet_pton sshguard_whitelist.o inet_ntop sshguard_whitelist.o gai_strerror sshguard_whitelist.o ld: fatal: Symbol referencing errors. No output written to sshguard collect2: ld returned 1 exit status gmake[3]: *** [sshguard] Error 1 gmake[3]: Leaving directory `/data/homedirs/bdelbono/sshguard/src' gmake[2]: *** [all-recursive] Error 1 gmake[2]: Leaving directory `/data/homedirs/bdelbono/sshguard/src' gmake[1]: *** [all] Error 2 gmake[1]: Leaving directory `/data/homedirs/bdelbono/sshguard/src' gmake: *** [all-recursive] Error 1 On Thu, Apr 1, 2010 at 4:59 PM, Mij <mi...@ss...> wrote: > Hi Bruno, > > in order to avoid to commit a myriad of revisions under the umbrella > "address Solaris compile problems", let's do it interactively -- I'll > commit > one transaction once it works entirely. > > For this one, please try: > > 1) edit fnv.h > 2) before "#include <sys/types.h>" (line 79), add: > #include <stdint.h> > > 3) change "typedef u_int32_t Fnv32_t;" into > typedef uint32_t Fnv32_t; > > let me know if there are further problems. > michele > > > On Apr 1, 2010, at 21:42 , Bruno Delbono wrote: > > > > > > > On Thu, Apr 1, 2010 at 4:27 AM, Mij <mi...@ss...> wrote: > > ok, r187 should generalize the change, please give it a try > > > > Cool. Now we're at: > > > > gcc -DHAVE_CONFIG_H -I. -I. -std=c99 -Wall -D_POSIX_C_SOURCE=200112L -g > -O2 -MT sshguard_logsuck.o -MD -MP -MF .deps/sshguard_logsuck.Tpo -c -o > sshguard_logsuck.o sshguard_logsuck.c > > In file included from sshguard_logsuck.c:34: > > fnv.h:87: error: syntax error before "Fnv32_t" > > fnv.h:87: warning: type defaults to `int' in declaration of `Fnv32_t' > > fnv.h:87: warning: data definition has no type or storage class > > fnv.h:124: error: syntax error before "fnv_32a_str" > > fnv.h:124: error: syntax error before "Fnv32_t" > > fnv.h:124: warning: type defaults to `int' in declaration of > `fnv_32a_str' > > fnv.h:124: warning: data definition has no type or storage class > > gmake[3]: *** [sshguard_logsuck.o] Error 1 > > gmake[3]: Leaving directory `/data/homedirs/bdelbono/sshguard/src' > > gmake[2]: *** [all-recursive] Error 1 > > gmake[2]: Leaving directory `/data/homedirs/bdelbono/sshguard/src' > > gmake[1]: *** [all] Error 2 > > gmake[1]: Leaving directory `/data/homedirs/bdelbono/sshguard/src' > > gmake: *** [all-recursive] Error 1 > > > > -- > > Bruno Delbono > > Open-Systems Group > > http://www.open-systems.org > > http://www.mail.ac > > > ------------------------------------------------------------------------------ > > Download Intel® Parallel Studio Eval > > Try the new software tools for yourself. Speed compiling, find bugs > > proactively, and fine-tune applications for parallel performance. > > See why Intel Parallel Studio got high marks during beta. > > > http://p.sf.net/sfu/intel-sw-dev_______________________________________________ > > Sshguard-users mailing list > > Ssh...@li... > > https://lists.sourceforge.net/lists/listinfo/sshguard-users > > -- Bruno Delbono Open-Systems Group http://www.open-systems.org http://www.mail.ac |