From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail2-relais-roc.national.inria.fr (mail2-relais-roc.national.inria.fr [192.134.164.83]) by yquem.inria.fr (Postfix) with ESMTP id 60C38BC37 for ; Wed, 27 Jan 2010 18:06:57 +0100 (CET) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: At8BAAUCYEvRVdzeimdsb2JhbACTUodGPQEBAQoJDAcRBa4yCoE4hSqINwEBAwWENASLDg X-IronPort-AV: E=Sophos;i="4.49,355,1262559600"; d="scan'208";a="42304025" Received: from mail-fx0-f222.google.com ([209.85.220.222]) by mail2-smtp-roc.national.inria.fr with ESMTP; 27 Jan 2010 18:06:57 +0100 Received: by fxm22 with SMTP id 22so6216189fxm.22 for ; Wed, 27 Jan 2010 09:06:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:reply-to :user-agent:mime-version:to:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=8pvJ95va8PrBEEZnQX+30DRiB6qHHKXuGsR23fAzkok=; b=YsHRNGZzLPHtZ5ZtMmciDm9aRVCjWYmWqK5q4KspvPLVXOQdfDmCYWejHD05iMC/rR 3ZsivwvWlqxR0CTDmHijCUriOexTaJDNvtyLqSokxcWL5PNWXVbedezDMqQwcBqWL1Ea fuZ9XIScOwOp1JSRA5aLjvzMLPe6eD7E8ZEao= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:reply-to:user-agent:mime-version:to:subject :references:in-reply-to:content-type:content-transfer-encoding; b=RYwohzY2Y4MDqDwppaZ4LhI/gRUVriQdhBCX0Gnsi0RpJwsJMRQWgSENBnUr/e+aRu VFdpgPeBJSGI0NfwEX2Vf5XHgaBS25cRBMwvaD2aSLiuIHIOn1QL2zGQtU8en5pErNLa OQSqfs9d2wK3ugaR+RHurjM+2GrKgMgB58juI= Received: by 10.87.51.13 with SMTP id d13mr9047215fgk.11.1264612016985; Wed, 27 Jan 2010 09:06:56 -0800 (PST) Received: from ?172.17.0.15? (papillon.metalscan.fr [212.73.210.234]) by mx.google.com with ESMTPS id e3sm16732606fga.6.2010.01.27.09.06.56 (version=SSLv3 cipher=RC4-MD5); Wed, 27 Jan 2010 09:06:56 -0800 (PST) Message-ID: <4B6072AF.90401@gmail.com> Date: Wed, 27 Jan 2010 18:06:55 +0100 From: Matthieu Dubuget Reply-To: matthieu.dubuget@gmail.com User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.8pre) Gecko/20100124 Shredder/3.0.2pre MIME-Version: 1.0 To: caml-list@inria.fr Subject: Re: [Caml-list] dynamic link library path under mingw References: <4B604610.607@gmail.com> <4B60670C.6090609@inria.fr> In-Reply-To: <4B60670C.6090609@inria.fr> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: quoted-printable X-Spam: no; 0.00; matthieu:01 dubuget:01 matthieu:01 dubuget:01 mingw:01 run-time:01 byte:01 bytecode:01 cygwin:01 byte:01 cygwin:01 ocamlmgw:01 lib:01 stublibs:01 dllunix:01 From: Xavier Leroy >> >> Try setting the OCAMLRUNPARAMS environment variable to the value "v=3D= 256". >> The run-time system will then print additional debug messages >> concerning DLL searching and loading. >> >> - Xavier Leroy OCAMLRUNPARAM without S! Thanks for the tip. > $ OCAMLRUNPARAM=3D"v=3D256" ./tests.byte > Opening bytecode executable C:\cygwin\home\matt\m2m\m2m-ml\tests\tests.= byte > Searching C:/cygwin/home/matt/ocamlmgw/lib/stublibs\dllunix.dll > Loading shared library C:/cygwin/home/matt/ocamlmgw/lib/stublibs\dlluni= x.dll > Dynamic symbol at 10009000 (size =3D 205) > [0] 100011F8: FlexDLLiniter@12 > [1] 100068C0: WSACleanup@0 > [2] 100068B8: WSAEventSelect@12 > . > . > . > Searching C:/cygwin/home/matt/ocamlmgw/lib/stublibs\dllm2mEeproms.dll > Searching C:/cygwin/home/matt/ocamlmgw/lib/site-lib/stublibs\dllm2mEepr= oms.dll > Searching C:/cygwin/home/matt/ocamlmgw/lib\dllm2mEeproms.dll > dllm2mEeproms.dll not found in search path > Loading shared library dllm2mEeproms.dll > Fatal error: cannot load shared library dllm2mEeproms > Reason: Le module sp?cifi? est introuvable. OK. only the paths stored in ld.conf are tried. Testing -I. > $ OCAMLRUNPARAM=3D"v=3D256" ocamlrun -I ../libeeproms ./tests.byte > Opening bytecode executable C:\cygwin\home\matt\ocamlmgw\bin\ocamlrun.e= xe > Not a bytecode executable > Opening bytecode executable C:\cygwin\home\matt\m2m\m2m-ml\tests\tests.= byte > Searching ../libeeproms\dllunix.dll > Searching C:/cygwin/home/matt/ocamlmgw/lib/stublibs\dllunix.dll > Loading shared library C:/cygwin/home/matt/ocamlmgw/lib/stublibs\dlluni= x.dll > Dynamic symbol at 10009000 (size =3D 205) > [0] 100011F8: FlexDLLiniter@12 > [1] 100068C0: WSACleanup@0 > [2] 100068B8: WSAEventSelect@12 > [3] 100068B0: WSAGetLastError@0 > . > . > . > [203] 10005879: worker_push > [204] 10005438: worker_wait@4 > Searching ../libeeproms\ > Loading shared library ../libeeproms\dllm2mEeproms.dll > Fatal error: cannot load shared library dllm2mEeproms > Reason: Le module sp=E9cifi=E9 est introuvable. This is better: was found, but can't be loaded? Maybe because it depends on another library? depends.exe allow to check that needs . > [ ] DLLM2MEEPROMS.DLL > [ ] KERNEL32.DLL > [ ] NTDLL.DLL > [ ] MSVCRT.DLL > [ ^ ] KERNEL32.DLL > [F^ ] NTDLL.DLL > [ ^ ] NTDLL.DLL > [ ] EPROMDLL.DLL > [ ^ ] KERNEL32.DLL > [F^ ] NTDLL.DLL > I have the feeling that dllm2mEeproms.dll is loaded explicitely, but that the load of EpromDll.dll is left to the operating system? The following works: If dllm2mEeproms.dll and EpromDll.dll are both in ../libeeproms: > PATH=3D"../libeeproms:$PATH" OCAMLRUNPARAM=3D"v=3D256" ocamlrun -I ../l= ibeeproms ./tests.byte If I move EpromDll.dll in ../libeeproms/toto: > PATH=3D"../libeeproms/toto:$PATH" ocamlrun -I "../libeeproms" tests.byt= e Two separated problems, then: - how to store a search path into tests.byte? - is it possible to have EpromDll.dll loaded, even if not in a $PATH=20 directory? Salutations