Subject: C++ Shared Library Problem (with example)
To: None <port-macppc@netbsd.org>
From: Jay Painter <jpaint@real.com>
List: port-macppc
Date: 08/04/1999 16:17:58
I've created a small example program that shows the problem with calling
dlopen() on a C++ shared library. The tarball is at:
ftp://serv.net/pub/jay/cpp_dlopen-1.tar.gz
The example is a executeable, main.cpp, and two plugins, c-plugin.c and
cpp-plugin.cpp. When main.cpp dlopen()s the c-plugin, it works. When it
then opens cpp-plugin, it returns the error:
dlopen() failed: ./cpp-plugin.so: Unsupported relocation type 10in non-PLT
relocations
and fails to exit the application. Because the C plugin worked, it's not
a PIC problem with libgcc.a.
---
Jay Painter <jpaint@real.com>
Build Master RealNetworks, Inc.