Hello i'm trying to use the SHC scripts encryption tool datsi.fi.upm.es/~frosal/sources/shc.html
when i run "make" the program compiles successfully but it asks me to run the "make test" which issue an error message

...which should tell you that the code was designed for Linux & not coded in a generic POSIX fashion.

Linux != OpenBSD. If you compare the hier(7) manpages between Linux & any of the *BSD family, you will see that there are significant differences. Likewise, while there are some common libraries between the two platforms, there are also differences here too.

The error cited in your OP looks like the effect of compiler differences. You did not specify which version of OpenBSD is being used, but I suspect the gcc version is 3.x. Most Linux distro's I have limited knowledge have moved to 4.x. OpenBSD 4.8 is the first version which uses 4.x as its default. Your other choice is to determine whether gcc 4.x is available in the packages/ports tree of whatever version of OpenBSD you are running & install the appropriate packages. The choice is yours.

Be aware that in general, this site only provides limited porting support. Porting can be very involved, & it requires significant experience. Unfortunately, supporting porting efforts generally requires significant knowledge of the problem domain, & to expect this level of support is not always realistic. However on occasion, regulars find particular problems interesting to explore.

So, take these comments & determine the compiler versions used. If you want to continue porting this application, you should download a snapshot of OpenBSD 4.8-current which may provide you with a compatible compiler similar to what you have on Linux.

Thanks alot for your quick replay.
shc is a very lightweight program all it does is to convert a shell script into a C binary
program that runs and invoke the specified shell then feed it the encrypted commands
from the original script.
the BSD's i tried to compile the program on are all remote server i can access through ssh accounts.
one of them is Openbsd version 4.7 with gcc version 3.3.5 (propolice).
here is a part of the make file of the program i think it's already made to run on
all Unix compatible operating systems not just Linux.

i just thought i would consult some BSD expects who may have came across the
same error message before...

Most of the regular members here do not port applications on a regular basis. However, you should be aware that make(1) in the *BSD world is not the same preached by GNU. For compatibility to the Richard Stallman world, you should ensure you are using gmake: