Subject | How to use ib_util_malloc in UDF for FB 2.5 on Ubuntu |
---|---|
Author | Petr Zeman |
Post date | 2012-12-04T23:59:18Z |
Hi,
I used in my program for UDF function ib_util_malloc for allocation
memory. One of these is for example utoday(). When I use it in query I
get error message 'undefined symbol: ib_util_malloc '
SQL> select first 1 utoday() from bool;
/opt/firebird/bin/isql: symbol lookup error:
/usr/lib/firebird/2.5/UDF/udf_gios: undefined symbol: ib_util_malloc
I'm trying to find on web any information to resolve this problem but
unsuccessfully.
I join some info about server:
----------------
Distributor ID: Ubuntu
Description: Ubuntu 12.04.1 LTS
Release: 12.04
Codename: precise
----------------
gsec version LI-V2.5.1.26351 Firebird 2.5
----------------
/etc/ld.so.conf.d/i686-linux-gnu.conf
contains
/lib/i386-linux-gnu
/usr/lib/i386-linux-gnu
----------------
finding library"
find / -name libib_util.so
/usr/lib/i386-linux-gnu/libib_util.so
----------------
ldconfig -p | grep libib_util.so
libib_util.so (libc6) => /usr/lib/i386-linux-gnu/libib_util.so
----------------
Please, can I help me to resolve problem with correct allocation memory
in UDF functions.
Thanks
I used in my program for UDF function ib_util_malloc for allocation
memory. One of these is for example utoday(). When I use it in query I
get error message 'undefined symbol: ib_util_malloc '
SQL> select first 1 utoday() from bool;
/opt/firebird/bin/isql: symbol lookup error:
/usr/lib/firebird/2.5/UDF/udf_gios: undefined symbol: ib_util_malloc
I'm trying to find on web any information to resolve this problem but
unsuccessfully.
I join some info about server:
----------------
Distributor ID: Ubuntu
Description: Ubuntu 12.04.1 LTS
Release: 12.04
Codename: precise
----------------
gsec version LI-V2.5.1.26351 Firebird 2.5
----------------
/etc/ld.so.conf.d/i686-linux-gnu.conf
contains
/lib/i386-linux-gnu
/usr/lib/i386-linux-gnu
----------------
finding library"
find / -name libib_util.so
/usr/lib/i386-linux-gnu/libib_util.so
----------------
ldconfig -p | grep libib_util.so
libib_util.so (libc6) => /usr/lib/i386-linux-gnu/libib_util.so
----------------
Please, can I help me to resolve problem with correct allocation memory
in UDF functions.
Thanks