public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: Charles Wilson <cygwin@cwilson.fastmail.fm>
To: cygwin@cygwin.com
Subject: libltdl + dlopen/LoadLibrary [Was: Re: gcc 3.3.1-3, loading .la files from gcj-compiled apps]
Date: Sun, 02 Nov 2003 20:16:00 -0000	[thread overview]
Message-ID: <3FA56584.3010706@cwilson.fastmail.fm> (raw)
In-Reply-To: <20031102194409.GB15320@redhat.com>

Christopher Faylor wrote:

> On Sun, Nov 02, 2003 at 12:20:47PM -0700, Marcus G. Daniels wrote:
> 
>>Would it be possible to add a -D_WIN32 to the libjava/libltdl Makefile 
>>for Cygwin?  Then the LoadLibrary support will get compiled-in, and 
>>dynamic libraries can be loaded into GCJ apps.
> 
> 
> No.  If there is dynamic linking to be done it should work through
> dlopen and pals.  Defining _WIN32 is not the way to accomplish this.
> 

Hmmm...  I've been having problems compiling cvs-m4 which HEAVILY uses 
the libltdl library-loading functionality.  I wonder if it could be 
related to this:

 From ltdl.c:
#if __CYGWIN__
   {
     char wpath[MAX_PATH];
     cygwin_conv_to_full_win32_path(searchname, wpath);
     module = LoadLibrary(wpath);
   }
#else
   module = LoadLibrary (searchname);
#endif
   LT_DLFREE (searchname);

It appears that current libtool does in fact use LoadLibrary and not 
dlopen.  This worked fine in the past (perhaps pre-1.5.0?) but appears 
to not work as well anymore.

Should the module-loading functionality in libtoool for cygwin be 
reworked to use dlopen instead?

--
Chuck



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

  reply	other threads:[~2003-11-02 20:16 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-11-02 19:20 gcc 3.3.1-3, loading .la files from gcj-compiled apps Marcus G. Daniels
2003-11-02 19:44 ` Christopher Faylor
2003-11-02 20:16   ` Charles Wilson [this message]
2003-11-02 20:21     ` libltdl + dlopen/LoadLibrary [Was: Re: gcc 3.3.1-3, loading .la files from gcj-compiled apps] Christopher Faylor
2003-11-07 20:40 ` gcc 3.3.1-3, loading .la files from gcj-compiled apps Tom Tromey
2003-11-07 20:50   ` Christopher Faylor
2003-11-07 20:54   ` Robert Collins
2003-11-07 21:40   ` Marcus G. Daniels
2003-11-08  1:09     ` Charles Wilson
2003-11-08  1:20       ` Robert Collins
2003-11-08  1:30         ` Charles Wilson
2003-11-08  1:35           ` Robert Collins
2003-11-08  4:14           ` Marcus G. Daniels
2003-11-08  9:24           ` Tom Tromey
2003-11-08 21:19             ` Charles Wilson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3FA56584.3010706@cwilson.fastmail.fm \
    --to=cygwin@cwilson.fastmail.fm \
    --cc=cygwin@cygwin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).