You cannot mix 32 bit and 64 bit code. It looks like ioncube is not a program but a shared library. It then requires to be linked with a 32 bit binary.
On the other hand, a 64 bit Solaris kernel supports running either 32 or 64 bit binaries so what you might do is to make sure you use a 32 bit version of your main application, if available.