Type ldd mainapp
It should tell you what mainapp can see.

You probably need to put the directory containing libSequential.so in LD_LIBRARY_PATH. If you're using HPUX-10, it is LIBPATH.