🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.mac.oop.macapp3
Article #245

Re: Link error

#245
From: Stephen Knight
Date: Fri, 08 Jan 1993 14:18
106 lines
4595 bytes
In article <726455219.5603667@AppleLink.Apple.COM> LANGFORD@AppleLink.Apple.COM (Paradigm Publishing, B Langford,PAS) writes:
>Hi, My name is Jungho.
>I have compiled an application, Skeketon, with 3 different options, but I got
>nothing but failure.
>Please, let me know how I can make this case work.
> 
>Note:  - The current version of MPW Shell being used is MPW Shell 3.2.3 from
>E.T.O. 8.
>   - MacApp 3.0 is used.
> 
>The following is what I did:
>===================o First trial
> MABuild "Skeleton" -NoPasLoad -Save -Debug -SYM -Names
>MABuildTool - v. 3.0.1 Release 6/10/92          Start: 4:39:27 PM 1/7/93
> 
>Copyright Apple Computer, Inc. 1986-1992
>All Rights Reserved.
> 
>AutoSaving...
>Target Folder: "RAM Disk:Keystone:.Debug Sym:"
>Making:        Skeleton.MAMake
>Linking:       Skeleton
>### Sun:MPW:Tools:Link: Error: Jump table offset into code segment is greater
>than 32K. (Error 50) C2PSTR
>### Sun:MPW:Tools:Link: Error: Jump table offset into code segment is greater
>than 32K. (Error 50) p2cstr
>### Sun:MPW:Tools:Link: Error: Jump table offset into code segment is greater
>than 32K. (Error 50) c2pstr
>### Sun:MPW:Tools:Link: Errors prevented normal completion.
>### MPW Shell - Command " " was not found.
>### MPW Shell - Execution of RAM Disk:Keystone:.Debug Sym:Skeleton.MakeIt
>terminated.
>### MPW Shell - Execution of MABuild terminated.

  I've gotten this error before and it has turned out to be a segmentation
problem.  You have too many/big routines trying to go into one segment and
the linker is blowing out at the routines it's telling you about.  The 
easiest way I know of to see your segmentation layout is to use MacBrowse
to parse your code and then do a "Show Segments".

> 
>===================o Second trial with  option -Link "-model far"
> MABuild "Skeleton" -Link "-model far"  -NoPasLoad -Save -Debug -SYM -Names
>MABuildTool - v. 3.0.1 Release 6/10/92          Start: 4:41:05 PM 1/7/93
> 
>Copyright Apple Computer, Inc. 1986-1992
>All Rights Reserved.
> 
>AutoSaving...
>Target Folder: "RAM Disk:Keystone:.Debug Sym:"
>Making:        Skeleton.MAMake
>Linking:       Skeleton
>### Sun:MPW:Tools:Link: Error: Method table optimization, definition not found:
>(Error 58) %_SUPERCLASSTABLE
>### Sun:MPW:Tools:Link: Errors prevented normal completion.
>### MPW Shell - Command " " was not found.
>### MPW Shell - Execution of RAM Disk:Keystone:.Debug Sym:Skeleton.MakeIt
>terminated.
>### MPW Shell - Execution of MABuild terminated.
> 
  Last I knew (which was a while ago), the link "-modal far" was not the
most trustworthy.

> 
>===================o Third trial with -ModelFar
> MABuild "Skeleton" -ModelFar -NoPasLoad -Save -Debug -SYM -Names
>MABuildTool - v. 3.0.1 Release 6/10/92          Start: 4:41:53 PM 1/7/93
> 
>Copyright Apple Computer, Inc. 1986-1992
>All Rights Reserved.
> 
>AutoSaving...
>Target Folder: "RAM Disk:Keystone:.S7NmDbDmUnPeRaTeSmfCfD:"
>Making:        Skeleton.MAMake
> 
>### Sun:MPW:Tools:Make - IO error trying to get file info for "Sun:MacApp
>3.0.1:Libraries:.S7NmDbDmUnPeRaTeSmfCfD:MacApp.lib"
># Directory not found (OS error -120)
> 
>### Sun:MPW:Tools:Make - IO error trying to get file info for "Sun:MacApp
>3.0.1:Libraries:.S7NmDbDmUnPeRaTeSmfCfD:Debug.rsrc"
># Directory not found (OS error -120)
> 
>### Sun:MPW:Tools:Make - IO error trying to get file info for "Sun:MacApp
>3.0.1:Libraries:.S7NmDbDmUnPeRaTeSmfCfD:Defaults.rsrc"
># Directory not found (OS error -120)
> 
>### Sun:MPW:Tools:Make - IO error trying to get file info for "Sun:MacApp
>3.0.1:Libraries:.S7NmDbDmUnPeRaTeSmfCfD:MacApp.rsrc"
># Directory not found (OS error -120)
> 
>### Sun:MPW:Tools:Make - IO error trying to get file info for "Sun:MacApp
>3.0.1:Libraries:.S7NmDbDmUnPeRaTeSmfCfD:ResourceLib.rsrc"
># Directory not found (OS error -120)
>MAKE of Skeleton failed: Thursday, January 7, 1993 4:42:05 PM
>### MPW Shell - Execution of MABuild terminated.
> 
> 

  This looks like you didn't do a "mabuild -autobuild..." which means that
you're missing the appropriate libraries.

Hope this helps.

steve knight
sdk@cci.com
Technical Details
Message-ID: <1993Jan8.141845.26615@cci632.cci.com>
Path: arc1-ca.pugleaf.net!sparky!uunet!psinntp!cci632!sdk
References: <726455219.5603667@AppleLink.Apple.COM>

Show Full Headers
Complete Article Headers
Newsgroups: comp.sys.mac.oop.macapp3
Path: arc1-ca.pugleaf.net!sparky!uunet!psinntp!cci632!sdk
From: sdk@cci632.cci.com (Stephen Knight)
Subject: Re: Link error
Message-ID: <1993Jan8.141845.26615@cci632.cci.com>
Summary: its a segmentation problem.
Organization: [Computer Consoles, Inc., Rochester, NY
References: <726455219.5603667@AppleLink.Apple.COM>
Date: Fri, 8 Jan 1993 14:18:45 GMT
Lines: 106