[Freeswitch-dev] FreeSWITCH mod_osp: undefined symbol OSPPTransactionSetSrcNetworkId**

Di-Shi Sun di-shi at transnexus.com
Thu Aug 12 18:27:24 PDT 2010


Hi Patrick,

I have several questions,
1. Is /usr/lib64 included in the default link search path?
2. Did it report any warning or error message when you compiled mod_osp 
module?
3. Do you install several OSP Toolkit versions?
4. Is there any other libosptk.a under the link search path?
5. How did you build/install OSP Toolkit?

BTW, OSP Toolkit only provides static library. So from the nm output, it 
seems that OSP Toolkit was not linked into mod_osp.so.

Thanks,

Di-Shi Sun.

----- Original Message ----- 
From: "Patrick Laimbock" <patrick at laimbock.com>
To: <di-shi at transnexus.com>
Sent: Friday, August 13, 2010 12:22 AM
Subject: FreeSWITCH mod_osp: undefined symbol 
OSPPTransactionSetSrcNetworkId**


> Dear Mr. Sun,
>
> According to mod_osp.c in the FreeSWITCH sources you are the developer of 
> this module. There is a problem with an undefined symbol in mod_osp with 
> FreeSWITCH git from 8/10:
>
> Platform:   CentOS 5.5 x86_64 (updated)
> FreeSWITCH: git-07b8176 2010-08-10 18-51-06 -0400
> OSPToolkit: 3.6.1
>
> After installing OSPToolkit I enabled mod_osp and built and installed
> FreeSWITCH. When I issue "load mod_osp" I see this error:
>
> 2010-08-11 21:00:29.284157 [CRIT] switch_loadable_module.c:926 Error
> Loading module /opt/freeswitch/mod/mod_osp.so
> **/opt/freeswitch/mod/mod_osp.so: undefined symbol:
> OSPPTransactionSetSrcNetworkId**
>
> I'm out of my league here but I tried to get as much info as possible.
>
> /usr/lib64/osp/libosptk.a has the following symbols:
>
> $ nm /usr/lib64/libosptk.a
> [snip]
> osptransapi.o:
> 00000000000006ed T OSPPTransactionSetSrcNetworkId
> [snip]
>
> Checking mod_osp I see the following:
>
> $ nm /opt/freeswitch/mod/mod_osp.so
> 0000000000209570 d B64CACert
> 0000000000209568 d B64LCert
> 0000000000209560 d B64PKey
>                   U OSPPBase64Decode
>                   U OSPPCleanup
>                   U OSPPInit
>                   U OSPPProviderDelete
>                   U OSPPProviderNew
>                   U OSPPTransactionBuildUsageFromScratch
>                   U OSPPTransactionDelete
>                   U OSPPTransactionGetContext
>                   U OSPPTransactionGetDestProtocol
>                   U OSPPTransactionGetDestinationNetworkId
>                   U OSPPTransactionGetFirstDestination
>                   U OSPPTransactionGetNextDestination
>                   U OSPPTransactionGetNumberPortabilityParameters
>                   U OSPPTransactionGetOperatorName
>                   U OSPPTransactionIsDestOSPEnabled
>                   U OSPPTransactionNew
>                   U OSPPTransactionRecordFailure
>                   U OSPPTransactionReportUsage
>                   U OSPPTransactionRequestAuthorisation
>                   U OSPPTransactionSetCustomInfo
>                   U OSPPTransactionSetDestNetworkId
>                   U OSPPTransactionSetDestinationCount
>                   U OSPPTransactionSetDiversion
>                   U OSPPTransactionSetForwardCodec
>                   U OSPPTransactionSetNetworkIds
>                   U OSPPTransactionSetNumberPortability
>                   U OSPPTransactionSetOctets
>                   U OSPPTransactionSetPackets
>                   U OSPPTransactionSetReverseCodec
>                   U OSPPTransactionSetServiceType
>                   U OSPPTransactionSetSrcNetworkId  <--
> [snip]
>
> According to the nm manpage, the "U" means "undefined" so mod_osp does
> not seem to pick up libosptk.a (during linking?).
>
> Would you perhaps have any suggestions how I can fix this error?
>
> Please let me know if you need more information.
>
> Many thanks in advance!
>
> Kind regards,
> Patrick Laimbock
>
> 




More information about the FreeSWITCH-dev mailing list