Please see bug #387561. This is clearly not a gnucash bug, but it is indicative of *some* serious problem, clearly involving not gnucash, but libffi and libffi4-dev and g-wrap. Thomas