Near "uvm_sequence_item": syntax error, unexpected IDENTIFIER

In reply to saritr:
Typically you `include files into a package instead of putting the file on the command line. Which file defines the package that defines paknx_transaction?

You may want to read SystemVerilog Coding Guidelines: Package import versus `include - Verification Horizons