<?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: makefile and shareable images in Operating System - OpenVMS</title>
    <link>https://community.hpe.com/t5/operating-system-openvms/makefile-and-shareable-images/m-p/4463558#M42580</link>
    <description>Using symbolic links does not seem to help.&lt;BR /&gt;&lt;BR /&gt;I create the symbolic link like that:&lt;BR /&gt;&lt;BR /&gt;bash$ ln -s /dka0/sys0/syscommon/syslib/ssl\$\libssl_shr.exe libssl.so&lt;BR /&gt;&lt;BR /&gt;The makefile looks like :&lt;BR /&gt;&lt;BR /&gt;...&lt;BR /&gt;&lt;BR /&gt;LDFLAGS+=-L. -lssl $(DEBUG)&lt;BR /&gt;CFLAGS+=-O2 -DVERSION=\"$(VERSION)\" $(DEBUG)&lt;BR /&gt;&lt;BR /&gt;OBJS=mem.o http.o io.o str.o error.o utils.o main.o tcp.o mssl.o res.o&lt;BR /&gt;&lt;BR /&gt;httping: $(OBJS)&lt;BR /&gt;        $(CC) $(OBJS) $(LDFLAGS) -o httping&lt;BR /&gt;&lt;BR /&gt;...&lt;BR /&gt;&lt;BR /&gt;I get the objects but the link fails :&lt;BR /&gt;&lt;BR /&gt;bash$ make httping&lt;BR /&gt;&lt;BR /&gt;...&lt;BR /&gt;&lt;BR /&gt;cc mem.o http.o io.o str.o error.o utils.o main.o tcp.o mssl.o res.o -L . -lssl -g  -o httping&lt;BR /&gt;? cc: Warning: library "ssl" not found&lt;BR /&gt;&lt;BR /&gt;...</description>
    <pubDate>Tue, 21 Jul 2009 12:45:55 GMT</pubDate>
    <dc:creator>T. Uso</dc:creator>
    <dc:date>2009-07-21T12:45:55Z</dc:date>
    <item>
      <title>makefile and shareable images</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/makefile-and-shareable-images/m-p/4463556#M42578</link>
      <description>HP C 7.2-022 on OpenVMS IA64 8.3-1H1&lt;BR /&gt;GNV 2.1-2&lt;BR /&gt;&lt;BR /&gt;Is there a way to build an exe with a makefile inside gnv when the link needs shareable images? In other words, how to translate "$link prog.obj, file.opt/option" a la Unix?&lt;BR /&gt;&lt;BR /&gt;Thanks for your help.</description>
      <pubDate>Tue, 21 Jul 2009 08:22:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/makefile-and-shareable-images/m-p/4463556#M42578</guid>
      <dc:creator>T. Uso</dc:creator>
      <dc:date>2009-07-21T08:22:51Z</dc:date>
    </item>
    <item>
      <title>Re: makefile and shareable images</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/makefile-and-shareable-images/m-p/4463557#M42579</link>
      <description>If you have a main object m.o and a shared library libs.so then you just enter&lt;BR /&gt;&lt;BR /&gt;bash$ cc -o m m.o -L. -ls&lt;BR /&gt;&lt;BR /&gt;It should be easy to adopt that for your prog.obj and to create a symbolic link from libs.so to your shareable image s.exe. The same line should work as an action in your makefile.</description>
      <pubDate>Tue, 21 Jul 2009 09:43:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/makefile-and-shareable-images/m-p/4463557#M42579</guid>
      <dc:creator>H.Becker</dc:creator>
      <dc:date>2009-07-21T09:43:43Z</dc:date>
    </item>
    <item>
      <title>Re: makefile and shareable images</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/makefile-and-shareable-images/m-p/4463558#M42580</link>
      <description>Using symbolic links does not seem to help.&lt;BR /&gt;&lt;BR /&gt;I create the symbolic link like that:&lt;BR /&gt;&lt;BR /&gt;bash$ ln -s /dka0/sys0/syscommon/syslib/ssl\$\libssl_shr.exe libssl.so&lt;BR /&gt;&lt;BR /&gt;The makefile looks like :&lt;BR /&gt;&lt;BR /&gt;...&lt;BR /&gt;&lt;BR /&gt;LDFLAGS+=-L. -lssl $(DEBUG)&lt;BR /&gt;CFLAGS+=-O2 -DVERSION=\"$(VERSION)\" $(DEBUG)&lt;BR /&gt;&lt;BR /&gt;OBJS=mem.o http.o io.o str.o error.o utils.o main.o tcp.o mssl.o res.o&lt;BR /&gt;&lt;BR /&gt;httping: $(OBJS)&lt;BR /&gt;        $(CC) $(OBJS) $(LDFLAGS) -o httping&lt;BR /&gt;&lt;BR /&gt;...&lt;BR /&gt;&lt;BR /&gt;I get the objects but the link fails :&lt;BR /&gt;&lt;BR /&gt;bash$ make httping&lt;BR /&gt;&lt;BR /&gt;...&lt;BR /&gt;&lt;BR /&gt;cc mem.o http.o io.o str.o error.o utils.o main.o tcp.o mssl.o res.o -L . -lssl -g  -o httping&lt;BR /&gt;? cc: Warning: library "ssl" not found&lt;BR /&gt;&lt;BR /&gt;...</description>
      <pubDate>Tue, 21 Jul 2009 12:45:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/makefile-and-shareable-images/m-p/4463558#M42580</guid>
      <dc:creator>T. Uso</dc:creator>
      <dc:date>2009-07-21T12:45:55Z</dc:date>
    </item>
    <item>
      <title>Re: makefile and shareable images</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/makefile-and-shareable-images/m-p/4463559#M42581</link>
      <description>AFAIK, libssl usually lives in /usr/lib&lt;BR /&gt;&lt;BR /&gt;Which is usually the [usr.lib] area.&lt;BR /&gt;&lt;BR /&gt;I'd expect gnv to tend to look there, given it's trying to follow how bash and Unix does this.&lt;BR /&gt;&lt;BR /&gt;FWIW.  Ignore this as appropriate.</description>
      <pubDate>Tue, 21 Jul 2009 13:39:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/makefile-and-shareable-images/m-p/4463559#M42581</guid>
      <dc:creator>Hoff</dc:creator>
      <dc:date>2009-07-21T13:39:06Z</dc:date>
    </item>
    <item>
      <title>Re: makefile and shareable images</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/makefile-and-shareable-images/m-p/4463560#M42582</link>
      <description>I'm sorry, I tested this on ODS2 and expected it to work on ODS5 as well. My simple example no longer works there (GNV 2.1-1, 8.3/I64)&lt;BR /&gt;&lt;BR /&gt;You can use VMS style linker options files in GNV. My example, again:&lt;BR /&gt;&lt;BR /&gt;bash$ cc -o m m.o&lt;BR /&gt;%ILINK-E-NUDFSYMS, 2 undefined symbols:&lt;BR /&gt;%ILINK-I-UDFSYM,        F&lt;BR /&gt;%ILINK-I-UDFSYM,        I&lt;BR /&gt;%ILINK-W-USEUNDEF, undefined symbol F referenced&lt;BR /&gt;        section: $CODE$&lt;BR /&gt;        offset: %X0000000000000110  slot: 2&lt;BR /&gt;        module: M&lt;BR /&gt;        file: USER5:[beckerh]m.o;1&lt;BR /&gt;bash$ cat &amp;gt;gnv\$m.opt&lt;BR /&gt;sys$login:s/share&lt;BR /&gt;[ Exit ]&lt;BR /&gt;bash$ export GNV_OPT_DIR=.&lt;BR /&gt;bash$ cc -o m m.o&lt;BR /&gt;Adding special opt file ./gnv$m.opt to link&lt;BR /&gt;bash$&lt;BR /&gt;&lt;BR /&gt;In words, you have to create an options file with the name gnv$&lt;IMAGE-NAME&gt;.opt. Then you have to export the environment variable GNV_OPT_DIR pointing to the directory where you created the options file. Then this file is automatically added to your link operation, when started with cc.&lt;/IMAGE-NAME&gt;</description>
      <pubDate>Tue, 21 Jul 2009 14:14:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/makefile-and-shareable-images/m-p/4463560#M42582</guid>
      <dc:creator>H.Becker</dc:creator>
      <dc:date>2009-07-21T14:14:00Z</dc:date>
    </item>
    <item>
      <title>Re: makefile and shareable images</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/makefile-and-shareable-images/m-p/4463561#M42583</link>
      <description>Something like this should also work and seems more appropriate&lt;BR /&gt;&lt;BR /&gt;bash$ cc -o m m.o -L '/sys$common/syslib/' -l'ssl$libssl_shr'&lt;BR /&gt;&lt;BR /&gt;My initial example was wrong, it worked just by accident. I created the shareable image S.EXE in my default directory and then copied it to libs.so. The effect of '-L. -ls' is to search in the current directory for s.olb, s.a, s.exe and s.so. This is at least incompatible with expected behavior. So I managed to link agains s.exe when I thought I would link agains libs.so.&lt;BR /&gt;&lt;BR /&gt;to make it work as I wanted, I would need '-L. -llibs'. After I found that it though I could apply that to the ssl shareable, as shown above.</description>
      <pubDate>Tue, 21 Jul 2009 14:38:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/makefile-and-shareable-images/m-p/4463561#M42583</guid>
      <dc:creator>H.Becker</dc:creator>
      <dc:date>2009-07-21T14:38:33Z</dc:date>
    </item>
    <item>
      <title>Re: makefile and shareable images</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/makefile-and-shareable-images/m-p/4463562#M42584</link>
      <description>Something like this should also work and seems more appropriate&lt;BR /&gt;&lt;BR /&gt;bash$ cc -o m m.o -L '/sys$common/syslib/' -l'ssl$libssl_shr'&lt;BR /&gt;&lt;BR /&gt;My initial example was wrong, it worked just by accident. I created the shareable image S.EXE in my default directory and then copied it to libs.so. The effect of '-L. -ls' is to search in the current directory for s.olb, s.a, s.exe and s.so. This is at least incompatible with expected behavior. So I managed to link against s.exe when I thought I would link against libs.so.&lt;BR /&gt;&lt;BR /&gt;To make it work as intended, I would need '-L. -llibs'. After I found that it though I could apply that to the ssl shareable, as shown above.</description>
      <pubDate>Tue, 21 Jul 2009 14:40:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/makefile-and-shareable-images/m-p/4463562#M42584</guid>
      <dc:creator>H.Becker</dc:creator>
      <dc:date>2009-07-21T14:40:12Z</dc:date>
    </item>
    <item>
      <title>Re: makefile and shareable images</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/makefile-and-shareable-images/m-p/4463563#M42585</link>
      <description>&lt;!--!*#--&gt;Now my makefile looks like:&lt;BR /&gt;&lt;BR /&gt;...&lt;BR /&gt;&lt;BR /&gt;LDFLAGS+=-L'/sys$$common/syslib/' -l'ssl$$libssl_shr' -l'ssl$$libcrypto_shr' $(DEBUG)&lt;BR /&gt;CFLAGS+=-O2 -DVERSION=\"$(VERSION)\" $(DEBUG)&lt;BR /&gt;&lt;BR /&gt;A binary called httping. is built and then:&lt;BR /&gt;&lt;BR /&gt;$ bash&lt;BR /&gt;bash$ httping "-V"&lt;BR /&gt;HTTPing v1.3.0, (C) 2003-2008 folkert@vanheusden.com&lt;BR /&gt;SSL support included&lt;BR /&gt;bash$ httping -l -g &lt;A href="https://mathrider.dev.java.net/" target="_blank"&gt;https://mathrider.dev.java.net/&lt;/A&gt; -c 1&lt;BR /&gt;PING mathrider.dev.java.net:443 (&lt;A href="https://mathrider.dev.java.net/):" target="_blank"&gt;https://mathrider.dev.java.net/):&lt;/A&gt;&lt;BR /&gt;connected to mathrider.dev.java.net:443, seq=0 time=1601.00 ms&lt;BR /&gt;--- &lt;A href="https://mathrider.dev.java.net/" target="_blank"&gt;https://mathrider.dev.java.net/&lt;/A&gt; ping statistics ---&lt;BR /&gt;1 connects, 1 ok, 0.00% failed&lt;BR /&gt;round-trip min/avg/max = 1601.0/1601.0/1601.0 ms&lt;BR /&gt;&lt;BR /&gt;*BUT*&lt;BR /&gt;&lt;BR /&gt;$ httping :==$dka0:[test.httping-1_3_0]httping.&lt;BR /&gt;$ httping "-V"&lt;BR /&gt;HTTPing v1.3.0, (C) 2003-2008 folkert@vanheusden.com&lt;BR /&gt;SSL support included&lt;BR /&gt;$ httping -l -g &lt;A href="https://mathrider.dev.java.net/" target="_blank"&gt;https://mathrider.dev.java.net/&lt;/A&gt; -c 1&lt;BR /&gt;PING mathrider.dev.java.net:443 (&lt;A href="https://mathrider.dev.java.net/):" target="_blank"&gt;https://mathrider.dev.java.net/):&lt;/A&gt;&lt;BR /&gt;%SYSTEM-F-ACCVIO, ...&lt;BR /&gt;%TRACE-F-TRACEBACK, symbolic stack dump follows&lt;BR /&gt;image     module    routine ...&lt;BR /&gt;SSL$LIBCRYPTO_SHR ...                           &lt;BR /&gt;...</description>
      <pubDate>Wed, 22 Jul 2009 06:35:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/makefile-and-shareable-images/m-p/4463563#M42585</guid>
      <dc:creator>T. Uso</dc:creator>
      <dc:date>2009-07-22T06:35:23Z</dc:date>
    </item>
    <item>
      <title>Re: makefile and shareable images</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/makefile-and-shareable-images/m-p/4463564#M42586</link>
      <description>Fiat lux !&lt;BR /&gt;&lt;BR /&gt;The two methods given by H.Becker work but SSL$LIBSSL_SHR32.EXE and SSL$LIBCRYPTO_SHR32.EXE (32 bits) must be used instead of SSL$LIBSSL_SHR.EXE and SSL$LIBCRYPTO_SHR.EXE (64 bits) in the DCL environment.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 22 Jul 2009 07:24:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/makefile-and-shareable-images/m-p/4463564#M42586</guid>
      <dc:creator>T. Uso</dc:creator>
      <dc:date>2009-07-22T07:24:32Z</dc:date>
    </item>
    <item>
      <title>Re: makefile and shareable images</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/makefile-and-shareable-images/m-p/4463565#M42587</link>
      <description>So it looks like the image is working from the bash but not from DCL. Looks like a different problem to me.&lt;BR /&gt;&lt;BR /&gt;Anyway, I can't build HTTPing v1.3.0 from the sources I found on &lt;A href="http://www.vanheusden.com." target="_blank"&gt;www.vanheusden.com.&lt;/A&gt; It wants regex.h and syslog.h whic hI don;t have. There is probably more. What are you using?&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 22 Jul 2009 07:49:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/makefile-and-shareable-images/m-p/4463565#M42587</guid>
      <dc:creator>H.Becker</dc:creator>
      <dc:date>2009-07-22T07:49:28Z</dc:date>
    </item>
    <item>
      <title>Re: makefile and shareable images</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/makefile-and-shareable-images/m-p/4463566#M42588</link>
      <description>I use regex.h from gnv and I delete syslog.h (it is not used). I have also made some modifications in the c files (some types are different between Unix and OpenVMS headers).&lt;BR /&gt;&lt;BR /&gt;I will clean up my modifications and I will send you the results.</description>
      <pubDate>Wed, 22 Jul 2009 08:29:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/makefile-and-shareable-images/m-p/4463566#M42588</guid>
      <dc:creator>T. Uso</dc:creator>
      <dc:date>2009-07-22T08:29:53Z</dc:date>
    </item>
    <item>
      <title>Re: makefile and shareable images</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/makefile-and-shareable-images/m-p/4463567#M42589</link>
      <description>The zip file...</description>
      <pubDate>Thu, 23 Jul 2009 06:53:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/makefile-and-shareable-images/m-p/4463567#M42589</guid>
      <dc:creator>T. Uso</dc:creator>
      <dc:date>2009-07-23T06:53:56Z</dc:date>
    </item>
  </channel>
</rss>

