Re: error loading cxx local model in isis: undefined symbol

From: Maurice Leutenegger <maurice.a.leutenegger_at_email.domain.hidden>
Date: Mon, 18 Nov 2013 12:56:32 -0500
Thomas,

I just tried your test example with the most recent versions of isis and 
heasoft, and I get the same error. I ran nm on the local models library 
and I do not see a function name C_test or c_test - I only have _test.

Note that I am using OS X 10.8 - I think you are using linux? But we are 
getting the same error.

John, any idea of what is going wrong? Have the XSPEC developers changed 
the interface to the local models libraries again?

Maurice

isis> require ("xspec");
  Solar Abundance Vector set to angr:  Anders E. & Grevesse N. 
Geochimica et Cosmochimica Acta 53, 197 (1989)
  Cross Section Table set to bcmc:  Balucinska-Church and McCammon, 1998
Loading /Users/mleutene/code/lmod/test/liblocalmodels.dylib
Error loading symbol c_test for model fun
Link error: dlsym(0x7b164520, c_test): symbol not found


 >nm test.o
00000000 T _test

 >nm liblocalmodels.dylib
00001aac s GCC_except_table1
00001b58 s GCC_except_table12
00001ba4 s GCC_except_table6
00001af8 s GCC_except_table9
00001710 T _Localmodels_Init
00001750 T _Localmodels_SafeInit
          U _Tcl_PkgProvide
          U _XSFunctionMap
00001830 t __GLOBAL__I_Localmodels_Init
00000fb0 t __GLOBAL__I__Z28createlocalmodelsFunctionMapv
          U __Unwind_Resume_or_Rethrow
00000ee0 T __Z28createlocalmodelsFunctionMapv
00001084 T __ZN11YellowAlertD0Ev
000010a2 T __ZN11YellowAlertD1Ev
000010bc T __ZN13YellowAlertNSD0Ev
000010ea T __ZN13YellowAlertNSD1Ev
          U __ZN15XSModelFunction19updateComponentListERKSsb
          U __ZN15XSModelFunctionD2Ev
00001050 T __ZN6XSCallIFvPKdiS1_iPdS2_PKcEE5cloneEv
0000101e T __ZN6XSCallIFvPKdiS1_iPdS2_PKcEED0Ev
00001000 T __ZN6XSCallIFvPKdiS1_iPdS2_PKcEED1Ev
          U __ZN8RedAlert13reportAndExitERKSsi
00001114 T __ZN8RedAlertD0Ev
00001132 T __ZN8RedAlertD1Ev
0000104a T 
__ZNK6XSCallIFvPKdiS1_iPdS2_PKcEEclERKSt3mapImPKS7_ImSt8valarrayIdESt4lessImESaISt4pairIKmS9_EEESB_SaISC_ISD_SI_EEERKSt6vectorIdSaIdEERS7_ImSG_SB_SaISC_ISD_SG_EEESW_PP7MixBaseRKSs
          U 
__ZNK6XSCallIFvPKdiS1_iPdS2_PKcEEclERKSt8valarrayIdESA_iRS8_SB_RKSs
          U __ZNKSs7compareERKSs
          U __ZNSaIcEC1Ev
          U __ZNSaIcED1Ev
          U __ZNSsC1EPKcRKSaIcE
          U __ZNSsC1ERKSs
          U __ZNSsD1Ev
00001650 T 
__ZNSt3mapISsP15XSModelFunctionSt4lessISsESaISt4pairIKSsS1_EEEixERS5_
0000114c T 
__ZNSt8_Rb_treeISsSt4pairIKSsP15XSModelFunctionESt10_Select1stIS4_ESt4lessISsESaIS4_EE14_M_create_nodeERKS4_
000011bc T 
__ZNSt8_Rb_treeISsSt4pairIKSsP15XSModelFunctionESt10_Select1stIS4_ESt4lessISsESaIS4_EE16_M_insert_uniqueERKS4_
00001302 T 
__ZNSt8_Rb_treeISsSt4pairIKSsP15XSModelFunctionESt10_Select1stIS4_ESt4lessISsESaIS4_EE16_M_insert_uniqueESt17_Rb_tree_iteratorIS4_ERKS4_
          U __ZNSt8ios_base4InitC1Ev
          U __ZNSt8ios_base4InitD1Ev
          U __ZSt18_Rb_tree_decrementPSt18_Rb_tree_node_base
          U __ZSt18_Rb_tree_incrementPSt18_Rb_tree_node_base
          U 
__ZSt29_Rb_tree_insert_and_rebalancebPSt18_Rb_tree_node_baseS0_RS_
          U __ZSt9terminatev
00002158 b __ZStL8__ioinit
00002150 b __ZStL8__ioinit
00002108 D __ZTI11YellowAlert
00002120 D __ZTI13YellowAlertNS
000020c0 D __ZTI15XSModelFunction
000020e8 D __ZTI6XSCallIFvPKdiS1_iPdS2_PKcEE
00002148 D __ZTI8RedAlert
000018ed S __ZTS11YellowAlert
000018fb S __ZTS13YellowAlertNS
000018b0 S __ZTS15XSModelFunction
000018d0 S __ZTS6XSCallIFvPKdiS1_iPdS2_PKcEE
0000190b S __ZTS8RedAlert
000020f8 D __ZTV11YellowAlert
00002110 D __ZTV13YellowAlertNS
000020a0 D __ZTV15XSModelFunction
000020c8 D __ZTV6XSCallIFvPKdiS1_iPdS2_PKcEE
00002130 D __ZTV8RedAlert
          U __ZTVN10__cxxabiv117__class_type_infoE
          U __ZTVN10__cxxabiv120__si_class_type_infoE
          U __ZdlPv
          U __Znwm
          U ___cxa_atexit
          U ___cxa_begin_catch
          U ___cxa_end_catch
          U ___cxa_pure_virtual
          U ___cxa_rethrow
          U ___gxx_personality_v0
          U ___stack_chk_fail
          U ___stack_chk_guard
00001730 t ___tcf_0
00000f90 t ___tcf_0
00001880 T _test
          U dyld_stub_binder
----
You received this message because you are
subscribed to the isis-users list.
To unsubscribe, send a message to
isis-users-request_at_email.domain.hiddenwith the first line of the message as:
unsubscribe
Received on Mon Nov 18 2013 - 12:56:57 EST

This archive was generated by hypermail 2.3.0 : Fri May 02 2014 - 08:35:47 EDT