RP/TUX 8.1 - Duplicate symbol names AIT_CFB, AIT_CBC, AIT_ECB in libengine.a (Doc ID 774296.1)

Last updated on NOVEMBER 04, 2016

Applies to:

Oracle Tuxedo / Tuxedo / 8.1
Information in this document applies to any platform

Goal

DESCRIPTION:
Customer is  migrating from TUX 6.5 to TUX 8.1 and their application links the RSA library directly. TUX 6.5 was 
no problem(because it has no RSA lib).  However, in TUX 7.1 or later, libengine has RSA library so they are
encountering linking errors:

The build error outputs as follows:

buildserver -v -f SvcSwitchEnc_func.c -f SvcSwitchEnc_sstub.c -f
SvcSwitchDec_func.c -f SvcSwitchDec
_sstub.c -f /export/home/etjpap81/tuxap/apfx_src/common/EtJpTuxapi.c -o
SvcSwitchCryptSvr -s SvcSwitchEnc -s SvcSwitchDec -f "-L/export/home/etjpap81/tuxap/lib -lcmnetjp
-liecmz010 -lEtJpSwitchCrypt"
cc -w  -mt -I/export/home/etjpap81/tuxap/inc -I/opt/bea/tuxedo8.1/include
-I$TUXDIR/include -o SvcSwitchCryptSvr BS-2ca4.c  -L${TUXDIR}/lib SvcSwitchEnc_func.c
SvcSwitchEnc_sstub.c SvcSwitchDec_func.c
 SvcSwitchDec_sstub.c
/export/home/etjpap81/tuxap/apfx_src/common/EtJpTuxapi.c
-L/export/home/etjpap
81/tuxap/lib -lcmnetjp -liecmz010 -lEtJpSwitchCrypt  -ltux -lbuft   -lfml
-lfml32 -lengine -R/usr/lib/lwp -lpthread -lposix4 -lsocket -lnsl
BS-2ca4.c:
SvcSwitchEnc_func.c:
SvcSwitchEnc_sstub.c:
SvcSwitchDec_func.c:
SvcSwitchDec_sstub.c:
/export/home/etjpap81/tuxap/apfx_src/common/EtJpTuxapi.c:
ld: warning: symbol `AIT_CBC' has differing sizes:
        (file /export/home/etjpap81/tuxap/lib/libEtJpSwitchCrypt.so
value=0xc; file /opt/bea/tuxedo8.1/lib/libengine.a(libengine.so.71) value=0x4);
        /export/home/etjpap81/tuxap/lib/libEtJpSwitchCrypt.so definition taken
ld: warning: symbol `AIT_CFB' has differing sizes:
        (file /export/home/etjpap81/tuxap/lib/libEtJpSwitchCrypt.so
value=0xc; file /opt/bea/tuxedo8.1/lib/libengine.a(libengine.so.71) value=0x4);
        /export/home/etjpap81/tuxap/lib/libEtJpSwitchCrypt.so definition taken
ld: warning: symbol `AIT_ECB' has differing sizes:
        (file /export/home/etjpap81/tuxap/lib/libEtJpSwitchCrypt.so
value=0xc; file /opt/bea/tuxedo8.1/lib/libengine.a(libengine.so.71) value=0x4);
        /export/home/etjpap81/tuxap/lib/libEtJpSwitchCrypt.so definition taken

The duplicate symbols are AIT_CBC,AIT_CFB and AIT_ECB. and their application fails to work... (due to encryption
error). They have confirmed that they use only the 3 symbols listed above.

A search of the the strings listed above show that the symbols are used in libengine.a:

[lcsol19]/nfs/tier3/Tuxedo/r81/lib-> strings *.a | grep AIT_CBC | more
AIT_CBCAddInfo
AIT_CBC
AIT_CBC_INTER_LEAVED
AIT_CBC
AIT_CBC_INTER_LEAVED
AIT_CBCAddInfo
[lcsol19]/nfs/tier3/Tuxedo/r81/lib->

[lcsol19]/nfs/tier3/Tuxedo/r81/lib-> strings *.a | grep AIT_CFB
AIT_CFBAddInfo
AIT_CFB
AIT_CFB_PIPELINED
AIT_CFB_PIPELINED
AIT_CFB
AIT_CFBAddInfo

[lcsol19]/nfs/tier3/Tuxedo/r81/lib-> strings *.a | grep AIT_ECB
AIT_ECB
AIT_ECBAddInfo
AIT_ECB
AIT_ECBAddInfo
[lcsol19]/nfs/tier3/Tuxedo/r81/lib-> 

CONFIGURATION:
Product:  Tuxedo 8.1
Operating System:  Solaris 2.8

Solution

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms