This is the mail archive of the
cygwin
mailing list for the Cygwin project.
R: [1.7] does LD_PRELOAD support more than 1 dll ?
- From: Marco Atzeri <marco_atzeri at yahoo dot it>
- To: cygwin at cygwin dot com
- Date: Fri, 29 May 2009 09:34:36 +0000 (GMT)
- Subject: R: [1.7] does LD_PRELOAD support more than 1 dll ?
--- Ven 29/5/09, Marco Atzeri ha scritto:
> Da: Marco Atzeri
> Oggetto: [1.7] does LD_PRELOAD support more than 1 dll ?
> A: cygwin@cygwin.com
> Data: Venerdì 29 maggio 2009, 10:10
>
> Hi All,
> I was trying to understand why LD_PRELOAD does not work
> for octave, that have 3 dlls specified on LD_PRELOAD
> and I discovered that it seems to handle only
> 1 dll and not more.
> If I specify 2 or more dlls, LD_PRELOAD stop to work
>
> $uname -a
> CYGWIN_NT-5.1 ITQMOZCAS2NB007 1.7.0(0.210/5/3) 2009-05-15
> 17:15 i686 Cygwin
>
> as test case I used the fltk-demos sudoku,
> and chosen 2 of the dll's
>
> $ cygcheck sudoku
> [snip]
> ? C:\cygwin2\bin\cygjpeg-62.dll
> ? C:\cygwin2\bin\cygpng12.dll
> [snip]
>
> copied them in a tmp directory
>
> mkdir /tmp/prova
> cp cygjpeg-62.dll cygpng12.dll /tmp/prova
>
>
> the outcome is:
> $ LD_PRELOAD="/tmp/prova/cygjpeg-62.dll
> /tmp/prova/cygpng12.dll" sudoku
> ? ? ? 3 [main] bash 12924
> C:\cygwin2\bin\bash.exe: *** fatal error - error while
> loading shared libraries: /tmp/prova/cygjpeg-62.dll
> /tmp/prova/cygpng12.dll: cannot open shared object file: No
> such file or directory
> Hangup
>
> while if I specify only 1 dll
> $ LD_PRELOAD="/tmp/prova/cygjpeg-62.dll" sudoku
>
> it works.
>
> Is it a bug, feature or a BLODA issue ?
>
> Thanks
> Marco
Answering myself.
Must use ":" as separator
LD_PRELOAD="/tmp/prova/cygjpeg-62.dll:/tmp/prova/cygpng12.dll" sudoku
is working.
It seems that cygwin does not accept the space as separator in
LD_PRELOAD as other systems
Regards
Marco
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/