delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1999/02/28/15:55:18

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
Sender: cygwin-owner AT sourceware DOT cygnus DOT com
Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com
Sender: fuzzy AT advancel DOT com
Message-Id: <36D9ADFB.D0974693@advancel.com>
Date: Sun, 28 Feb 1999 12:58:35 -0800
From: Stanley Gambarin <stanley AT advancel DOT com>
Organization: Advancel Logic Corp.
X-Mailer: Mozilla 4.07 [en] (X11; I; Linux 2.0.36 i586)
Mime-Version: 1.0
To: cygwin AT sourceware DOT cygnus DOT com
Subject: B20: dlopen() of multiple libraries emits a warning message

Greetings:

a test case:
#include <dlfcn.h>
#include <stdlib.h>
int main()
{
  void *h1, *h2;

  h1=dlopen("console.dll", RTLD_LAZY);
  h2=dlopen("uart.dll", RTLD_LAZY);
  dlclose(h2);
  dlclose(h1);

  return(0);
}

when run, emits a warning message:
WARNING: previous dlopen of U:\tmp\uart.dll wasn't correctly performed

This message is coming from
    winsup/dll_init.cc::DllList::currentDlOpenedLib  function.  Not
being too
familiar with the sources, I am guessing that this function is necessary
for
properly loading a DLL which has other DLLs in its dependency list.
However,
invoking it from dlopen() function call may not be a proper solution.
Hope that
somebody can provide a solution for this problem by the next release.

-- stanley



--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com

- Raw text -


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