unix/linux raising errors with type declaration