Thursday, February 2, 2006, 4:21:38 AM, Nicolas Cannasse wrote:

>> to avoid
>> 
>> (cd src; LD_LIBRARY_PATH=../bin: NEKOPATH=../boot:../bin
>> ../bin/neko nekoml -v neko/Main.nml nekoml/Main.nml)
>> Uncaught exception - load.c(167) : Module not found : nekoml

> You shouldn't need any change since NEKOPATH is referencing ../boot
> You might need to add some traces in vm/load.c which is doing the file
> resolution in "neko_select_file" (the path is created from NEKOPATH in
> "init_path").

I added this printf() in neko_select_file()...

                p = buffer_to_string(b);
printf("try: %s %d\n", val_string(p), stat(val_string(p),&s));
                if( stat(val_string(p),&s) == 0 )
                        return p;

=>

(cd src; ../bin/neko nekoml -v neko/Main.nml nekoml/Main.nml)
try: c:\Dev\neko\neko\bin/nekoml.n -1
Uncaught exception - load.c(171) : Module not found : nekoml

Note that it never tried the boot directory for some reason.

I changed the Makefile

NEKO_EXEC = NEKOPATH=../bin:../boot ../bin/neko

and got

(cd src; NEKOPATH=../bin:../boot ../bin/neko nekoml -v neko/Main.nml 
nekoml/Main.nml)
try: ..\bin;..\boot/nekoml.n -1
Uncaught exception - load.c(171) : Module not found : nekoml

I guess something is wrong with init_path.

e

-- 
Doug Currie
Londonderry, NH


-- 
Neko : One VM to run them all
(http://nekovm.org)

Reply via email to