Hello,
(Rick please read the note at the end)
yug k wrote:
> Hi All,
>
> I've been trying to compile the source code of ooRexx 4.0.0 on AIX 5.3
OK what exact compiler version do you use?
The code is very sensitive to the C compiler.
The gcc compiler does not work. If you are using a IBM compiler then you
need
the versions documented in the unix-like-build.txt. Older versions do
not work,
they ether can not compile the code or do produce non working binaries.
Please read also the notes about the build tools. It might be possible
that the
source tar ball from SouceForge do not wok on AIX because the build
tools (for
generating configure, ...) were to old. If you like I can provide you a
working
source tar ball for AIX.
> and first got the error ..
>
> "; unexpected on line 394 of Token.hpp"
>
> I changed the line ..
>
> RexxToken(int, int, RexxString *, SourceLocation &)*;;*
>
> to ..
>
> RexxToken(int, int, RexxString *, SourceLocation &)*;*
>
>
> Then I continued with *"make"* and got the following error . Basically
> it's unable to run "lt-rexximage"due to these errors :
>
> cp ./interpreter/RexxClasses/*.orx .
> cp ./interpreter/platform/unix/*.orx .
> ./rexximage
> exec(): 0509-036 Cannot load program
> /ffadata/softwares/oorexxsource/4.0.0/trunk/.libs/lt-rexximage because
> of the following errors:
> rtld: 0712-001 Symbol DEBUG_TOGGLE__10RexxSource was referenced
> from module
> /ffadata/softwares/oorexxsource/4.0.0/trunk/.libs/librexx.so(), but a
> runtime definition
> of the symbol was not found.
> rtld: 0712-001 Symbol DEBUG_ON__10RexxSource was referenced
> from module
> /ffadata/softwares/oorexxsource/4.0.0/trunk/.libs/librexx.so(), but a
> runtime definition
> of the symbol was not found.
> rtld: 0712-001 Symbol TRACE_SETTING_MASK__10RexxSource was referenced
> from module
> /ffadata/softwares/oorexxsource/4.0.0/trunk/.libs/librexx.so(), but a
> runtime definition
> of the symbol was not found.
> rtld: 0712-001 Symbol DEFAULT_TRACE_SETTING__10RexxSource was referenced
> from module
> /ffadata/softwares/oorexxsource/4.0.0/trunk/.libs/librexx.so(), but a
> runtime definition
> of the symbol was not found.
> rtld: 0712-001 Symbol TRACE_NORMAL__10RexxSource was referenced
> from module
> /ffadata/softwares/oorexxsource/4.0.0/trunk/.libs/librexx.so(), but a
> runtime definition
> of the symbol was not found.
> rtld: 0712-001 Symbol DEBUG_NOTRACE__10RexxSource was referenced
> from module
> /ffadata/softwares/oorexxsource/4.0.0/trunk/.libs/librexx.so(), but a
> runtime definition
> of the symbol was not found.
> rtld: 0712-001 Symbol TRACE_IGNORE__10RexxSource was referenced
> from module
> /ffadata/softwares/oorexxsource/4.0.0/trunk/.libs/librexx.so(), but a
> runtime definition
> of the symbol was not found.
> rtld: 0712-001 Symbol DEBUG_IGNORE__10RexxSource was referenced
> from module
> /ffadata/softwares/oorexxsource/4.0.0/trunk/.libs/librexx.so(), but a
> runtime definition
> of the symbol was not found.
> rtld: 0712-001 Symbol DEBUG_OFF__10RexxSource was referenced
> from module
> /ffadata/softwares/oorexxsource/4.0.0/trunk/.libs/librexx.so(), but a
> runtime definition
> of the symbol was not found.
> rtld: 0712-001 Symbol TRACE_ALL__10RexxSource was referenced
> from module
> /ffadata/softwares/oorexxsource/4.0.0/trunk/.libs/librexx.so(), but a
> runtime definition
> of the symbol was not found.
> rtld: 0712-001 Symbol TRACE_COMMANDS__10RexxSource was referenced
> from module
> /ffadata/softwares/oorexxsource/4.0.0/trunk/.libs/librexx.so(), but a
> runtime definition
> of the symbol was not found.
> rtld: 0712-001 Symbol TRACE_LABELS__10RexxSource was referenced
> from module
> /ffadata/softwares/oorexxsource/4.0.0/trunk/.libs/librexx.so(), but a
> runtime definition
> of the symbol was not found.
> rtld: 0712-001 Symbol TRACE_ERRORS__10RexxSource was referenced
> from module
> /ffadata/softwares/oorexxsource/4.0.0/trunk/.libs/librexx.so(), but a
> runtime definition
> of the symbol was not found.
> rtld: 0712-001 Symbol TRACE_FAILURES__10RexxSource was referenced
> from module
> /ffadata/softwares/oorexxsource/4.0.0/trunk/.libs/librexx.so(), but a
> runtime definition
> of the symbol was not found.
> rtld: 0712-001 Symbol TRACE_OFF__10RexxSource was referenced
> from module
> /ffadata/softwares/oorexxsource/4.0.0/trunk/.libs/librexx.so(), but a
> runtime definition
> of the symbol was not found.
> rtld: 0712-001 Symbol TRACE_RESULTS__10RexxSource was referenced
> from module
> /ffadata/softwares/oorexxsource/4.0.0/trunk/.libs/librexx.so(), but a
> runtime definition
> of the symbol was not found.
> rtld: 0712-001 Symbol TRACE_INTERMEDIATES__10RexxSource was referenced
> from module
> /ffadata/softwares/oorexxsource/4.0.0/trunk/.libs/librexx.so(), but a
> runtime definition
> of the symbol was not found.
> make: *** [rexx.img] Error 255
>
> Can anyone please suggest me what I can do to fix the problem ..
>
The best think would be a simple example which triggers the problem.
Neither my own programs nor
the ooRexx test suite triggers this problem on my systems.
Currently I am thinking of a simple way to find out if there is really a
memory corruption.
Rick and I think that the problem is here:
/**
* Dispatch the newly created reader thread to do it's work.
*/
void APIServerThread::dispatch()
{
// just dispatch this back to the api server for handling
server->processMessages(connection);
// ----------> memory coruption here ?? <-------------------------
server->sessionTerminated(this);
}
If we add a signature in the APIServer object constructor like marker =
"ooRexxOBJ" and then in
the destructor set marker = "destroyed" we could check if either:
1. The object is _probably_ valid
2. The object is already destroyed
3. The pointer points to an invalid memory region
> The version of my xlC is ..*
> xlC.rte 10.1.0.0 COMMITTED XL C/C++ Runtime*
>
>
> regards,
>
> Yugandhar
Bye
Rainer
------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
Oorexx-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/oorexx-devel