Hi, I’m tryng to yayy -S ossec-hids, this is error:
./analysisd/config.h:16:10: fatal error: GeoIP.h: File o directory non esistente 16 | #include "GeoIP.h"
I’ve installed geoip manually, then:
/usr/bin/ld: os_net.a(os_net.o):(.bss+0x0): multiple definition of `agt’; client-agent/config.o:(.bss+0x0): first defined here
collect2: error: ld returned 1 exit status
make: *** [Makefile:1017: ossec-agentd] Errore 1
analysisd/decoders/decode-xml.c:842:13: warning: ‘strncpy’ output truncated before terminating nul copying as many bytes from a string as its length [-Wstringop-truncation]
842 | strncpy(at, str, strsize);
| ^~~~~~~~~~~~~~~~~~~~~~~~~
Don’t install it from AUR, has been out of date for 8 months, and looking at the PKGBUILD it also assumes you will edit it yourself, use the source available at OSSEC Downloads - OSSEC.
The AUR package is broken and flagged out of date with multiple comments about how it doesnt build etc.
The PKGBUILD needs fixing.
If I were you I would start by
git clone https://aur.archlinux.org/ossec-hids.git
cd ossec-hids
micro PKGBUILD ## edit pkgver line for 3.6.0, maybe also variables like USER_INSTALL_TYPE
updpkgsums
makepkg -sric
/usr/bin/ld: addagent/validate.o:(.bss+0x10): multiple definition of `willchroot’; addagent/main.o:(.bss+0x0): first defined here
collect2: error: ld returned 1 exit status
make: *** [Makefile:1029: manage_agents] Errore 1
make: *** Attesa per i processi non terminati…
collect2: error: ld returned 1 exit status
make: *** [Makefile:1142: agent-auth] Errore 1
…
/usr/bin/ld: os_net.a(os_net.o):(.bss+0x0): multiple definition of `agt’; client-agent/config.o:(.bss+0x0): first defined here
collect2: error: ld returned 1 exit status
make: *** [Makefile:1017: ossec-agentd] Errore 1