I just compiled Perl (with 'use64bitint' and NOT 'use64bitall'), Expat and XML::Parser on Solaris/UltraSPARC, and everything works fine.
If you used the 'use64bitall' setting in Perl, that may have been what caused your problems. Try it again with the 'use64bitint' setting only.