ksherlock / mpw

Macintosh Programmer's Workshop (mpw) compatibility layer
238 stars 21 forks source link

link: Path reference number specifies nonexistent access path (OS error -51) #21

Closed steventroughtonsmith closed 9 years ago

steventroughtonsmith commented 9 years ago

On feature_trap_address_2015 branch:

New linker error that might be related to resources?

Sample project: https://gist.github.com/steventroughtonsmith/ca38f97e65517106297d

iMac:pascal steven$ make
~/bin/mpw Pascal -n -h test.p -o test.o
~/bin/mpw link -w -c 'MPS ' -t APPL -sn STDIO=Main -sn INTENV=Main -sn %A5Init=Main test.o {Libraries}Stubs.o {Libraries}MacRuntime.o {Libraries}IntEnv.o {Libraries}ObjLib.o {Libraries}Interface.o {Libraries}ToolLibs.o {CLibraries}StdCLib.o {PLibraries}PasLib.o -o test
### link: Path reference number specifies nonexistent access path (OS error -51)  
### link: Error: Resource I/O error, # (Error 6) opening/creating file.
### link: Errors prevented normal completion.
Makefile:34: recipe for target 'test' failed
make: *** [test] Error 2

On master branch, using [patched] Pascal:

iMac:pascal steven$ make
~/bin/legacympw Pascal-patched -n -h test.p -o test.o
~/bin/legacympw link -w -c 'MPS ' -t APPL -sn STDIO=Main -sn INTENV=Main -sn %A5Init=Main test.o {Libraries}Stubs.o {Libraries}MacRuntime.o {Libraries}IntEnv.o {Libraries}ObjLib.o {Libraries}Interface.o {Libraries}ToolLibs.o {CLibraries}StdCLib.o {PLibraries}PasLib.o -o test
Rez -rd test.r -o test -i /Applications/MPW-GM/Interfaces\&Libraries/Interfaces/RIncludes -append
iMac:pascal steven$ 
steventroughtonsmith commented 9 years ago

Also verified fixed by 7beb3a7b43565545fdf274635b3e4a30054241f6 & can close