I'm compiling the latest version of a CORBA ORB called MICO on a Cray
X1. It makes heavy use of templates and namespaces.
Up until the link step, the C++ source code compiled flawlessly. But,
when it tried to link, I got the attached warnings and then an error.
Any ideas why the linker wouldn't see the objects in the library? They
look like pretty long names,
so maybe there is some type of symbol length or mangling issue going
on? The mangled names appear in the ".ti" files as well.
Anybody have similar problems with linking similar C++ code on the Cray?
I'm not an expert C++ programmer, but I have a lot of tenacity and
energy. :-)
So if you have any ideas I can try out no matter how obscure, please
let me know.
CC -I. -I../idl -I../include -O2 -L. -L../idl -L../orb main.o -L.
-lidl -lmicoir2.3.11 -lmico2.3.11 -ldl -lelf -lm -o ird
ld-400 ld: WARNING
Unresolved text symbol
"release__34Obj Var__tm__20_Q2_ 5CORBA9StringDe fSFPZ1Z_v" -- First
referenced in "../idl/libidl.a:db.o".
ld-400 ld: WARNING
Unresolved text symbol
"release__36Obj Var__tm__22_Q2_ 5CORBA10Wstring DefSFPZ1Z_v" -- First
referenced in "../idl/libidl.a:db.o".
ld-400 ld: WARNING
Unresolved text symbol
"release__37Obj Var__tm__23_Q2_ 5CORBA11Sequenc eDefSFPZ1Z_v" -- First
referenced in "../idl/libidl.a:db.o".
ld-400 ld: WARNING
Unresolved text symbol
"release__33Obj Var__tm__19_Q2_ 5CORBA8FixedDef SFPZ1Z_v" -- First
referenced in "../idl/libidl.a:db.o".
ld-400 ld: WARNING
Unresolved text symbol
"release__33Obj Var__tm__19_Q2_ 5CORBA8ArrayDef SFPZ1Z_v" -- First
referenced in "../idl/libidl.a:db.o".
ld-400 ld: WARNING
Unresolved text symbol
"release__38Obj Var__tm__24_Q2_ 5CORBA12Primiti veDefSFPZ1Z_v" -- First
referenced in "../idl/libidl.a:db.o".
ld-400 ld: WARNING
....
Unresolved text symbol
"release__59Obj Var__tm__45_Q2_ 14PortableServe r23RequestProce ssingPolicySFPZ 1Z_v"
-- First referenced in
"../orb/libmico2.3.11.a :poa_impl.o".
ld-400 ld: WARNING
Unresolved text symbol
"release__50Obj Var__tm__36_Q2_ 14PortableServe r14ServantManag erSFPZ1Z_v"
-- First referenced in
"../orb/libmico2.3.11.a :poa_impl.o".
ld-400 ld: WARNING
Unresolved text symbol
"release__52Obj Var__tm__38_Q2_ 14PortableServe r16AdapterActiv atorSFPZ1Z_v"
-- First referenced in
"../orb/libmico2.3.11.a :poa_impl.o".
ld-401 ld: ERROR
Unresolved text symbol(s). Loading terminated.
X1. It makes heavy use of templates and namespaces.
Up until the link step, the C++ source code compiled flawlessly. But,
when it tried to link, I got the attached warnings and then an error.
Any ideas why the linker wouldn't see the objects in the library? They
look like pretty long names,
so maybe there is some type of symbol length or mangling issue going
on? The mangled names appear in the ".ti" files as well.
Anybody have similar problems with linking similar C++ code on the Cray?
I'm not an expert C++ programmer, but I have a lot of tenacity and
energy. :-)
So if you have any ideas I can try out no matter how obscure, please
let me know.
CC -I. -I../idl -I../include -O2 -L. -L../idl -L../orb main.o -L.
-lidl -lmicoir2.3.11 -lmico2.3.11 -ldl -lelf -lm -o ird
ld-400 ld: WARNING
Unresolved text symbol
"release__34Obj Var__tm__20_Q2_ 5CORBA9StringDe fSFPZ1Z_v" -- First
referenced in "../idl/libidl.a:db.o".
ld-400 ld: WARNING
Unresolved text symbol
"release__36Obj Var__tm__22_Q2_ 5CORBA10Wstring DefSFPZ1Z_v" -- First
referenced in "../idl/libidl.a:db.o".
ld-400 ld: WARNING
Unresolved text symbol
"release__37Obj Var__tm__23_Q2_ 5CORBA11Sequenc eDefSFPZ1Z_v" -- First
referenced in "../idl/libidl.a:db.o".
ld-400 ld: WARNING
Unresolved text symbol
"release__33Obj Var__tm__19_Q2_ 5CORBA8FixedDef SFPZ1Z_v" -- First
referenced in "../idl/libidl.a:db.o".
ld-400 ld: WARNING
Unresolved text symbol
"release__33Obj Var__tm__19_Q2_ 5CORBA8ArrayDef SFPZ1Z_v" -- First
referenced in "../idl/libidl.a:db.o".
ld-400 ld: WARNING
Unresolved text symbol
"release__38Obj Var__tm__24_Q2_ 5CORBA12Primiti veDefSFPZ1Z_v" -- First
referenced in "../idl/libidl.a:db.o".
ld-400 ld: WARNING
....
Unresolved text symbol
"release__59Obj Var__tm__45_Q2_ 14PortableServe r23RequestProce ssingPolicySFPZ 1Z_v"
-- First referenced in
"../orb/libmico2.3.11.a :poa_impl.o".
ld-400 ld: WARNING
Unresolved text symbol
"release__50Obj Var__tm__36_Q2_ 14PortableServe r14ServantManag erSFPZ1Z_v"
-- First referenced in
"../orb/libmico2.3.11.a :poa_impl.o".
ld-400 ld: WARNING
Unresolved text symbol
"release__52Obj Var__tm__38_Q2_ 14PortableServe r16AdapterActiv atorSFPZ1Z_v"
-- First referenced in
"../orb/libmico2.3.11.a :poa_impl.o".
ld-401 ld: ERROR
Unresolved text symbol(s). Loading terminated.
Comment