Hi all,

I need to create 2 user defined functions.
lookup end reverse_lookup

These functiouns are included in the udf_example2.cc source file.
I have gcc version 2.96 20000731 (Red Hat Linux 7.0)

and

mysql-3.23.49-pc-linux-gnu-i686 (Binary distribution)

1)step: Compiling the udf_example2.cc file

gcc -shared -I /var/local/mysql/include -o udf.so udf_example2.cc

where

/var/local/mysql/include

is the folder where some mysql header files are included

This works fine.(I did not get any errors on that!!)

2) I have copied udf.so in the /usr/lib, where mysql searches for
so files ( this is the default folder for it, as I understand)

3) restart mysql

4) use mysql db

5) CREATE FUNCTION lookup RETURNS STRING SONAME "udf.so";

6) ERROR and this is bad for me:(
ERROR 1126: Can't open shared library 'udf.so' (errno: 22 udf.so: cannot
open shared object file: Invalid argument)

------------

What am I doing wrong?

Any help is appretiated!!

th

zoli







---------------------------------------------------------------------
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/           (the list archive)

To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php

Reply via email to