www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2009/05/30/01:20:42

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
Date: Sat, 30 May 2009 01:20:09 -0400
From: Christopher Faylor <cgf-use-the-mailinglist-please AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: R: [1.7] does LD_PRELOAD support more than 1 dll ?
Message-ID: <20090530052009.GA4332@ednor.casa.cgf.cx>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <984241 DOT 31046 DOT qm AT web25002 DOT mail DOT ukl DOT yahoo DOT com>
MIME-Version: 1.0
In-Reply-To: <984241.31046.qm@web25002.mail.ukl.yahoo.com>
User-Agent: Mutt/1.5.19 (2009-01-05)
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT 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

On Sat, May 30, 2009 at 04:55:12AM +0000, Marco Atzeri wrote:
>
>--- Sab 30/5/09, Dave Korn  ha scritto:
>
>> Da: Dave Korn 
>> Oggetto: Re: R: [1.7] does LD_PRELOAD support more than 1 dll ?
>> A: cygwin AT cygwin DOT com
>> Data: Sabato 30 maggio 2009, 03:07
>> Marco Atzeri wrote:
>> 
>> > May I suggest a small note in the documentation ?
>> > Just to help the next one to not fall in the same
>> problem. 
>> > :-)
>> 
>> ? PTC and all that... if you want a hand with the
>> English grammar/spelling,
>> ask me offlist.
>> 
>> > so it seems that the LD_PRELOAD is not working well 
>> > in case of fork. 
>> 
>> ? Did you export it?? That might make a
>> difference if the shell is involved.
>> 
>> ? ? cheers,
>> ? ? ? DaveK
>> 
>Hi Dave,
>also exporting all the 3 variables in the script
>does make no difference
>
>export PATH="$builddir/src:$builddir/liboctave:$builddir/libcruft:$PATH"
>export LD_PRELOAD="$liboctinterp:$liboctave:$libcruft"
>export LD_LIBRARY_PATH="$builddir/src:$builddir/liboctave:$builddir/libcruft:$LD_LIBRARY_PATH"
>OCTAVE_SITE_INITFILE="$top_srcdir/scripts/startup/main-rcfile" \
>  exec $driver "$builddir/src/octave" --no-init-path --path="$LOADPATH" --image-path="$IMAGEPATH" --doc-cache-file="$DOCFILE" --info-file="$INFOFILE" "$@"
>
>
>      5 [main] sh 3964 C:\cygwin2\bin\sh.exe: *** fatal error - error while loading shared libraries: /pub/cygports/octave/octave-3.2.0-rc4_build/src/cygoctinterp.dll: cannot open shared object file: No such process

 From the source:

      if (!LoadLibraryW (lib.get_wide_win32_path (libname)))
        {
          __seterrno ();
          api_fatal ("error while loading shared libraries: %s: "
                     "cannot open shared object file: %s", p,
                     strerror (get_errno ()));
        }

 "No such process" == ESRCH == PROC_NOT_FOUND

cgf

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