logo       
Google Custom Search
    AddThis Social Bookmark Button
-->

Re: xml-rpc service C implementation compatible with HTTP or tomcat server: msg#00007

Subject: Re: xml-rpc service C implementation compatible with HTTP or tomcat server
thanks Mr.Bryan,


I am tring the mod_xmlrpc now.

I have compiled it as a shared library.


The linking command is like this:

ravit$> /usr/bin/gcc -fPIC -DSUPPORT_C
`/home/tools/ravit/Gridhra/Dev/xmlrpc/bin/xmlrpc-c-config --cflags`
`/home/tools/ravit/usr/local/httpd/bin/apr-config --cflags`
-I`/home/tools/ravit/usr/local/httpd/bin/apr-config --includedir`
`/home/tools/ravit/usr/local/httpd/bin/apxs2 -q CFLAGS`
-I`/home/tools/ravit/usr/local/httpd/bin/apxs2 -q INCLUDEDIR` -g -O2
-I/home/tools/ravit/usr/local/ruby/lib/ruby/1.8/i686-linux -DSUPPORT_RUBY
`/home/tools/ravit/Gridhra/Dev/xmlrpc/bin/xmlrpc-c-config --libs`
`/home/tools/ravit/usr/local/httpd/bin/apr-config --libs`
`/home/tools/ravit/usr/local/httpd/bin/apxs2 -q LDFLAGS` -ldl -lcrypt -lm
-lc -lruby -shared -Wl,-soname,mod_xmlrpc.so -o
*mod_xmlrpc.so*"CMakeFiles/mod_xmlrpc.dir/mod_xmlrpc.o"
"CMakeFiles/mod_xmlrpc.dir/mod_xmlrpc_c.o"
"CMakeFiles/mod_xmlrpc.dir/mod_xmlrpc_rb.o"
"CMakeFiles/mod_xmlrpc.dir/mod_xmlrpc_server.o"
-L/home/tools/ravit/Gridhra/Dev/xmlrpc/lib
-L/home/tools/ravit/usr/local/ruby/lib



And I have stored this  *mod_xmlrpc.so into modules directory of httpd.

*And added the
                         LoadModule mod_xmlrpc  modules/mod_xmlrpc.so
statement  in the httpd.conf file.

And tried to restart the httpd like this:

ravit$> /bin/apachectl start
Syntax error on line 233 of
/home/tools/ravit/usr/local/httpd/conf/httpd.conf:
Cannot load /home/tools/ravit/usr/local/httpd/modules/mod_xmlrpc.so into
server: /home/tools/ravit/usr/local/httpd/modules/mod_xmlrpc.so: undefined
symbol: *ruby_errinfo


*what is this error message signifies.

When I do " nm " for ruby library it is like this:
ravit$> nm libruby.a  | grep ruby_errinfo
         U ruby_errinfo
00000008 D ruby_errinfo

It says  defined symbol.

And when do the same for mod_xmlrpc.so

ravit$> nm mod_xmlrpc.so | grep ruby
         U ruby_errinfo
         U ruby_init
         U ruby_init_loadpath

Here it is Undefined.

ANy thing wrong in the linking process ??


Why is the symbol defined in ruby library not included in mod_xmlrpc.so ?

Any idea of the problem or its solution ??

( I have installed RUBY, HTTPD,  xmlrpc libraries in my machine
gcc version 3.2.2 20030222 (Red Hat Linux 3.2.2-5)
GNU ld version 2.13.90.0.18 20030206
httpd-2.0.61 server
xmlrpc-c-1.03.04
)


On 20 Nov 2007 22:50:51 +0000, <bryanh@xxxxxxxxxxxxxxxx> wrote:

>   >I have an XML-RPC Service implemented in C and hosted using abyss
> >Server.
>
> That sounds like XML-RPC For C/C++.
>
> >Now I would like to make to host it on to HTTPD or Tomcat web server.
>
> I don't know what you mean by HTTPD, since that is a common name for
> various HTTP server programs.
>
> With any HTTP server that does CGI, you can use libxmlrpc_server_cgi,
> which is also part of XML-RPC For C/C++
> (http://xmlrpc-c.sourceforge.net/doc/libxmlrpc_server_cgi.html).
>
> With the Apache HTTP server, you can use the Apache module "mod_xmlrpc"
> (http://freshmeat.net/projects/mod_xmlrpc) with the same method code you
> use with Abyss.
>
> I don't know about Tomcat.
>
> --
> Bryan Henderson San Jose, California
>  
>



-- 
Ravi.T
Oom asathoma sadgamaya (Lead me from darkeness to light)
Thamasoma jyothirgamaya ( From ignorance to truth)
Mruthyorma amrutham gamaya (From death to eternity)
Oom shanti shanti shantihi ( Let peace prevail everywhere)


[Non-text portions of this message have been removed]



 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/xml-rpc/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/xml-rpc/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:xml-rpc-digest@xxxxxxxxxxxxxxx 
    mailto:xml-rpc-fullfeatured@xxxxxxxxxxxxxxx

<*> To unsubscribe from this group, send an email to:
    xml-rpc-unsubscribe@xxxxxxxxxxxxxxx

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



<Prev in Thread] Current Thread [Next in Thread>