www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2009/05/29/04:10:30

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-2.2 required=5.0 tests=AWL,BAYES_00
X-Spam-Check-By: sourceware.org
Message-ID: <972649.45266.qm@web25004.mail.ukl.yahoo.com>
Date: Fri, 29 May 2009 08:10:10 +0000 (GMT)
From: Marco Atzeri <marco_atzeri AT yahoo DOT it>
Subject: [1.7] does LD_PRELOAD support more than 1 dll ?
To: cygwin AT cygwin DOT com
MIME-Version: 1.0
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

Hi All,
I was trying to understand why LD_PRELOAD does not work
for octave, that have 3 dlls specified on LD_PRELOAD=20
and I discovered that it seems to handle only=20
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=3D"/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/cygpng=
12.dll: cannot open shared object file: No such file or directory
Hangup

while if I specify only 1 dll
$ LD_PRELOAD=3D"/tmp/prova/cygjpeg-62.dll" sudoku

it works.

Is it a bug, feature or a BLODA issue ?

Thanks
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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019