Regina GCI Failure [Fedora Core 2]
- From: "Anthony Borla" <ajborla@xxxxxxxxxxx>
- Date: Sun, 16 Oct 2005 13:36:09 GMT
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
.
- Follow-Ups:
- Re: Regina GCI Failure [Fedora Core 2]
- From: Florian Große-Coosmann
- Re: Regina GCI Failure [Fedora Core 2]
- Prev by Date: Re: SELFCLOSE
- Next by Date: Regina GCI / w32funcs Win32 'CreateProcess' Example ?
- Previous by thread: SELFCLOSE
- Next by thread: Re: Regina GCI Failure [Fedora Core 2]
- Index(es):
Relevant Pages
|
|