Newsgroups: bit.listserv.c370-l
Date:         Sat, 12 Sep 1992 21:54:00 EDT
From:         "Rostyslaw J. Lewyckyj" <URJLEW@UNC.BITNET>
Subject: Re: @@XINIT@

  Steve Bacher <seb152@mvs.draper.com> writes:
  >  Rostyslaw J. Lewyckyj <urjlew@unc.bitnet> writes:
> >> Could someone please try to compile and linkedit the program
> >> included below. On our system it compiles clean but gets
> >> an IEW0132  @@XINIT@  unresolved external reference error
> >> when I attempt to linkedit it. It is the boiled down test
> >> version of my program.
>
> Are you sure you're doing the link correctly?  The TCP/IP V2R1 manual
> said that you must use the following:
>
>  INCLUDE SYSLIB(XMACROS)
>  INCLUDE SYSLIB(XLIBINT)
>  INCLUDE SYSLIB(XRM)
>  ENTRY CEESTART
>
> --
> Steve Bacher (Batchman)                 Draper Laboratory
> Internet: seb@draper.com                Cambridge, MA, USA

Well it was worth a try, so I tried it. However the error won't
go away. Included below is my JCL and the beginning and end of
the linkage editor output. Also according to the message from
Michael Stein <CSYSMAS@UCLAMVS.BITNET>, the program compiles and
links clean on his system with C/370 V2 R1 M00 and TCP/IP V2.2.
However we are on C/370 V1 R2 M0 and TCP/IP V2 R1 M0. According
to Michaels' output @@XINIT@ was not brought in from a library
(No * beside the name). So is it supposed to be generated by the
compiler, or defined in some header file??

----------   inclusion follows   ---------------------
 //S1  EXEC EDCCL,CPARM='SOURCE,XREF,RENT',                              0005000
 //    LPARM='AMODE=31,MAP,XREF,LET'
 //COMPILE.SYSIN DD *                                                    0006000
 //COMPILE.SYSLIB DD
 //        DD DISP=SHR,DSN=TCPIP.V2R1.COMMMAC
 //LKED.SYSLIB DD
 //            DD
 //            DD DISP=SHR,DSN=TCPIP.V2R1.COMMTXT
 //LKED.SYSLIN DD
 //            DD *
   INCLUDE SYSLIB(XMACROS)
   INCLUDE SYSLIB(XLIBINT)
   INCLUDE SYSLIB(XRM)
   ENTRY CEESTART
 /*
 ------------   lked output   -------------------------------
  MVS/XA DFP VER 2 LINKAGE EDITOR                21:14:08  SAT  SEP 12, 1992
  JOB MYSRVY11   STEP S1         PROCEDURE LKED
  INVOCATION PARAMETERS - AMODE=31,MAP,XREF,LET
  ACTUAL SIZE=(317440,86016)
  OUTPUT DATA SET SYS92256.T211342.RA000.MYSRVY11.GSET IS ON VOLUME
 IEW0342  SYSLIB    XMACROS
 IEW0342  SYSLIB    XLIBINT
 IEW0342  SYSLIB    XRM
 IEW0132  @@XINIT@
0
0                                                CROSS REFERENCE TABLE

0  CONTROL SECTION                       ENTRY
0    NAME    ORIGIN  LENGTH                NAME   LOCATION     NAME   LOCATION
   CEESTART      00      80
   @@INIT@       80      30
  $PRIVATE       B0      D0
                                         MAIN          D4
   CEEMAIN      180       4
   @@COPYW *    188      3F
   CEESG003*    1C8      30
   IBMBPIR1*    1F8     3C0
                                         IBMBPIRA     296    IBMBPIRB     298
      ...........................................
                  much output deleted
      ...........................................
0
-                                             DIAGNOSTIC MESSAGE DIRECTORY
    IEW0132 ERROR - SYMBOL PRINTED IS AN UNRESOLVED EXTERNAL REFERENCE.
    IEW0342 ERROR - LIBRARY SPECIFIED DOES NOT CONTAIN MODULE.

-------------    end of inclusion  ------------------------

Compare this to the output from Michael Stein which had @@XINIT@
without an *  after the csect name immediately before CEESG003.
--Rostyk
Comments: Gated by NETNEWS@AUVM.AMERICAN.EDU