I hope SCO has added the "ldd" command since the last time I worked with it (many years ago). Use that command on the shared library that Perl creates to see what other dynamic libraries it expects to load and where it expects to find them.
You can also check "man ld" and see if the environment variable LD_RUN_PATH is supported and have that set when you compile the module so that it contains a PATH-style list of directories to search for shared libraries when you run the module.
You can also set LD_LIBRARY_PATH (everybody supports that, right?) when you use the module to the same thing.
But I doubt it is actually a failure to find the shared library that is the problem. If it were, you should be getting a different error.
Did you make the function "universal" so that it can be seen from outside the shared library? Can you link non-Perl programs to that shared library and successfully call that routine?
You can also load shared libraries "by hand" inside the *.pm for your module. Or you can use FFI or C::Dynalib to access the shared library without building a module.
-
tye
(but my friends call me "Tye")
|