tricky: Getting Sybase ASE 12.5.4 to run on Linux PowerPC 64bit

For the past few days, we’ve been struggling with getting Sybase’s ASE DBMS to start on our new Linux PowerPC (a virtual machine running on top of AIX). We were able to install the software with no problems. We weren’t able to get past the __gxx_personality_v0 error:

symbol lookup error: /opt/ibmcmp/lib64/ undefined symbol: __gxx_personality_v0

The error is a linking issue with IBM’s Visual Age runtime (a c/c++ runtime). I was able to confirm with Sybase that ASE will NOT run with Visual Age 8.x or 9.x and that it requires the 7.0 runtime. I downloaded the 7.0 runtime from IBM’s website but still received the same error.

ASE’s linking looked okay however:

[sybase@sybase ASE-12_5]$ ldd -v bin/dataserver => /sybase/ASE-12_5/lib/ (0x0000008000002000) => /lib64/tls/ (0x0000008000647000) => /lib64/tls/ (0x0000008081560000) => /lib64/ (0x0000008000674000) => /lib64/ (0x0000008081510000) => /opt/ibmcmp/lib64/ (0x00000080006a4000) => /lib64/ (0x00000080006b7000) => /lib64/tls/ (0x00000080006d3000) => /lib/ (0x00000080006ff000) => /lib64/tls/ (0x00000080812f0000)
/lib64/ (0x00000080812b0000) => /lib64/ (0x0000008000711000)

I worked with Sybase & IBM to track down the cause but it was IBM’s Brian Shen that was able to identify the culprit. We need to preload the library:

export LD_PRELOAD=/usr/lib64/

Once we did that, we verified that the library was being picked up:

[sybase@sybase install]$ ldd $SYBASE/$SYBASE_ASE/bin/dataserver
/usr/lib64/ (0x0000008000002000) => /sybase/ASE-12_5/lib/ (0x0000008000146000) => /lib64/tls/ (0x000000800078c000) => /lib64/tls/ (0x0000008081560000) => /lib64/ (0x00000080ef740000) => /lib64/ (0x0000008081510000) => /opt/ibmcmp/lib64/ (0x00000080007ba000) => /lib64/ (0x00000080ef6a0000) => /lib64/tls/ (0x00000080007cd000) => /lib/ (0x00000080007fa000) => /lib64/tls/ (0x00000080812f0000) => /lib64/ (0x000000800080b000)
/lib64/ (0x00000080812b0000) => /lib64/ (0x00000080ef6c0000)

If you receive the following error, you can safely ignore it:

ERROR: object ‘/usr/lib64/’ from LD_PRELOAD cannot be preloaded: ignored

Don’t forget to set up your environment to include the IBM Visual Age runtime:

export LD_LIBRARY_PATH=/opt/ibmcmp/lib64:${LD_LIBRARY_PATH}
export PATH=$PATH:/opt/ibmcmp/lib64

Share Button

2 thoughts on “tricky: Getting Sybase ASE 12.5.4 to run on Linux PowerPC 64bit

Leave a Reply

Your email address will not be published. Required fields are marked *