Hi,
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.
Robert
? cscope.files
? cscope.out
? xmlrpc.patch
Index: make/FindXMLRPCC.cmake
===================================================================
RCS file: /sources/tsp/tsp/make/FindXMLRPCC.cmake,v
retrieving revision 1.3
diff -u -r1.3 FindXMLRPCC.cmake
--- make/FindXMLRPCC.cmake 25 Mar 2007 17:13:28 -0000 1.3
+++ make/FindXMLRPCC.cmake 31 Mar 2007 13:47:45 -0000
@@ -23,12 +23,15 @@
EXEC_PROGRAM(${XMLRPCC_CONFIG_PROGRAM} ARGS "--exec-prefix" OUTPUT_VARIABLE XMLRPCC_EXEC_PREFIX)
#include
- EXEC_PROGRAM(${XMLRPCC_CONFIG_PROGRAM} ARGS "--cflags" OUTPUT_VARIABLE XMLRPCC_CFLAGS)
- STRING(REPLACE prefix XMLRPCC_PREFIX XMLRPCC_CFLAGS ${XMLRPCC_CFLAGS})
- STRING(CONFIGURE ${XMLRPCC_CFLAGS} XMLRPCC_CFLAGS)
+# EXEC_PROGRAM(${XMLRPCC_CONFIG_PROGRAM} ARGS "--cflags" OUTPUT_VARIABLE XMLRPCC_CFLAGS)
+# STRING(REPLACE prefix XMLRPCC_PREFIX XMLRPCC_CFLAGS ${XMLRPCC_CFLAGS})
+# STRING(CONFIGURE ${XMLRPCC_CFLAGS} XMLRPCC_CFLAGS)
#abyss server libs
EXEC_PROGRAM(${XMLRPCC_CONFIG_PROGRAM} ARGS "abyss-server --libs" OUTPUT_VARIABLE XMLRPCC_ABYSS_SERVER_LIBRARIES)
+ SET(XMLRPCC_ABYSS_SERVER_LIBRARIES
+ ${XMLRPCC_ABYSS_SERVER_LIBRARIES}
+ " -lxmlrpc_server_abyss")
STRING(REPLACE exec_prefix XMLRPCC_EXEC_PREFIX XMLRPCC_ABYSS_SERVER_LIBRARIES ${XMLRPCC_ABYSS_SERVER_LIBRARIES})
STRING(CONFIGURE ${XMLRPCC_ABYSS_SERVER_LIBRARIES} XMLRPCC_ABYSS_SERVER_LIBRARIES)
Index: src/core/xmlrpc/tsp_xmlrpc_server.c
===================================================================
RCS file: /sources/tsp/tsp/src/core/xmlrpc/tsp_xmlrpc_server.c,v
retrieving revision 1.24
diff -u -r1.24 tsp_xmlrpc_server.c
--- src/core/xmlrpc/tsp_xmlrpc_server.c 28 Feb 2007 22:01:43 -0000 1.24
+++ src/core/xmlrpc/tsp_xmlrpc_server.c 31 Mar 2007 13:47:45 -0000
@@ -50,8 +50,7 @@
#include <string.h>
-#include <xmlrpc.h>
-#include <xmlrpc_server_abyss.h>
+#include <xmlrpc-c/server_abyss.h>
/*#include "tsp_request_handler.h"*/
Index: src/core/xmlrpc/tsp_xmlrpc_util.h
===================================================================
RCS file: /sources/tsp/tsp/src/core/xmlrpc/tsp_xmlrpc_util.h,v
retrieving revision 1.2
diff -u -r1.2 tsp_xmlrpc_util.h
--- src/core/xmlrpc/tsp_xmlrpc_util.h 18 Jul 2006 23:59:19 -0000 1.2
+++ src/core/xmlrpc/tsp_xmlrpc_util.h 31 Mar 2007 13:47:45 -0000
@@ -1,9 +1,8 @@
#ifndef _TSP_XMLRPC_UTIL_H_
#define _TSP_XMLRPC_UTIL_H_
-#include <xmlrpc.h>
-
#include "tsp_rpc.h"
+#include <xmlrpc-c/base.h>
#define die_if_fault_occurred(x) \
{ \
_______________________________________________
Tsp-devel mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/tsp-devel