OSSEC HIDS 安装错误(紧急)

OSSEC HIDS 安装错误(紧急)

当我尝试运行 OSSEC HIDS 的 ./install.sh 脚本时,我不断收到这些奇怪的错误:

/usr/bin/ld: client-agent/config.o:(.bss+0x0): multiple definition of `server_ibuf'; client-agent/agentd.o:(.bss+0x0): first defined here
/usr/bin/ld: client-agent/event-forward.o:(.bss+0x0): multiple definition of `server_ibuf'; client-agent/agentd.o:(.bss+0x0): first defined here
/usr/bin/ld: client-agent/intcheck_op.o:(.bss+0x0): multiple definition of `server_ibuf'; client-agent/agentd.o:(.bss+0x0): first defined here
/usr/bin/ld: client-agent/main.o:(.bss+0x0): multiple definition of `server_ibuf'; client-agent/agentd.o:(.bss+0x0): first defined here
/usr/bin/ld: client-agent/notify.o:(.bss+0x0): multiple definition of `server_ibuf'; client-agent/agentd.o:(.bss+0x0): first defined here
/usr/bin/ld: client-agent/receiver.o:(.bss+0x0): multiple definition of `server_ibuf'; client-agent/agentd.o:(.bss+0x0): first defined here
/usr/bin/ld: client-agent/sendmsg.o:(.bss+0x0): multiple definition of `server_ibuf'; client-agent/agentd.o:(.bss+0x0): first defined here
/usr/bin/ld: client-agent/start_agent.o:(.bss+0x0): multiple definition of `server_ibuf'; client-agent/agentd.o:(.bss+0x0): first defined here
/usr/bin/ld: os_net.a(os_net.o):(.bss+0x0): multiple definition of `agt'; client-agent/config.o:(.bss+0x10088): first defined here
collect2: error: ld returned 1 exit status
make: *** [Makefile:1017: ossec-agentd] Error 1

我已经安装了所有依赖项并更新了所有内容(apt update 等),但似乎没有任何方法可以解决此问题。有没有人有什么建议?

另外,我正在尝试进行本地安装。如果您还需要任何其他信息,请告诉我

答案1

您是否尝试过安装软件包libsystemd-dev?大多数编译问题都是由这些问题引起的

为了防止它在线程中丢失,

LDFLAGS="-Wl,-z,muldefs"您还可以尝试通过在命令前面添加以下内容来忽略某些链接器问题来进行构建:

LDFLAGS="-Wl,-z,muldefs" ./install.sh或者 LDFLAGS="-Wl,-z,muldefs" make在 src 文件夹内

相关内容