Why are you removing Enrico's RPATH changes? They seem like a good idea and
I NEVER advocated against those. My discussion was totally about the
appropriate location for rexx.img.

Rick

On Thu, Jan 10, 2019 at 8:28 AM Rony G. Flatscher <rony.flatsc...@wu.ac.at>
wrote:

> On 10.01.2019 12:56, Rick McGuire wrote:
>
> I have tested exactly the situation on my Linux system, and everything
> works fine. But I don't have your setup, so there's probably something
> different.
>
> I suggest adding a printf() to the SystemInterpreter::loadImage() method
> (the second one with the longer signature) and print out the names it is
> attempting to load from. One concern I do have whether the
> getExecutableLocation() might need to resolve links to obtain the real
> library location. I'm not sure what name dladdr() is returning. The
> printfs() will show where it is looking and might give a good answer to
> this question.
>
> OK, added printf's in FileSystem.cpp to the imageLoad() methods there.
>
> However, in the process I noticed that although I had issued a "svn revert
> *" to the ooRexx "main/trunk" the changes I had added yesterday were still
> present. After reverting them back individually and making sure that all
> files were in sync with r11665 (svn stat), "rexx.img" got found!
>
> Sorry for the false alarm about "../lib/rexx.img" not being found!
>
> However the library not found problem still persists if running without
> Enrico's RPATH settings, here a sample MacOS session:
>
> wu114215:bin rony$ *pwd*
> /Users/rony/Applications/mac64test20190110-1410/bin
>
> wu114215:bin rony$ *./rexx*
> dyld: Library not loaded: @rpath/librexx.5.0.0.dylib
>   Referenced from: /Users/rony/Applications/mac64test20190110-1410/bin/./rexx
>   Reason: image not found
> Abort trap: 6
>
> wu114215:bin rony$ *DYLD_LIBRARY_PATH=../lib ./rexx*
>
> Syntax is "rexx filename [arguments]"
> or        "rexx -e program_string [arguments]"
> or        "rexx -v".
>
> wu114215:bin rony$ *DYLD_LIBRARY_PATH=../lib ./rexx -e "say '--->' 
> directory()"*
> ---> /Users/rony/Applications/mac64test20190110-1410/bin
>
> wu114215:bin rony$ *./rexx -e "say '--->' directory()"*
> dyld: Library not loaded: @rpath/librexx.5.0.0.dylib
>   Referenced from: /Users/rony/Applications/mac64test20190110-1410/bin/./rexx
>   Reason: image not found
> Abort trap: 6
>
>
> ---rony
> _______________________________________________
> Oorexx-devel mailing list
> Oorexx-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/oorexx-devel
>
_______________________________________________
Oorexx-devel mailing list
Oorexx-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/oorexx-devel

Reply via email to