tsp-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Tsp-devel] Compilation fails with XMLRPC enabled


From: Stephane GALLES
Subject: Re: [Tsp-devel] Compilation fails with XMLRPC enabled
Date: Sat, 31 Mar 2007 17:38:15 +0200
User-agent: Thunderbird 1.5.0.10 (X11/20070306)

Hi Robert,

I don't have a Fedora Core 6 installed in order to reproduce your
problem, but I don't really understand how the current compilation
scheme of the XMLRPC support could be out date, as I regularly compile
TSP with the XMLRPC support enabled, with the latest stable version
of the xmlrpc-c library from the official site.

Maybe there could be a problem with the version of the Fedora Core 6 ?
Maybe it is out of date or, it is a modified version as you said ?

Anyway, in order for the XMLRPC support to work, you'd better use
the latest stable for the sourceforge site (I'm going to add this advice
somewhere in the readme file of TSP) or at least a 1.06.1 . I used to
have some problems with some older version of xmlrpc-c that is provided
with my Ubuntu Dapper (some xmlrpc server crashes)

So you may try to download the xmlrpc-c version 1.06.11 from :
http://sourceforge.net/project/showfiles.php?group_id=16847

Here is what I've done on my distro in order to keep the
orginal xmlrpc-c installed :

I've compiled and installed the xmlrpc-c from the sourceforge
site at : /opt/xmlrpc-c

Then I've setup the following env :

export PATH=/opt/xmlrpc-c/bin:$PATH
export LD_LIBRARY_PATH=/opt/xmlrpc-c/lib:$LD_LIBRARY_PATH
export CMAKE_LIBRARY_PATH=/opt/xmlrpc-c/lib
export CMAKE_PROGRAM_PATH=/opt/xmlrpc-c/bin
export CMAKE_INCLUDE_PATH=/opt/xmlrpc-c/include

And I could compile and execute TSP with the compiled xmlrpc-c

However, if you want, I may still try to test your patch to see if it is
compatible both with the vanilla install of xmlrpc-c and
the version of the fedora core 6. Let me know.

Stephane.



Robert de Vries wrote:
> 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
> address@hidden
> http://lists.nongnu.org/mailman/listinfo/tsp-devel





reply via email to

[Prev in Thread] Current Thread [Next in Thread]