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

"Ravi Thati" <[email protected]> Wed, 21 Nov 2007 12:50:45 +0530
Newsgroups gmane.text.xml.rpc.specification
Message-ID <[email protected]>
On Nov 21, 2007 10:58 AM, Ravi Thati <[email protected]> wrote:

> 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
>

Its loading the ruby_errinfo symbol when I use g++ instead of gcc .


>
>
> 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*


But this time some other symbol is missing.

./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: xmlrpc_registry_add_method_w_doc


The symbol  "*xmlrpc_registry_add_method_w_doc*"  is actually from
xmlrpc_resgistry.c

But when traced to see if it is defined in any of the  XML-RPC libraties.
it says:

ravit$> /xmlrpc/lib$nm * | grep xmlrpc_registry_add_method_w_doc
nm: libxmlrpc_abyss.la: File format not recognized
nm: libxmlrpc_client.la: File format not recognized
         U xmlrpc_registry_add_method_w_doc
nm: libxmlrpc.la: File format not recognized
00000210 T xmlrpc_registry_add_method_w_doc
         U xmlrpc_registry_add_method_w_doc
nm: libxmlrpc_server_abyss.la: File format not recognized
         U xmlrpc_registry_add_method_w_doc
         U xmlrpc_registry_add_method_w_doc
         U xmlrpc_registry_add_method_w_doc
nm: libxmlrpc_server_cgi.la: File format not recognized
         U xmlrpc_registry_add_method_w_doc
         U xmlrpc_registry_add_method_w_doc
nm: libxmlrpc_server.la: File format not recognized
         U xmlrpc_registry_add_method_w_doc
         U xmlrpc_registry_add_method_w_doc
         U xmlrpc_registry_add_method_w_doc
000010d6 T xmlrpc_registry_add_method_w_doc
000010d6 T xmlrpc_registry_add_method_w_doc
000010d6 T xmlrpc_registry_add_method_w_doc
nm: libxmlrpc_xmlparse.la: File format not recognized
nm: libxmlrpc_xmltok.la: File format not recognized


This symbol is not defined in any of the libraries from xml-rpc.

How do I get the libraries from the xml-rpc-c with that symbol defined.

I have tried to recompile the xml-rpc-c libraries but no use.

any ideas??



*
>
>
> *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, < [email protected]> 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)




-- 
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:[email protected] 
    mailto:[email protected]

<*> To unsubscribe from this group, send an email to:
    [email protected]

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