Subject: B20: dlopen() of multiple libraries emits a warning message
From: Stanley Gambarin <[email-masked]>
To: [email-masked]
Date: Sun, 28 Feb 1999 12:58:35 -0800

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 [email-masked]