Casting the OREF_NULL to ProtectedObject is not the correct solution.
The correct change should be

if ((RexxObject *)result == OREF_NUILL)

Please submit a patch for this once you've determined all of the
places where this problem exists.

Rick

On Fri, Oct 3, 2008 at 4:15 AM, Rainer Tammer <[EMAIL PROTECTED]> wrote:
> Hello,
> I am trying to do the first ooRexx 4.0 build on AIX. Unfortunately I am
> getting an error very early.
>
> * The bootstrap runs without a problem.
> * Configure runs without a problem.
> * Compile -> problem
>
> "./interpreter/classes/ArrayClass.cpp", line 2421.16: 1540-0219 (S) The
> call to "operator==" has no best match.
>
> ->  code
> ArrayClass.cpp 2421.16
>    if (result == OREF_NULL)
>    {
> The matching declaration of OREF_NULL is not found.
>
> In RexxCore.h:
>
> #define OREF_NULL NULL                 /* definition of a NULL REXX
> object  */
>
> So with a cast this should solved the problem...
>
> if (result == (ProtectedObject)OREF_NULL)
>
> The same is true for ObjectClass.cpp line 191 and 1443.
>
> Unfortunatley IBM XLC/C++ 9.0 crashes with an internal error on the
> ObjectClass.cpp:
>
>  xlC_r -DHAVE_CONFIG_H -I. -DORX_VER=4 -DORX_REL=0 -DORX_MOD=0
> -DORX_FIX=0 -DORX_SYS_STR=\"AIX\" -DORX_CATDIR=\"/opt/ooRexx/
> bin\" -DORX_SHARED_LIBRARY_EXT=\".so\" -I./lib -I./api
> -I./api/platform/unix -I./common -I./common/platform/unix -I./interpr
> eter -I./interpreter/behaviour -I./interpreter/execution
> -I./interpreter/memory -I./interpreter/package -I./interpreter/conc
> urrency -I./interpreter/expression -I./interpreter/instructions
> -I./interpreter/classes -I./interpreter/classes/support -I./
> interpreter/runtime -I./interpreter/parser -I./interpreter/messages
> -I./interpreter/streamLibrary -I./interpreter/platform/c
> ommon -I./interpreter/platform/unix -I -g -g -+ -qchars=unsigned
> -qnodigraph -DNOOPT -DPTHREAD_KERNEL -D_POSIX_THREAD -D_REE
> NTRANT -D_GNU_SOURCE -DOPSYS_AIX43 -DAIX -DOPSYS_AIX -c -M
> ./interpreter/classes/ObjectClass.cpp  -DPIC -o .libs/librexx_la-
> ObjectClass.o
> 1540-5202 (W) Missing value for option "I".
> xlC_r: 1501-224 (S) fatal error in /usr/vacpp/exe/xlCentry: signal 11
> received
> make: 1254-004 The error code from the last command is 1.
>
> One problem is obviously the specification of "-I" as parameter. This is
> not OK.
> But without this the compiler crashes with the following error:
>
> xlC_r: 1501-230 (S) Internal compiler error; please contact your Service
> Representative
>
> I will open a call with IBM.
>
> Bye
>  Rainer
>
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
> Build the coolest Linux based applications with Moblin SDK & win great prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________
> Oorexx-devel mailing list
> Oorexx-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/oorexx-devel
>

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Oorexx-devel mailing list
Oorexx-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/oorexx-devel

Reply via email to