Subject Mapping of libary names in UDF calls
Author Bjoern Reimer
Hi,

I'm trying again to get rfunc UDF on working and I fear I don't
understand the UDF things and Helen's book is at home under my
bed....

With the fb-UDF

DECLARE EXTERNAL FUNCTION ASCII_CHAR
INTEGER
RETURNS CSTRING(1) FREE_IT
ENTRY_POINT 'IB_UDF_ascii_char' MODULE_NAME 'ib_udf'

works fine.

In my UDF directory is a libary named ib_udf.so. Ok.


DECLARE EXTERNAL FUNCTION LIBNAME
RETURNS CSTRING(256) FREE_IT
ENTRY_POINT 'fn_libname' MODULE_NAME 'rfunc'

doesn't work.
Ok, I renamed rfunc to rfunc.so

SELECT LIBVERSION() FROM RDB$DATABASE;

results in

Unsuccessful execution caused by a system error that precludes
successful execution of subsequent statements.
Access to UDF library "librfunc.so" is denied by server administrator.

Where did he get this name from?

Ok, I can rename the lib in librfunc.so, but than I'm getting:

Invalid token.
invalid request BLR at offset 63.
function LIBVERSION is not defined.
module name or entrypoint could not be found.


Ok, now the server finds the library. It's another error message
than above, but why?
What's wrong?

Has anybody a working version of rfunc UDF with fb 1.5.1 on Linux?



Björn

--
Björn Reimer -- RRZE