Wrong source line number

In this case:

SET DEFINE OFF;

CREATE OR REPLACE PACKAGE BODY expimp
IS

errors are shown with the wrong source line number.

I’m not following you. What are you seeing and what do you expect? To me it looks OK. Both Toad’s parser error detection and Oracle are reporting error on line 4 for me.