XML Module for Aolserver Runtime Error

ArsDigita : ArsDigita Discussion Forums : web/db : One Thread
Notify me of new responses
I get the following error at runtime for the XML 1.0 module for Aolserver.
 
modload: failed to 
load '/usr/local/aolserver/bin/ns_xml.so': '/usr/local/aolserver/bin/n
s_xml.so: undefined symbol: gzdopen'
I am running Red Hat 6.0, on Aolserver 3 ad10,(compiled from sources) I get the following errors when compiling the module:
 
sed: can't read ./example/Makefile.in: No such file or directory
/bin/sh: gtkdoc-fixxref: command not found
make[3]: [install-data-local] Error 127 (ignored)
parser.c: In function `xmlNewInputFromFile':
parser.c:615: warning: passing arg 1 of `ns_strdup' discards `const' 
from pointer target type
parser.c: In function `xmlCreatePushParserCtxt':
I get about another 20 lines like: warning: passing .... discards ......

Has anyone encountered something similar ?

Do I need to download a special library,compiler or something ?

Any help greatly appreciated.

Daniel

-- Daniel Rubio, February 2, 2001

Answers

As to 'undefined symbol', on my machine:
[kjk@rusty]$ ldd /home/nsadmin/bin/nsxml.so 
        libxml.so.2 => /usr/lib/libxml.so.2 (0x4000e000)
        libc.so.6 => /lib/libc.so.6 (0x40076000)
        libz.so.1 => /usr/lib/libz.so.1 (0x4016b000)
        /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x80000000)
Do the same (ldd ../ns_xml.so) on yours and see the output. My guess is that your system is either missing libz.so or you didn't link to it correctly. If the latter you can fix it (although it's a bad fix) by ln -s whatever_path_ns_xml_needs whatever_the_real_path_is (or the other way around; I always forget the arg order for ln -s).

Anyway you're using the tarball version from arsdigita downloads, you might want to switch to more current CVS version. I've written an article http://www.fifthgate.org/articles/aolserver/xml/ns_xml_doc.html with detailed instructions. Let me know if you think that article is confusing or not complete.

-- Krzysztof Kowalczyk, February 2, 2001


Strangely enough I've posted a solution to this problem some time ago in this post

-- Krzysztof Kowalczyk, February 2, 2001

Linking problem with XML/Oracle's Intermedia/Virtual Hosting

Krzysztof:

Thank's for the info,it was that linking problem you mentioned it seems strange I couldn't find your previous post...It's probably Oracle's Intermedia syntax the reason nothing came up on my search

Oh well, speaking of Oracle you might want to take a look at these: www.osmosislatina.com/oracle.

Your XML article looks very good,especially the examples; I will try them out and send you some feedback if I cant figure something out.

Just in case your interested I recently finished this article on VirtualHosting its an alterantive to VHosting with the nsunix/nsvhr modules, maybe not a "pretty one" but it works www.osmosislatina.com/java/javaaolserver.htm.



-- Daniel Rubio, February 3, 2001


webmaster@arsdigita.com