<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: libxml linking problem in Operating System - OpenVMS</title>
    <link>https://community.hpe.com/t5/operating-system-openvms/and-linking-problem/m-p/6234051#M37271</link>
    <description>&lt;P&gt;&amp;gt;Wasn't that already mentioned in the other thread?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It would have been helpful to mention the other topic or keep the topics together, as Steven said.&lt;/P&gt;&lt;P&gt;&lt;A target="_blank" href="https://community.hpe.com/t5/Languages-and-Scripting/libxml-building/m-p/6230631"&gt;http://h30499.www3.hp.com/t5/Languages-and-Scripting/libxml-building/m-p/6230631&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Sat, 12 Oct 2013 22:17:41 GMT</pubDate>
    <dc:creator>Dennis Handly</dc:creator>
    <dc:date>2013-10-12T22:17:41Z</dc:date>
    <item>
      <title>and linking problem</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/and-linking-problem/m-p/6233619#M37267</link>
      <description>&lt;P&gt;Hi to everyone. Again.&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;I've build the libxml library&lt;/LI&gt;&lt;LI&gt;I've got a trouble with linking&lt;/LI&gt;&lt;LI&gt;Directory structure &lt;LI-SPOILER&gt;+libxml2-2_9&lt;BR /&gt;|&amp;nbsp; libxml.olb&lt;BR /&gt;|&amp;nbsp; main.c&lt;BR /&gt;|&amp;nbsp; +libxml&lt;BR /&gt;&amp;nbsp; &amp;nbsp; |&amp;nbsp; header1.h&lt;BR /&gt;&amp;nbsp; &amp;nbsp; |&amp;nbsp; header2.h&lt;BR /&gt;&amp;nbsp; &amp;nbsp; |&amp;nbsp; ....&lt;BR /&gt;&amp;nbsp; &amp;nbsp; |&amp;nbsp; headern.h&amp;nbsp;&lt;/LI-SPOILER&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;The sourse of example:&lt;BR /&gt;&lt;P&gt;&lt;STRONG&gt;main.c &lt;/STRONG&gt;(Was honestly stealed from &lt;A href="http://xmlsoft.org/" target="_blank"&gt;libxml site&lt;/A&gt;)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-SPOILER&gt;&lt;PRE&gt;&lt;STRONG&gt;#include &amp;lt;stdio.h&amp;gt;
#include &amp;lt;string.h&amp;gt;
#include &amp;lt;stdlib.h&amp;gt;
#include &amp;lt;libxml/xmlmemory.h&amp;gt;
#include &amp;lt;libxml/parser.h&amp;gt;

void
parseStory (xmlDocPtr doc, xmlNodePtr cur) {

	xmlChar *key;
	cur = cur-&amp;gt;xmlChildrenNode;
	while (cur != NULL) {
	    if ((!xmlStrcmp(cur-&amp;gt;name, (const xmlChar *)"keyword"))) {
		    key = xmlNodeListGetString(doc, cur-&amp;gt;xmlChildrenNode, 1);
		    printf("keyword: %s\n", key);
		    xmlFree(key);
 	    }
	cur = cur-&amp;gt;next;
	}
    return;
}

static void
parseDoc(char *docname) {

	xmlDocPtr doc;
	xmlNodePtr cur;

	doc = xmlParseFile(docname);
	
	if (doc == NULL ) {
		fprintf(stderr,"Document not parsed successfully. \n");
		return;
	}
	
	cur = xmlDocGetRootElement(doc);
	
	if (cur == NULL) {
		fprintf(stderr,"empty document\n");
		xmlFreeDoc(doc);
		return;
	}
	
	if (xmlStrcmp(cur-&amp;gt;name, (const xmlChar *) "story")) {
		fprintf(stderr,"document of the wrong type, root node != story");
		xmlFreeDoc(doc);
		return;
	}
	
	cur = cur-&amp;gt;xmlChildrenNode;
	while (cur != NULL) {
		if ((!xmlStrcmp(cur-&amp;gt;name, (const xmlChar *)"storyinfo"))){
			parseStory (doc, cur);
		}
		 
	cur = cur-&amp;gt;next;
	}
	
	xmlFreeDoc(doc);
	return;
}

int
main(int argc, char **argv) {

	char *docname;
		
	if (argc &amp;lt;= 1) {
		printf("Usage: %s docname\n", argv[0]);
		return(0);
	}

	docname = argv[1];
	parseDoc (docname);

	return (1);
}&lt;/STRONG&gt;&lt;/PRE&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;/LI-SPOILER&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;UL&gt;&lt;LI&gt;Error:&lt;BR /&gt;&lt;LI-SPOILER&gt;XW01&amp;gt; LINK main.obj, libxml.olb/library&lt;BR /&gt;%LINK-I-OPENIN, error opening IBS_REL_SYS:[MT.SCR]MTFMSSCREEN.OLB; as input&lt;BR /&gt;-RMS-E-PRV, insufficient privilege or file protection violation&lt;BR /&gt;%LINK-I-OPENIN, error opening IBS_REL_SYS:[MT.MESSAGE]MTMESSAGE.OLB; as input&lt;BR /&gt;-RMS-E-PRV, insufficient privilege or file protection violation&lt;BR /&gt;%LINK-I-OPENIN, error opening IBS_REL_SYS:[MT.MESSAGE]VMSSYMBOL.OLB; as input&lt;BR /&gt;-RMS-E-PRV, insufficient privilege or file protection violation&lt;BR /&gt;%LINK-W-NUDFSYMS, 6 undefined symbols:&lt;BR /&gt;%LINK-I-UDFSYM,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; XMLDOCGETROOTELEMENT&lt;BR /&gt;%LINK-I-UDFSYM,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; XMLFREE&lt;BR /&gt;%LINK-I-UDFSYM,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; XMLFREEDOC&lt;BR /&gt;%LINK-I-UDFSYM,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; XMLNODELISTGETSTRING&lt;BR /&gt;%LINK-I-UDFSYM,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; XMLPARSEFILE&lt;BR /&gt;%LINK-I-UDFSYM,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; XMLSTRCMP&lt;BR /&gt;%LINK-W-USEUNDEF, undefined symbol XMLFREE referenced&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; in psect $LINK$ offset %X00000020&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; in module MAIN file TST$USERS:[ALEXANDER.LIBXML2-2_9]MAIN.OBJ;1&lt;BR /&gt;%LINK-W-USEUNDEF, undefined symbol XMLSTRCMP referenced&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; in psect $LINK$ offset %X00000030&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; in module MAIN file TST$USERS:[ALEXANDER.LIBXML2-2_9]MAIN.OBJ;1&lt;BR /&gt;%LINK-W-USEUNDEF, undefined symbol XMLNODELISTGETSTRING referenced&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; in psect $LINK$ offset %X00000070&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; in module MAIN file TST$USERS:[ALEXANDER.LIBXML2-2_9]MAIN.OBJ;1&lt;BR /&gt;%LINK-W-USEUNDEF, undefined symbol XMLFREEDOC referenced&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; in psect $LINK$ offset %X000000B0&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; in module MAIN file TST$USERS:[ALEXANDER.LIBXML2-2_9]MAIN.OBJ;1&lt;BR /&gt;%LINK-W-USEUNDEF, undefined symbol XMLPARSEFILE referenced&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; in psect $LINK$ offset %X000000E0&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; in module MAIN file TST$USERS:[ALEXANDER.LIBXML2-2_9]MAIN.OBJ;1&lt;BR /&gt;%LINK-W-USEUNDEF, undefined symbol XMLDOCGETROOTELEMENT referenced&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; in psect $LINK$ offset %X000000F0&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; in module MAIN file TST$USERS:[ALEXANDER.LIBXML2-2_9]MAIN.OBJ;1&lt;BR /&gt;&lt;BR /&gt;&lt;/LI-SPOILER&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;libxml.olb&amp;nbsp;&lt;/STRONG&gt;structure: (in attached file due to size)&lt;/LI&gt;&lt;LI&gt;I've found all of undefined symbols in the library description (attached file flist.txt). But it seems, that the linker has another opinion.)&amp;nbsp; Is the issue in the linker's keys?&lt;/LI&gt;&lt;/UL&gt;</description>
      <pubDate>Sat, 12 Oct 2013 03:20:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/and-linking-problem/m-p/6233619#M37267</guid>
      <dc:creator>AlexanderM</dc:creator>
      <dc:date>2013-10-12T03:20:05Z</dc:date>
    </item>
    <item>
      <title>Re: and linking problem</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/and-linking-problem/m-p/6233639#M37268</link>
      <description />
      <pubDate>Sat, 12 Oct 2013 04:35:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/and-linking-problem/m-p/6233639#M37268</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2013-10-12T04:35:08Z</dc:date>
    </item>
    <item>
      <title>Re: and linking problem</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/and-linking-problem/m-p/6233961#M37269</link>
      <description>&lt;DIV&gt;&lt;EM&gt;&amp;gt;&amp;gt;&amp;gt; With all your fancy HTML, I didn't see the command which you used to compile "main.c", but I'll guess that you didn't specify /NAMES=AS_IS. Apparently, the library modules _were_ compiled that way.&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;There is more, as one can guess from names like &lt;FONT face="courier new,courier"&gt;xmlDoValidityCheckingDe1bcsei4$&lt;/FONT&gt;: the library modules were compiled with &lt;FONT face="courier new,courier"&gt;/NAMES=(AS_IS,SHORTENED)&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Wasn't that already mentioned in the other thread?&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Sat, 12 Oct 2013 10:37:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/and-linking-problem/m-p/6233961#M37269</guid>
      <dc:creator>H.Becker</dc:creator>
      <dc:date>2013-10-12T10:37:45Z</dc:date>
    </item>
    <item>
      <title>Re: and linking problem</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/and-linking-problem/m-p/6233985#M37270</link>
      <description />
      <pubDate>Sat, 12 Oct 2013 14:13:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/and-linking-problem/m-p/6233985#M37270</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2013-10-12T14:13:11Z</dc:date>
    </item>
    <item>
      <title>Re: libxml linking problem</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/and-linking-problem/m-p/6234051#M37271</link>
      <description>&lt;P&gt;&amp;gt;Wasn't that already mentioned in the other thread?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It would have been helpful to mention the other topic or keep the topics together, as Steven said.&lt;/P&gt;&lt;P&gt;&lt;A target="_blank" href="https://community.hpe.com/t5/Languages-and-Scripting/libxml-building/m-p/6230631"&gt;http://h30499.www3.hp.com/t5/Languages-and-Scripting/libxml-building/m-p/6230631&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 12 Oct 2013 22:17:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/and-linking-problem/m-p/6234051#M37271</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2013-10-12T22:17:41Z</dc:date>
    </item>
    <item>
      <title>Re: libxml linking problem</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/and-linking-problem/m-p/6234875#M37272</link>
      <description>&lt;P&gt;&lt;EM&gt;Steven Schweda&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;gt;&amp;gt;&amp;gt;With all your fancy HTML, I didn't see the command which you used to compile "main.c", but I'll guess that you didn't specify /NAMES=AS_IS. Apparently, the library modules _were_ compiled that way.&lt;/EM&gt;&lt;BR /&gt;&lt;BR /&gt;You are right. The main.c compillation and linking commands I've used are below:&lt;BR /&gt;&amp;gt;cc/include="./" main.c&lt;BR /&gt;&amp;gt;link main, libxml.olb/library&lt;BR /&gt;&lt;BR /&gt;&lt;EM&gt;Steven Schweda&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;gt;&amp;gt;&amp;gt;General suggestion: You might try putting more effort into the&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;content of your questions, and less into the format.&amp;nbsp; Showing _all_ the&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;actual commands you used would be a good start.&lt;/EM&gt;&lt;BR /&gt;&lt;BR /&gt;Thanks. I am new on a forums and I'll try to learn to express the issues in a proper way.&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;&lt;EM&gt;H.Becker&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;gt;&amp;gt;&amp;gt;There is more, as one can guess from names like xmlDoValidityCheckingDe1bcsei4$: the library modules were compiled with /NAMES=(AS_IS,SHORTENED)&lt;/EM&gt;&lt;BR /&gt;&lt;BR /&gt;I've used the file from the previous 'building libxml' thread and there indeed was a line&lt;BR /&gt;cc_opts = "/nowarn/DEF=HAVE_CONFIG_H/NAMES=(as_is,SHORTENED)/FLOAT=IEEE/IEEE_MODE=DENORM_RESULTS/INCLUDE=xml_srcdir"&lt;/P&gt;&lt;P&gt;The full version of file is attached.&lt;BR /&gt;&lt;BR /&gt;&lt;EM&gt;Dennis Handly&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;gt;&amp;gt;&amp;gt;It would have been helpful to mention the other topic or keep the topics together, as Steven said.&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;A target="_blank" href="https://community.hpe.com/t5/Languages-and-Scripting/libxml-building/m-p/6230631"&gt;http://h30499.www3.hp.com/t5/Languages-and-Scripting/libxml-building/m-p/6230631&lt;/A&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;BR /&gt;It seems that now there is not any opportunity to merge threads. That was not the great idea to create the new one, but I've made it due to the 'building libxml' thread was marked as 'resolved'.&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 14 Oct 2013 10:30:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/and-linking-problem/m-p/6234875#M37272</guid>
      <dc:creator>AlexanderM</dc:creator>
      <dc:date>2013-10-14T10:30:47Z</dc:date>
    </item>
    <item>
      <title>Re: libxml linking problem</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/and-linking-problem/m-p/6235143#M37273</link>
      <description>&lt;P&gt;Thanks to everyone. I've linked the library and run a simple test.&lt;/P&gt;&lt;P&gt;Building and Linking commands:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;gt;cc/include="./"/NAMES=(AS_IS,SHORTENED) main.c&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;gt;link main, libxml.olb/library&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 14 Oct 2013 10:36:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/and-linking-problem/m-p/6235143#M37273</guid>
      <dc:creator>AlexanderM</dc:creator>
      <dc:date>2013-10-14T10:36:20Z</dc:date>
    </item>
  </channel>
</rss>

