environment :
macBook pro
apple sequoia 15.7.3
Apple clang version 17.0.0 (clang-1700.6.3.2)
ooRexx at Rev: 13065 + the fix for bug 2041
the script 'navmath.rex' has a :
::requires "rxmpfr" library
everything works when invoking the script using:
rexx navmath
but when I try :
./navmath.rex
I receive :
[enrico@enrico-mbp rxmpfr]$./navmath.rex
116 - ::requires "rxmpfr" library
Error 98 running /Users/enrico/oorexx_EXTENSIONS/rxmpfr/navmath.rex line 116: Execution error.
Error 98.903: Unable to load library "rxmpfr".
I do not like it, but ...
if I copy my external functions 'DLL's into the installed oorexx lib path everything works,
and You and me really do not want to do that
Enrico
PS ... before You ask
my 'DLL's are in /opt/local/lib
and the variuos environment variables for library search are setup properly
declare -x DYLD_LIBRARY_PATH="/opt/local/lib"
declare -x LD_LIBRARY_PATH="/opt/local/lib"
declare -x LIBRARY_PATH="/opt/local/lib:/usr/local/lib"
Anonymous
FOLLOW ON ...
the behavior is NOT odd ,
I investigated ... it is the normal behavior for apple
did not take too much to fix it by changing
/Users/enrico/oorexx_DEVEL/oorexx-MAC.src/common/platform/unix/SysLibrary.cpp
along the lines of
bool SysLibrary::load(
const char name) / required library name /
/***********/
/ Function: Load a named library, returning success/failure flag /
/************/
{
char nameBuffer[PC_PATH_MAX+PC_NAME_MAX];
}
consider the ticket closed...
thank You
here are the results ...
[enrico@enrico-mbp enigma-machine]$rexx enigma
** trying a generic load ...
enigma Result :
enigma plainText : 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'
enigma ciphrText : 'BJELRQZVJWARXSNBXORSTNCFME'
[enrico@enrico-mbp enigma-machine]$
[enrico@enrico-mbp enigma-machine]$./enigma.rex
* trying a generic load ...
* MUST try a direct load, DYLD/LD are null ...
** REXX_LIBRARY_PATH '/opt/local/lib'
enigma Result :
enigma plainText : 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'
enigma ciphrText : 'BJELRQZVJWARXSNBXORSTNCFME'
[enrico@enrico-mbp enigma-machine]$
as promised here is the same function dealing with multiple libs in te REXX_LIBRARY_PATH