From: Alexei A. <ale...@gm...> - 2025-04-28 23:07:41
|
hi guys, piggy backing on this thread (also posted my build error), getting this on OmniOS - just tried with git latest, the error is slightly different from what I got using 2.5.0 tarball. -- Best regards, Aleksey Anisimov root@test:~/sshguard# make Making all in src make[1]: Entering directory '/root/sshguard/src' Making all in blocker make[2]: Entering directory '/root/sshguard/src/blocker' CC sandbox.o ../common/sandbox.c: In function 'init_log': ../common/sandbox.c:14:18: warning: implicit declaration of function 'getenv' [-Wimplicit-function-declaration] 14 | int debug = (getenv("SSHGUARD_DEBUG") != NULL); | ^~~~~~ ../common/sandbox.c:6:1: note: 'getenv' is defined in header '<stdlib.h>'; did you forget to '#include <stdlib.h>'? 5 | #include "sandbox.h" +++ |+#include <stdlib.h> 6 | ../common/sandbox.c:14:43: warning: comparison between pointer and integer 14 | int debug = (getenv("SSHGUARD_DEBUG") != NULL); | ^~ ../common/sandbox.c:19:18: error: 'LOG_PERROR' undeclared (first use in this function); did you mean 'LOG_ERR'? 19 | flags |= LOG_PERROR; | ^~~~~~~~~~ | LOG_ERR ../common/sandbox.c:19:18: note: each undeclared identifier is reported only once for each function it appears in ../common/sandbox.c: In function 'droproot': ../common/sandbox.c:36:9: warning: implicit declaration of function 'initgroups'; did you mean 'setgroups'? [-Wimplicit-function-declaration] 36 | if (initgroups(user, pw->pw_gid) == -1) { | ^~~~~~~~~~ | setgroups ../common/sandbox.c:39:9: warning: implicit declaration of function 'setresgid'; did you mean 'setregid'? [-Wimplicit-function-declaration] 39 | if (setresgid(pw->pw_gid, pw->pw_gid, pw->pw_gid) == -1) { | ^~~~~~~~~ | setregid ../common/sandbox.c:42:9: warning: implicit declaration of function 'setresuid'; did you mean 'setreuid'? [-Wimplicit-function-declaration] 42 | if (setresuid(pw->pw_uid, pw->pw_uid, pw->pw_uid) == -1) { | ^~~~~~~~~ | setreuid ../common/sandbox.c: In function 'sandbox_init': ../common/sandbox.c:48:18: warning: initialization of 'char *' from 'int' makes pointer from integer without a cast [-Wint-conversion] 48 | char *user = getenv("SSHGUARD_USER"); | ^~~~~~ make[2]: *** [Makefile:408: sandbox.o] Error 1 make[2]: Leaving directory '/root/sshguard/src/blocker' make[1]: *** [Makefile:430: all-recursive] Error 1 make[1]: Leaving directory '/root/sshguard/src' make: *** [Makefile:481: all-recursive] Error 1 root@test:~/sshguard# On Tue, 29 Apr 2025 at 04:55, Kevin Zheng <kev...@gm...> wrote: > Thanks for the report, Marius. > > Could you check that the latest version in Git (or any revision after > 90df5477) fixes the issue for you? > > Regards, > Kevin > > > _______________________________________________ > sshguard-users mailing list > ssh...@li... > https://lists.sourceforge.net/lists/listinfo/sshguard-users > |