[plt-scheme] Odd difference between standlone program and compiled version

From: Eric Hanchrow (offby1 at blarg.net)
Date: Sun Nov 26 17:09:41 EST 2006

I am not sure this is a bug, but it does seem odd.
This is 360.2 on x86 Linux.

Save this file to "repro.ss":

    (module repro mzscheme
    (require (lib "cards.ss" "games" "cards"))
    (printf "All is well~%")

Run it to ensure that it works:

    $ DISPLAY=:0 mred -qu repro.ss 
    All is well

Now compile it to create a standalone executable, and run that:

    $ mzc --gui-exe repro repro.ss
    mzc version 360.2, Copyright (c) 2004-2006 PLT Scheme Inc.
     [output to "repro"]
    $ DISPLAY=:0 ./repro
    collection-path: collection not found: #<path:games/cards> in any of: ()

     === context ===
    #f::353: loop

Why is the behavior different?

If you're trying to choose between two theories and one gives
you an excuse for being lazy, the other one is probably right.
        -- Paul Graham

Posted on the users mailing list.