Serial declaration issue

I attempted to install two serial interfaces

Where? You need to post all of your code, not just a two line snippet.