Subject Re: Trouble installing UDF function on Linux
Author dr_bentonquest
--- In firebird-support@yahoogroups.com, Milan Babuskov <milanb@k...>
wrote:
> dr_bentonquest wrote:
> > I'm working with Linux. The 'ib_udf' file is not a dll. My problem is
> > that even when the file is in /opt/interbase/UDF and
> > /opt/interbase/bin the entrypoint can't be found by firebird.
>
> There is no TRIM function in ib_udf. You have ltrim and rtrim, but not
> the trim itself. You can try what Alan suggested and use rFunc library.

The RTRIM function would do the trick for me. Problem is I get the
same error. I am using the declare statement found in the
/opt/interbase/examples/udf.sql file:

DECLARE EXTERNAL FUNCTION trim
CSTRING(256)
RETURNS CHAR (80) FREE_IT
ENTRY_POINT 'fn_trim' MODULE_NAME 'udflib';

Module name is not correct there, I've changed it to 'ib_udf' already.
The entry point could be wrong too but I dont know what the correct
one would be.

Can I see your declare statement for any of your UDFs? That way I
could compare and get a clue.

Thanks in advance,

-Benton