Regina GCI Failure [Fedora Core 2]



Greetings,

I'm experiencing a little difficulty in gaining access to 'libc'
functionality via Regina GCI on a Fedora 2 platform, and was wondering
whether there might be a known problem, or I am perhaps missing something
obvious [if more information is needed please let me know].

I'm using the following, quite simple, code to tap into the C Library's
'rand' function:

initRand : procedure
rand.calltype = 'cdecl as function with parameters'
rand.return.type = 'integer32'
rand.return.name = 'return value'

rand.0 = 0

err = rxFuncDefine('rand', 'msvcrt', 'rand', 'rand.')

if err \= 0 then
say "Error registering function 'rand'"

return

This code works a treat on a Win32 platform. The near-same code on a Fedora
2 platform [with a slight change to]:

err = rxFuncDefine('rand', 'libc', 'rand', 'rand.')

fails, returning an 'err' value of 40. An 'ERRORTEXT(err)' call indicates
the problem is an 'Incorrect call to routine'.

I thought the problem would be related to the specification of 'libc' as the
target shared library name, so I:

* Checked that '/usr/lib/libc.so' actually existed :) !

* Ensured the 'LD_LIBRARY_PATH' environment
variable was appropriately set and exported

* Tried several variants on the 'libc' name, including:

'libc5', 'libc6', 'glibc', 'glibc2'

as well as specifying a full path:

'/usr/lib/libc'

and also with the '.so' extension

All attempts to no avail: the same error code is being returned.

Any ideas or suggestions ?

Cheers,

Anthony Borla

P.S.

Not that I think it's relevant / related but I'm experiencing *no* problem
accessing functionality in REXX-specific libraries like 'rexxutils' or
'rxsock'

P.P.S.

I first tried the examples from the GCI webpage ['getrlimit' etc] and the
same problem occurred


.



Relevant Pages

  • Re: Which is the Best cross platform language?
    ... The only thing I can think of is incompatibility with excel ... the gamers follow the games not the platform. ... Something about functionality & consistency over animated ... Not sure if he was a kook, ...
    (comp.programming)
  • seeking insights for potential reconfigurable computing application platforms
    ... Use a cutting edge platform in the genre of what Clive "Max" ... Target a Xilinx FPGA-based platform of some type - from what ... MicroBlaze soft core to implement microprocessor functionality ... any insight, positive or negative, on this point. ...
    (comp.arch.fpga)
  • Re: Boot Hill Web Site
    ... these conversions can be very troublesome. ... > language on that new platform, they might have had a chance. ... > when the users are astonished at how much functionality they have lost, ... > But everyone will tell you that COBOL is dead or will be shortly ...
    (comp.lang.cobol)
  • Re: Re: chr() .Net equivalent
    ... look at the notes from the conversion and the ... A new platform may introduce differences of its own simply due to ... framework. ... If you start dropping Visual Basic functionality in order to simply avoid ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Fedora/RH policies sometimes suck
    ... because the functionality they stripped I ... data in the cell whether it is text or numbers. ... doesn't work with the Fedora version. ... will not install the Fedora version, ...
    (Fedora)