[plt-scheme] link: broken compiled code
Hello,
I've got a error when I moved .zo-compiled project to another directory.
See this example:
Source code:
[/jet/src/dir1]$ cat mod.scm
(module mod mzscheme
(provide str)
(define str "It works")
)
[/jet/src/dir1]$ cat t.scm
(require "mod.scm")
(printf "~a~n" str)
Compiling:
[/jet/src/dir1]$ mzc --auto-dir -z mod.scm
MzScheme compiler (mzc) version 299.20, Copyright (c) 2004 PLT Scheme, Inc.
[output to "./compiled/mod.zo"]
[/jet/src/dir1]$ mzc -z t.scm
MzScheme compiler (mzc) version 299.20, Copyright (c) 2004 PLT Scheme, Inc.
[output to "t.zo"]
Testing:
[/jet/src/dir1]$ mzscheme -r t.zo
It works
Renaming directory:
[/jet/src/dir1]$ cd ..
[/jet/src]$ mv dir1 dir2
[/jet/src]$ cd dir2
Testing:
[/jet/src/dir2]$ mzscheme -r t.zo
link: broken compiled code (phase 0, defn-phase 0, in #f), no declaration for module: |,/jet/src/dir1/mod| in: str
With mzscheme-207 it works fine.
Is any mzc options required to do this in mzscheme-299?
Thanks,
Sergey