Subject Re: Off Topic: UDF in KyLix to Interbase
Author wade@xwin.net
--- In IBObjects@y..., "Paulo Henrique Albanez" <pha@n...> wrote:
> I have the functions library for InterBase, only that am with a
small problem.
>
> The library call other library, if I don't pass the path complete,
doesn't work.
>
> function ib_util_malloc(l: integer): pointer; cdecl;
external '/opt/interbase/lib/ib_util';
>
> If I compiles with FreePascal, it works without the path
>
> function ib_util_malloc(l: integer): pointer; cdecl;
external 'ib_util';
>
> Do anybody know with solve this problem?
>
>
> PHA
> Nova Odessa / SP - Brazil

There are probably two ways that should work, but honestly I have not
tried the ld.so.conf one but it should in theory work as it does with
normal libraries, the link to /usr/lib does work...you can simply
make a link to it in /usr/lib

ln -s /opt/interbase/lib/ib_util /usr/lib/ib_util

or in theory edit /etc/ld.so.conf and add /opt/interbase/lib to the
list of paths.

The link is acceptable to me as I use a few larger libraries as
apposed to a lot of smaller ones.

One more way should be to add
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/interbase/lib
to either your earlier startup scripts for any version or the script
you are running the SS version of firebird/interbase from


Randal Carpenter