How did you get the ports tree? It is very important to match the version of the ports tree to the version of the operating system installed. Attempting to use the ports tree for -current with OpenBSD-release is considered to be a mismatch of versions. Weird errors can result. More information on the symptoms of mismatching versions can be found in Section 15.4.1 of the FAQ.

It would be highly worth your time to study Section 15.3 which discusses how one should use the ports tree to successfully build applications.

You are welcome to post more specific questions, but you should study these FAQ sections first for context.

Lastly, you would benefit from studying the following thread which discusses what information should be included in a post asking for technical help: