I'm tracing the reason why Lazarus barfs up under NetBSD. I traced it to the gtk_set_locale call at gtkobject.inc:62 I'm now suspecting something to be wrong either with cprt (shared lib initialisation) or with gtk itself. The comments somewhat suggests that this is the gtk initialisation?