Unix static agent build fails
-
Hello Victor,
I'm configuring netxms on CentOS 6.2 with following ./configure --with-agent-static. Configure script executes normally. But make produces error:
../../../tools/create_ssa_list.sh "linux ecs logwatch ping portcheck ups" > static_subagents.cpp
CXX static_subagents.o
CXX subagent.o
CXX sysinfo.o
CXX tools.o
CXX trap.o
CXX upgrade.o
CXX watchdog.o
make[4]: *** No rule to make target `../../../src/db/libnxdb/libnxdb.la', needed by `nxagentd'. Stop.
make[4]: Leaving directory `/distr/netxms-1.2.1/src/agent/core'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/distr/netxms-1.2.1/src/agent'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/distr/netxms-1.2.1/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/distr/netxms-1.2.1'
make: *** [all] Error 2
[root@netxms netxms-1.2.1]#Can that be fixed?
-
-
Hi!
I finally managed to build a static 1.2.1 agent, I did something like this:$ ./configure --with-static-agent --with-all-static --with-static-subagents="" --with-internal-libexpat --with-internal-libtre --with-internal-zlib --prefix=/some/targetdir
$ makeWill complain, No target to build libnxdb exactly as you describe.
Build this by hand:$ cd src/db/libnxdb/
$ makeThen try a build from source root again.
I then run into trouble when making nxpush, but that may be distribution specific (old debian).
Anyway, I disabled nxpush (don't need it)$ <your favorite editor> src/agent/tools/Makefile
change
SUBDIRS = nxapushto
SUBDIRS =Then a make from source root dir should work.
Good luck!
-
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login