<?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: dn_expand, where resolved in Operating System - OpenVMS</title>
    <link>https://community.hpe.com/t5/operating-system-openvms/dn-expand-where-resolved/m-p/3346609#M31343</link>
    <description>...it should, however, pick up that shareable library without having to explicitely refer to it.&lt;BR /&gt;&lt;BR /&gt;A relevant passage from &lt;A href="http://h71000.www7.hp.com/doc/73final/6529/6529pro_001.html#decc_compile" target="_blank"&gt;http://h71000.www7.hp.com/doc/73final/6529/6529pro_001.html#decc_compile&lt;/A&gt; could be:&lt;BR /&gt;&lt;BR /&gt;&amp;gt;&amp;gt;&amp;gt;&lt;BR /&gt;To compile and link your Compaq C program using BSD Version 4.4, enter the following commands, where filename is the name of your program: &lt;BR /&gt;&lt;BR /&gt;$ CC/PREFIX=ALL/DEFINE=(_SOCKADDR_LEN) filename.C &lt;BR /&gt;$ LINK/MAP filename&lt;BR /&gt;&amp;lt;&amp;lt;&amp;lt;&lt;BR /&gt;&lt;BR /&gt;cu,&lt;BR /&gt;  Martin&lt;BR /&gt;</description>
    <pubDate>Mon, 02 Aug 2004 06:35:28 GMT</pubDate>
    <dc:creator>Martin Vorlaender</dc:creator>
    <dc:date>2004-08-02T06:35:28Z</dc:date>
    <item>
      <title>dn_expand, where resolved</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/dn-expand-where-resolved/m-p/3346607#M31341</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;on request of a user I am looking into the Net::DNS perl module. During the link of the module dn_expand is not found. The function is defined in resolv.h . Which shareable(s) do I miss in my link list?&lt;BR /&gt;&lt;BR /&gt;Greetings, Martin</description>
      <pubDate>Sun, 01 Aug 2004 20:22:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/dn-expand-where-resolved/m-p/3346607#M31341</guid>
      <dc:creator>Martin P.J. Zinser</dc:creator>
      <dc:date>2004-08-01T20:22:40Z</dc:date>
    </item>
    <item>
      <title>Re: dn_expand, where resolved</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/dn-expand-where-resolved/m-p/3346608#M31342</link>
      <description>In resolv.h dn_expand is equated to TCPIP$DN_EXPAND, for which a global symbol exists in SYS$SHARE:TCPIP$IPC_SHR.EXE&lt;BR /&gt;(TCP/IP Services 5.3).&lt;BR /&gt;&lt;BR /&gt;cu,&lt;BR /&gt;  Martin</description>
      <pubDate>Mon, 02 Aug 2004 02:39:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/dn-expand-where-resolved/m-p/3346608#M31342</guid>
      <dc:creator>Martin Vorlaender</dc:creator>
      <dc:date>2004-08-02T02:39:53Z</dc:date>
    </item>
    <item>
      <title>Re: dn_expand, where resolved</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/dn-expand-where-resolved/m-p/3346609#M31343</link>
      <description>...it should, however, pick up that shareable library without having to explicitely refer to it.&lt;BR /&gt;&lt;BR /&gt;A relevant passage from &lt;A href="http://h71000.www7.hp.com/doc/73final/6529/6529pro_001.html#decc_compile" target="_blank"&gt;http://h71000.www7.hp.com/doc/73final/6529/6529pro_001.html#decc_compile&lt;/A&gt; could be:&lt;BR /&gt;&lt;BR /&gt;&amp;gt;&amp;gt;&amp;gt;&lt;BR /&gt;To compile and link your Compaq C program using BSD Version 4.4, enter the following commands, where filename is the name of your program: &lt;BR /&gt;&lt;BR /&gt;$ CC/PREFIX=ALL/DEFINE=(_SOCKADDR_LEN) filename.C &lt;BR /&gt;$ LINK/MAP filename&lt;BR /&gt;&amp;lt;&amp;lt;&amp;lt;&lt;BR /&gt;&lt;BR /&gt;cu,&lt;BR /&gt;  Martin&lt;BR /&gt;</description>
      <pubDate>Mon, 02 Aug 2004 06:35:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/dn-expand-where-resolved/m-p/3346609#M31343</guid>
      <dc:creator>Martin Vorlaender</dc:creator>
      <dc:date>2004-08-02T06:35:28Z</dc:date>
    </item>
    <item>
      <title>Re: dn_expand, where resolved</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/dn-expand-where-resolved/m-p/3346610#M31344</link>
      <description>The comments in resolv.h say, before defining dn_expand, &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;/*&lt;BR /&gt;**  The following procedures are not defined in the DECC$SHR image, but&lt;BR /&gt;**  instead must be resolved with the TCPIP images.&lt;BR /&gt;**&lt;BR /&gt;**  If the user has defined a feature test macro, __TCPIP_GLOBALS, we will&lt;BR /&gt;**  define these functions as globals which are resolved by a TCPIP object&lt;BR /&gt;**  library.&lt;BR /&gt;*/&lt;BR /&gt;#ifdef __TCPIP_GLOBALS&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;I find this a bit odd since a macro beginning with two underscores is by definition supposed to be system defined rather than user defined, but there it is.  So you probably either need&lt;BR /&gt;&lt;BR /&gt;$ CC/DEFINE=__TCPIP_GLOBALS&lt;BR /&gt;&lt;BR /&gt;or add to the include file that comes with the extension (if any), something like:&lt;BR /&gt;&lt;BR /&gt;#ifdef __VMS&lt;BR /&gt;# define __TCPIP_GLOBALS&lt;BR /&gt;#endif&lt;BR /&gt;&lt;BR /&gt;and of course that would have to be somewhere the compiler would see it before processing resolv.h.</description>
      <pubDate>Mon, 02 Aug 2004 12:15:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/dn-expand-where-resolved/m-p/3346610#M31344</guid>
      <dc:creator>Craig A Berry</dc:creator>
      <dc:date>2004-08-02T12:15:00Z</dc:date>
    </item>
    <item>
      <title>Re: dn_expand, where resolved</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/dn-expand-where-resolved/m-p/3346611#M31345</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;thanks for the help. I did make progress to the point that I can "hand build" the module. Actually I both the __TCPIP_GLOBALS macro (goes directly into the XS code next to a similar statement for hpux ;-) and the tcpip$ip_shr.exe  listed in the options file. The last one is the problem I suppose/hope Craig might be able to help with. I did try passing -L sys$share -ltcpip$ipc_share.exe  as LIBS in Makefile.PL&lt;BR /&gt;&lt;BR /&gt;This is kind of picked up, since perl Makefile.PL emits&lt;BR /&gt;&lt;BR /&gt; Note (probably harmless): No library found for tcpip$ipc_share.exe&lt;BR /&gt;&lt;BR /&gt;So how to I pass the information that I need this lib correclty to MakeMaker?&lt;BR /&gt;&lt;BR /&gt;Greetings, Martin&lt;BR /&gt;</description>
      <pubDate>Mon, 02 Aug 2004 21:35:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/dn-expand-where-resolved/m-p/3346611#M31345</guid>
      <dc:creator>Martin P.J. Zinser</dc:creator>
      <dc:date>2004-08-02T21:35:00Z</dc:date>
    </item>
    <item>
      <title>Re: dn_expand, where resolved</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/dn-expand-where-resolved/m-p/3346612#M31346</link>
      <description>&amp;gt;&amp;gt;&amp;gt;&lt;BR /&gt; I did try passing -L sys$share -ltcpip$ipc_share.exe as LIBS in Makefile.PL&lt;BR /&gt;&lt;BR /&gt;This is kind of picked up, since perl Makefile.PL emits&lt;BR /&gt;&lt;BR /&gt;Note (probably harmless): No library found for tcpip$ipc_share.exe&lt;BR /&gt;&lt;BR /&gt;So how to I pass the information that I need this lib correclty to MakeMaker?&lt;BR /&gt;&amp;lt;&amp;lt;&amp;lt;&lt;BR /&gt;&lt;BR /&gt;If you really did like you wrote: perhaps by specifying the correct file name tcpip$ipc_shr.exe ? ;-))&lt;BR /&gt;&lt;BR /&gt;cu,&lt;BR /&gt;  Martin</description>
      <pubDate>Tue, 03 Aug 2004 02:23:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/dn-expand-where-resolved/m-p/3346612#M31346</guid>
      <dc:creator>Martin Vorlaender</dc:creator>
      <dc:date>2004-08-03T02:23:26Z</dc:date>
    </item>
    <item>
      <title>Re: dn_expand, where resolved</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/dn-expand-where-resolved/m-p/3346613#M31347</link>
      <description>OK, I decided to break with custom and only give advice after actually figuring out what I'm talking about :-).&lt;BR /&gt;&lt;BR /&gt;I patched the XS file as follows:&lt;BR /&gt;&lt;BR /&gt;--- dns.xs;-0   Fri Dec 12 19:47:33 2003&lt;BR /&gt;+++ dns.xs      Tue Aug  3 12:26:29 2004&lt;BR /&gt;@@ -15,6 +15,9 @@&lt;BR /&gt; #define _SYS_MAGIC_INCLUDED&lt;BR /&gt; #endif&lt;BR /&gt;  &lt;BR /&gt;+#ifdef __VMS&lt;BR /&gt;+# define __TCPIP_GLOBALS&lt;BR /&gt;+#endif&lt;BR /&gt;  &lt;BR /&gt; #include "EXTERN.h"&lt;BR /&gt; #include "perl.h"&lt;BR /&gt;@@ -54,7 +57,7 @@&lt;BR /&gt; &lt;BR /&gt;   PPCODE:&lt;BR /&gt;        STRLEN len;&lt;BR /&gt;-       char * buf;&lt;BR /&gt;+       const unsigned char * buf;&lt;BR /&gt;        char name[MAXDNAME];&lt;BR /&gt;        int pos;&lt;BR /&gt; &lt;BR /&gt;@@ -62,7 +65,7 @@&lt;BR /&gt;                sv_buf = SvRV(sv_buf);&lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt;-       buf = SvPV(sv_buf, len);&lt;BR /&gt;+       buf = (const unsigned char *) SvPV(sv_buf, len);&lt;BR /&gt; &lt;BR /&gt;        /* This is where we do the actual uncompressing magic. */&lt;BR /&gt;        pos = dn_expand(buf, buf+len, buf+offset, &amp;amp;name[0], MAXDNAME);&lt;BR /&gt;[end of patch]&lt;BR /&gt;&lt;BR /&gt;and I generated the descrip.mms by executing the following command:&lt;BR /&gt;&lt;BR /&gt;$ perl Makefile.pl "LIBS=-lsys$share:tcpip$ipc_shr.exe" --xs&lt;BR /&gt;&lt;BR /&gt;and that (after running MMK) got me a clean compile and link.  I passed 17 of 19 tests; I think the failures were mostly because I didn't have other prerequisites for some of the functionality.</description>
      <pubDate>Tue, 03 Aug 2004 12:34:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/dn-expand-where-resolved/m-p/3346613#M31347</guid>
      <dc:creator>Craig A Berry</dc:creator>
      <dc:date>2004-08-03T12:34:21Z</dc:date>
    </item>
  </channel>
</rss>

