On Sun, Jan 24, 2010 at 3:12 PM, Rick McGuire <[email protected]> wrote:
> ...
> However,
> that's a different issue from what's causing the test case to fail in
> the first place.
Well, I get stuck in LibraryPackage::getPackageTable. Some method
resolution that I don't understand.
When I run a simple Rexx program:
say 'sqrt:' rxcalcsqrt(4)
::requires 'rxmath' LIBRARY
I see this output:
[miesf...@osprey API]$ rexx qTest.rex
LibraryPackage::getPackagTable() lib.reset succeeded for name=rexxutil
SysLibrary::load() length name=8, name=rexxutil
dlopen librexxutil.so libraryHandle=0x1e5b070
LibraryPackage::getPackagTable() lib.load succeeded for name=rexxutil
LibraryPackage::getPackagTable() lib.reset succeeded for name=rxmath
SysLibrary::load() length name=6, name=rxmath
dlopen librxmath.so libraryHandle=0x1e67be0
LibraryPackage::getPackagTable() lib.load succeeded for name=rxmath
When I run rexxinstance directly I see this output:
[miesf...@osprey API]$ ./rexxinstance INSTANCE -LIB rxmath
"/work.ooRexx/ooTest/4.0.0/ooRexx/API/oo/tests/callMath.rex"
LibraryPackage::getPackagTable() lib.reset succeeded for name=rexxutil
LibraryPackage::getPackagTable() lib.load succeeded for name=rexxutil
LibraryPackage::getPackagTable() lib.reset succeeded for name=rxmath
LibraryPackage::getPackagTable() lib.load failed for name=rxmath
So when I run rexxinstance, SysLibrary::load() does not get invoked.
But something must get invoked, because rexxutil gets loaded.
Maybe some C++ thing I don't understand? Is there some other method
in the interpreter that the call to lib.load would resolve to?
lib.reset();
printf("LibraryPackage::getPackagTable() lib.reset succeeded for
name=%s\n", libraryName->getStringData());
if (!lib.load(libraryName->getStringData()))
{
printf("LibraryPackage::getPackagTable() lib.load failed for
name=%s\n", libraryName->getStringData());
Looks like I'm going to have to give up for today. ;-( Have a dinner
appointment.
--
Mark Miesfeld
------------------------------------------------------------------------------
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev
_______________________________________________
Oorexx-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/oorexx-devel