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?
There was the same error for 1.2.0 version according to forum. It persists in 1.2.1. :(
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
$ make
Will complain, No target to build libnxdb exactly as you describe.
Build this by hand:
$ cd src/db/libnxdb/
$ make
Then 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 = nxapush
to
SUBDIRS =
Then a make from source root dir should work.
Good luck!
KjellO, this also worked for me!
The trick is that all subsequent "makes" are successful, even if I make global "make clean" before configuring with different parameters.
Thanks a lot!