Operating System - HP-UX
1753797 Members
8036 Online
108799 Solutions
New Discussion юеВ

Facing problem with M3UA library

 
astra
Frequent Advisor

Facing problem with M3UA library

Hi All,

I am facing problem with OAMM3UA API.
This is my sample code:
//Test.c
#include
#include
#include
#include "ss7errors.h"
#include "m3uaOamDefs.h"
#include "ss7_if.h"

int main(){

int ret_val;
int m3uaCnxId=0;
ret_val=SS7_ifclose(m3uaCnxId);
printf("%d",ret_val);
return 0;
}

When I am trying to make binary for this code with the help of OAMM3UA shared library Then I am facing these errors:
==========
For making Binary of these sample code.

bash-2.05b# /opt/aCC/bin/aCC -g -AA -z -v +z -I. -L/opt/OC/lib/hpux64/libM3UAOamAPIWBB.so test.c -o tested

These error I am getting:
bash-2.05b# /opt/aCC/bin/aCC -g -AA -z -v +z -I. -L/opt/OC/lib/hpux64/libM3UAOamAPIWBB.so test.c -o tested
/opt/aCC/lbin/ecom -architecture 32 -ia64abi all -inst compiletime -sysdir /usr/include -test namespaces -koenig_lookup on -ansi_for_scope on -inline_power 1 -link_type dynamic -fpeval float -fpevaldec _Decimal32 -tls_dyn on -target_os 11.23 -I. --sys_include /opt/aCC/include_std --sys_include /opt/aCC/include_std/iostream_compat --sys_include /usr/include --sys_include /usr -D_HP_IA64ABI -D_BIND_LIBCALLS -D_Math_errhandling=MATH_ERREXCEPT -D__hpux -D__unix -D__ia64=1 -D__ia64__=1 -D_BIG_ENDIAN=1 -D__STDCPP__ -D_HP_NAMESPACE_STD -D_ILP32 -D__cplusplus=199711L -D_INCLUDE__STDC_A1_SOURCE -D__HP_aCC=62000 -D_HP_INSTANTIATE_T_IN_LIB -D_INLINE_ASM -D_FLT_EVAL_METHOD=0 -D_DEC_EVAL_METHOD=0 -debug debugG1 -ucode hdriver=optlevel%1% -plusolistoption -Ol06all! -plusolistoption -Ol13moderate! -plusooption -Oq01,al,ag,cn,sz,ic,vo,Mf,Po,es,rs,Rf,Pr,sp,in,cl,om,vc,pi,fa,pe,rr,pa,pv,nf,cp,lx,Pg,ug,lu,lb,uj,dn,sg,pt,kt,em,np,ar,rp,dl,fs,bp,wp,pc,mp,lr,cx,cr,pi,so,Rc,fa,ft,fe,ap,st,lc,Bl,sr,Qs,do,ib,pl,sd,ll,rl,dl,Lt,ol,fl,lm,ts,rd,dp,If! test.c
LPATH=/usr/lib/hpux32:/opt/langtools/lib/hpux32
/usr/ccs/bin/ld -z -o tested -u___exit -umain -L/opt/aCC/lib/hpux32 -L /opt/OC/lib/hpux64/libM3UAOamAPIWBB.so test.o -lstd_v2 -lCsup -lm -lunwind -lCsup -lc -ldl >/var/tmp/AAAa01604 2>&1
/opt/aCC/bin/c++filt &2
ld: Unsatisfied symbol "SS7_ifclose" in file test.o
1 errors.
removing /var/tmp/AAAa01604


I also checked libM3UAOamAPIWBB.so file and I got that SS7_ifclose() function is present in that shared library.

Expert, Could yoy tell me why this problem is comming and what would be the resoultion of this problem.

TIA
-Amit




5 REPLIES 5
Elmar P. Kolkman
Honored Contributor

Re: Facing problem with M3UA library

You are missing the library containing the routine SS7_ifclose in the commandline somewhere. It should be something like '-l ss7'
Every problem has at least one solution. Only some solutions are harder to find.
astra
Frequent Advisor

Re: Facing problem with M3UA library

Hi,
Thanks for your quick reply.
but my exact question is for SS7_ifclose()api which library file would be include. As I mentioned in my mail I used libM3UAWBB.so library but I can not able to link that library . For verify that which shared file is using this library i checked by using nm command in /opt/oc/lib folder but i did not get the definition of this function.

have you have any idea which of the so file I should used.

Regards,
Amit
Elmar P. Kolkman
Honored Contributor

Re: Facing problem with M3UA library

Normaly you have to link with a .a library which will load during runtime the .so library.
Every problem has at least one solution. Only some solutions are harder to find.
Shinji Teragaito_1
Respected Contributor

Re: Facing problem with M3UA library

Hi,

First of all, I don't know about OAMM3UA.

Looking at your link line, you are using 64-bit library without -DD64
option. I'm sure /opt/OC/lib/hpux64/libM3UAOamAPIWBB.so is 64-bit, not 32-bit.

Does the folloging works ?

% /opt/aCC/bin/aCC +DD64 -g -AA -z -v +z -I. \
-L/opt/OC/lib/hpux64 -lM3UAOamAPIWBB test.c -o tested

Shinji
astra
Frequent Advisor

Re: Facing problem with M3UA library

Hi All,

Thanks for all your support.
Finally I resloved that issue.

Regards,
Amit