That kind of lossage usually happens when something you didn't want is getting linked into ld.so for some reason. Look at the link map and figure out what leads to bringing in suspicious objects.