Hi All!
        I have created a user defined function "exampleFun.c" and have
complied it to "exampleFunc.so"

code for compiling exampleFunc.c to exampleFunc.so is

gcc -I/usr/local/mysql/include -L/usr/local/mysql/lib/ \
        -c -fpic exampleFunc..c

ld -b -dy -G -lmysqlclient -lc exampleFunc.o -o exampleFunc..so

cp exampleFunc.so /usr/lib
                                             

I have kept the exampleFunc.so in my /usr/lib  and have specified the same
in the PATH.

now while I try to create the function saying
mysql> CREATE FUNCTION EXAMPLE RETURNS REAL SONAME "exampleFunc.so";    

I get the error as
ERROR 1126: Can't open shared library 'PosMax4SubsDll.so' (errno: 0 ld.so.1:
/us
r/local/mysql-max-3.23.51-sun-solaris2.8-sparc/bin/m)



Can anyone please help me in solving it. 

PS. I have installed MySQL database from the binary source. 

Thankx in advance


filter

MySQL, query, sql




        


---------------------------------------------------------------------
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