home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.databases.ingres
- Path: sparky!uunet!wupost!uwm.edu!linac!uchinews!gsbacd.uchicago.edu!cs_mj
- From: cs_mj@gsbacd.uchicago.edu (Mark Jaeger)
- Subject: Re: abfimage
- Message-ID: <1992Jul20.231144.1@gsbacd.uchicago.edu>
- Lines: 53
- Sender: news@uchinews.uchicago.edu (News System)
- Organization:
- References: <1992Jul16.143426.3029@praxis.co.uk>
- Date: Tue, 21 Jul 1992 05:11:44 GMT
-
- In article <1992Jul16.143426.3029@praxis.co.uk>, bill@praxis.co.uk
- (William Walker) writes:
- > Does anyone know if it is possible to link an application image
- > without having to use abfimage
- >
- > We have got a very large development system which is half C and half
- > 4GL. We are running 6.3 under Unix.
- >
- > All the C is compiled outside ingres and placed into libraries.
- >
- > If I change a C program and want to produce a new executable using
- > abfimage, I often have to wait 1/2 hour while Ingres trawls through
- > the few hundred osq files before it starts 'building runnable image of
- > ...'
-
- I've never tried it, but it's very likely that it can be done. Under
- VMS, you can do "set verify" to find out what scripts are being run, and
- this lets you actually see the command that imageapp (or abfimage) uses
- to link (load) all the object files together into a runnable binary.
-
- INGRES creates a link options file on the fly when you use imageapp,
- which is a list of all the object files that need to be linked together,
- and it uses this in the "link" command. Here's an example of the "link"
- command:
-
- $ link/nomap/exe=mj_test_link.exe DE:[SCRATCH.C.MJ]opt00adeJ.opt/options
-
- and here are the contents of the link options file:
-
- PROD_II_SYSTEM:[INGRES.library]frontmain.obj
- PROD_II_SYSTEM:[INGRES.library]abfmain.obj
- PROD_II_ABF:[INGRES.ABF.iidbdb.mj_test_link]abextract.obj
- PROD_II_ABF:[INGRES.ABF.iidbdb.mj_test_link]foo.obj
- II_FRAMELIB/share
- II_LIBQLIB/share
- II_COMPATLIB/share
-
- In this case, the only ABF object that I provided was "foo.obj". INGRES
- filled in all the rest. You'll have to make the translation to Unix.
- PROD_II_SYSTEM is the definition for II_SYSTEM. PROD_II_ABF becomes
- part of the ING_ABFDIR environment variable. II_FRAMELIB, II_LIBQLIB,
- and II_COMPATLIB are shareable images in VMS, and there are probably
- equivalent object libraries (archives?) in Unix. Try poking around in
- $II_SYSTEM/ingres/files for abf* and esql* for hints.
-
- Good luck.
-
- --Mark Jaeger internet: cs_mj@gsbvax.uchicago.edu
- Graduate School of Business yellnet: (312) 702-0328
- University of Chicago faxnet: (312) 702-0233
- Disclaimer: My opinions are my own and not those of my employer.
- Ich bin ein Virus. Mach' mit und kopiere mich in Deine .signature.
-
-