dlclose issue on RedHat 8

From: Rudy Aceves <raceves_at_vengrp.com>
Date: 30 Jul 2003 13:56:46 -0700
Message-ID: <793a3ba6.0307301256.1aa67eac_at_posting.google.com>


Hello,

I currently have a C++ shared library that is linked to the Oracle 8i shared library 'libclntsh.so.8.0' to perform some OCI stuff. My executable uses dlopen/dlclose to open/close my C++ shared library at runtime.

Currently I'm using g++ version 2.96 on RedHat 7.2 with glib 2.2.4-32 and kernel smp-2.4.9-34.

When I distribute the executable and shared library to other RedHat 7.0 - 7.3 systems that have the same exact Oracle 8i client installations, the applicaiton works as expected.

However, when I distribute to a RedHat 8 system that is also using the same
Oracle 8i client installation, the application core dumps when it tries to "dlclose" my C++ shared library.

I have other C++ shared libraries not linked to the Oracle shared library that are opened and closed in the same manner and they all work fine across the different OS versions. Just the one linked to 'libclntsh.so.8.0' is giving me problems.

I'm trying to find a work-around for this issue, w/o having to remove the dlclose call if possible. Has anyone else experienced anything simular to this?

BTW, Everything is linked to "pthread" cause the executable is a multi-threaded app.

Thanks,

  • Rudy.
Received on Wed Jul 30 2003 - 22:56:46 CEST

Original text of this message