delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/08/10/17:55:16

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
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
Date: Tue, 10 Aug 2004 23:55:40 +0200
From: "Gerrit P. Haase" <gp AT familiehaase DOT de>
Reply-To: "Gerrit @ cygwin" <cygwin AT cygwin DOT com>
Organization: Esse keine toten Tiere
Message-ID: <1643236010.20040810235540@familiehaase.de>
To: "Peter Ekberg" <peda AT axentia DOT se>
CC: cygwin AT cygwin DOT com
Subject: Re: Dynamic loading of cygwin dependent dlls
In-Reply-To: <90459864DAD67D43BDD3D517DEFC2F7D7058@axon.Axentia.local>
References: <90459864DAD67D43BDD3D517DEFC2F7D7058 AT axon DOT Axentia DOT local>
MIME-Version: 1.0
X-IsSubscribed: yes

Hallo Peter,

Am Dienstag, 10. August 2004 um 22:58 schriebst du:

> I wrote:
>> Reid Thompson wrote:
>> > well -- i just redid the entire thing, with the correct spelling and
>> > your original post works
>> > 
>> > $ ./load
>> > pseudo_stub.dll ok
>> > foo.dll ok
>> 
>> That's strange, did my original post first get you error 998 for
>> pseudo_stubs.dll and now, after some juggling, the same thing is ok?

> Ah, now I see it. You have to be careful with your typing.
> pseudo_stubs.dll (with one s in the end) is the name that fails.
> Apparently both pseudo_stub.dll (no s) and psuedo_stubs.dll (bad
> spelling) work. And pseudo_stubss.dll (double s) definitely works, that
> I have tried myself.

You have checked what error 998 actually is?

#define ERROR_NOACCESS 998L

I cannot believe that it depends on the name of a DLL whether it can
be dlopened or not.  There must be another error with your test!

Consider this (with source from your first posting):
$ gcc -shared -o pseudo_stubs.dll foo.c
$ gcc -o load load.c
$ ./load
pseudo_stubs.dll        ok
foo.dll dlopen: Win32 error 126
$ cp pseudo_stubs.dll foo.dll
$ ./load
pseudo_stubs.dll        ok
foo.dll ok


Gerrit
-- 
=^..^=



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