This is the mail archive of the
mailing list for the GCC project.
hp shared object name mangle error
- To: egcs-bugs at cygnus dot com
- Subject: hp shared object name mangle error
- From: Coy Toavs <coy at cyrix dot com>
- Date: Mon, 29 Jun 1998 16:05:47 -0600
- Organization: Cyrix
I am running HPUX 10.20 and I got the std release of egcs
I built it to be shared, as I'm building dynamically loading
code that is c++ and used stl.
I built something that loads another thing that is a dynamic
library derived from c++ code compiled by egcs's c++ compiler g++.
I use the HP shl_load and shl_findsym to load the library and execute
a c entry point. In the code of the shared library that I am executing,
are references back to utility routines in the
... while running the main program which dynamically loads another....
NEXUS | Running 'test0 '
/usr/lib/dld.sl: Unresolved symbol: createContext__7ContextPCcUiUiUiUiUiUiUiUi (code) from /home/toavs/work/nexus/regress/regression
IOT trap (core dumped)
... now looking at strings output and seaching for the symbol... I get one that is slightly different...
ra 8: strings nexus |grep createContext
this one has a trailing :F813
and the one in the shared library does not....
it shows just createContext__7ContextPCcUiUiUiUiUiUiUiUi
however, both compilations use the same header file!
I'm also using the same flags to the compiler ... -fPIC -shared -Wall -g
what's going on here?
Coy Toavs Email: email@example.com
Verification Engineer Direct: (303)774-5175
Cyrix Corp. Main: (303)651-5800
A National Semiconductor Company 1820 Lefthand Circle
http://www.cyrix.com Longmont, CO 80501
Beware of Programmers who carry screwdrivers.
-- Leonard Brandwein