Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Shared library creating

4 views
Skip to first unread message

Robert Trawinski

unread,
Dec 11, 2004, 8:08:11 AM12/11/04
to
Hi all!

Does anybody know how to determine automatically what option shuold be
used in options file
when we create shared library from object library. We create
automatically options file which contains
all symbols from OLB, but we don't know how to determine when we should
use

SYMBOL_VECTOR=(symbol=DATA)

instead of

SYMBOL_VECTOR=(symbol=PROCEDURE)


After first creating EXE, we know what need to be changed in options
file, because linker displays messages
like following:


%LINK-W-SYMVABNORMAL, Symbol CXXL$PNTTRCSNKSCXX1F7F3107DNOO4
defined in module TRACE_SINKS as DATA
was declared in options as PROCEDURE

As you can see we use CXX compiler (VMS 7.3-1 and 7.3-2). Problem starts
when we need build
different distributions using diffrent CXX versions. Name mangling is
different, so we have to
maintain diffrent options files.

Thanks for help,

Robert

Craig A. Berry

unread,
Dec 11, 2004, 11:18:13 PM12/11/04
to
In article <cperfr$h26$1...@bozon2.softax.pl>,
Robert Trawinski <robert.t...@softax.com.pl> wrote:

> Does anybody know how to determine automatically what option shuold be
> used in options file
> when we create shared library from object library.

Read the Shareable Image Cookbook:

http://h71000.www7.hp.com/wizard/swdev/ovms-shexe-cook.html

and of course the OpenVMS Linker Utility manual:

http://h71000.www7.hp.com/doc/73final/4548/4548PRO.HTML

JOUKJ

unread,
Dec 13, 2004, 4:47:23 AM12/13/04
to
Johannes Plass (see http://wwwthep.physik.uni-mainz.de/~plass/gv/ )
created an automatic procedure for his gv.
With some modification I implemented it in some other packages
(i.e. Mesa see : http://mesa3d.sourceforge.net/ ) here it is called
analyze_map.com. First you create a map-file and than you extract
all the externals and generate an .opt file. I was not very successful
with CXX because it generates lots of CXX internals in the .opt file.
But maybe you can tweak the procedure for your need.

Jouk

David Mathog

unread,
Dec 13, 2004, 11:17:56 AM12/13/04
to
Robert Trawinski wrote:
> Hi all!
>
> Does anybody know how to determine automatically what option shuold be
> used in options file
> when we create shared library from object library.


ftp://saf.bio.caltech.edu/pub/software/openvms/make_opt_from_olb.com

Regards,

David Mathog
mat...@caltech.edu

Robert Trawinski

unread,
Dec 14, 2004, 12:45:42 PM12/14/04
to


Many thanks for all,

Robert

0 new messages