|
From: Alexei A. <ale...@gm...> - 2025-05-02 12:15:23
|
OK this is now build and installed also :)
did the following change as per below and had to configure with different
prefix
now I'm sort of afraid to run it - will it actually run alright on OmniOS -
given all the differences? :)
please let me know what you think guys!
# ./configure --prefix=/opt/local
# diff src/common/sandbox.c src/common/sandbox.c.orig
23,25c23
< #ifdef LOG_PERROR
< flags |= LOG_PERROR;
< #endif
---
> flags |= LOG_PERROR;
--
Best regards,
Aleksey Anisimov
On Mon, 28 Apr 2025 at 20:41, Alexei Anisimov <ale...@gm...>
wrote:
> hi guys !
>
> anyone could make provide a hint about this?
>
> interestingly enough, not much comes up in Google by this, I thought this
> would be something fairly common actually
>
> does it even work on OmniOS ? thanks for any help !
>
> root@test:~/sshguard-2.5.0# make
> Making all in src
> make[1]: Entering directory '/root/sshguard-2.5.0/src'
> Making all in blocker
> make[2]: Entering directory '/root/sshguard-2.5.0/src/blocker'
> CC sandbox.o
> ../common/sandbox.c: In function 'init_log':
> ../common/sandbox.c:23:18: error: 'LOG_PERROR' undeclared (first use in
> this function); did you mean 'LOG_ERR'?
> 23 | flags |= LOG_PERROR;
> | ^~~~~~~~~~
> | LOG_ERR
> ../common/sandbox.c:23:18: note: each undeclared identifier is reported
> only once for each function it appears in
> ../common/sandbox.c: In function 'droproot':
> ../common/sandbox.c:43:9: warning: implicit declaration of function
> 'setresgid'; did you mean 'setregid'? [-Wimplicit-function-declaration]
> 43 | if (setresgid(pw->pw_gid, pw->pw_gid, pw->pw_gid) == -1) {
> | ^~~~~~~~~
> | setregid
> ../common/sandbox.c:46:9: warning: implicit declaration of function
> 'setresuid'; did you mean 'setreuid'? [-Wimplicit-function-declaration]
> 46 | if (setresuid(pw->pw_uid, pw->pw_uid, pw->pw_uid) == -1) {
> | ^~~~~~~~~
> | setreuid
> make[2]: *** [Makefile:408: sandbox.o] Error 1
> make[2]: Leaving directory '/root/sshguard-2.5.0/src/blocker'
> make[1]: *** [Makefile:430: all-recursive] Error 1
> make[1]: Leaving directory '/root/sshguard-2.5.0/src'
> make: *** [Makefile:481: all-recursive] Error 1
> root@test:~/sshguard-2.5.0#
> root@test:~/sshguard-2.5.0# cat /etc/*release
> NAME="OmniOS"
> PRETTY_NAME="OmniOS Community Edition v11 r151052u"
> CPE_NAME="cpe:/o:omniosce:omnios:11:151052:21"
> ID=omnios
> VERSION=r151052u
> VERSION_ID=r151052u
> BUILD_ID=151052.21.2025.03.27
> HOME_URL="https://omnios.org/"
> SUPPORT_URL="https://omnios.org/"
> BUG_REPORT_URL="https://github.com/omniosorg/omnios-build/issues/new"
> OmniOS v11 r151052u
> Copyright (c) 2012-2017 OmniTI Computer Consulting, Inc.
> Copyright (c) 2017-2025 OmniOS Community Edition (OmniOSce) Association.
> All rights reserved. Use is subject to licence terms.
> root@test:~/sshguard-2.5.0#
> root@test:~/sshguard-2.5.0#
> root@test:~/sshguard-2.5.0#
> root@test:~/sshguard-2.5.0# uname -a
> SunOS test 5.11 omnios-r151052-5ce47a2ab6 i86pc i386 i86pc
>
> --
> Best regards,
> Aleksey Anisimov
>
|