I have bumped into a problem when I want to compile it with XMLRPC enabled.
[ 15%] Building C object src/core/CMakeFiles/tsp_common.dir/common/tsp_common_ssi.o gcc: Must: No such file or directory gcc: specify: No such file or directory gcc: package: No such file or directory gcc: names: No such file or directory
gcc: on: No such file or directory gcc: the: No such file or directory gcc: command: No such file or directory gcc: line: No such file or directory
With VERBOSE enabled:
/usr/bin/gcc -Dtsp_common_EXPORTS -g -fPIC -I/home/rhdv/src/tsp-build/src/core/include -I/home/rhdv/src/tsp-build/src/core -I/home/rhdv/src/tsp-build/src/core/rpc -I/home/rhdv/src/tsp/src/core/include -I/home/rhdv/src/tsp/src/core -I/home/rhdv/src/tsp/src/core/driver -I/home/rhdv/src/tsp/src/core/common -I/home/rhdv/src/tsp/src/core/misc_utils -I/home/rhdv/src/tsp/src/util/libpages -I/home/rhdv/src/tsp/src/util/libutil -I/home/rhdv/src/tsp/src/core/ctrl_init -I/home/rhdv/src/tsp/src/core/ctrl -I/home/rhdv/src/tsp/src/util/libtspcfg -I/home/rhdv/src/tsp/src/core/rpc -I/home/rhdv/src/tsp/src/core/xmlrpc -DTSP_NO_XDR_ENCODE -Wall -DTSP_SYSTEM_HAVE_NANOSLEEP -D_REENTRANT -DXMLWRITER_SUPPORTED -DUSE_STRACE
Must specify package names on the command line -DBUILD_XMLRPC -o src/core/CMakeFiles/tsp_common.dir/common/tsp_common_ssei.o -c /home/rhdv/src/tsp/src/core/common/tsp_common_ssei.c
gcc: Must: No such file or directory gcc: specify: No such file or directory gcc: package: No such file or directory gcc: names: No such file or directory gcc: on: No such file or directory gcc: the: No such file or directory
gcc: command: No such file or directory gcc: line: No such file or directory
It seems that xmlrpc-c-config requires two arguments: package name and some option. In FindXMLRPCC.cmake I see several instances where this is not done.
I guess that the one for the include flags is the main culprit. The funny thing is, is that: xmlrpc-c-config client --cflags and xmlrpc-c-config abyss-server --cflags
Do not produce any output on my Fedora Core 6 distribution.
After doing some small fixes I notice that the integration with xmlrpc-c is somewhat out-of-date. Or the Fedora Core 6 version of the package is modified in an incompatible fashion. I also notice that the include file names have changed.
Attached a rough patch to allow compilation and linking.