Hello,

I tried ldd on the .so file:
no output! this is very strange.
I tried to compile this on several other machines, but ldd never gives any
output.
If i replace gcc with c++, ldd does show me the shared libraries, but none
are missing.
If i try to use the .so file generated with c++ I get the same error.
for the sake of clarity, here it is again:
mysql_create_function: error: dlopen of udf_example.so failed, error: 0
(ld.so.1: /usr/local/mysql/libexec/mysqld: fatal: relocation error: file
/usr/lib/udf_example.so: symbol default_charset_info: referenced symbol not
found)

I must be overlooking something. Where is default-charset_info defined
anyway? Is it part of mysql or is it some general library?

I exported LD_LIBRARY_PATH=/usr/local/lib:/usr/local/mysql/lib/mysql before
running safe_mysqld.

Any insights are welcome...

Tim



> -----Original Message-----
> From: Sinisa Milivojevic [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, December 18, 2001 17:03
> To: [EMAIL PROTECTED]
> Cc: [EMAIL PROTECTED]
> Subject: Re: create function: fails with error 1126
>
>
> Tim Wuyts writes:
> > All,
> >
> > I'm trying to use the UDF functionality, but I keep getting the
> same error
> > when I issue the CREATE FUNCTION command.
> > This is the error:
> >
> > mysql> CREATE FUNCTION myfunc_int RETURNS INTEGER SONAME
> "udf_example.so";
> > ERROR 1126: Can't open shared library 'udf_example.so' (errno:
> 0 ld.so.1:
> > /usr/local/mysql/libexec/mysqld: fatal: relocation erro)
> >
>
> [skip]
>
> > udf_example.so exists in /usr/lib
> >
> >
> > I've seen a few posts on the net with a similar description of
> the problem,
> > but never a solution :-(
> >
> > does anyone have a clue how to resolve this issue?
> >
> >
> > Thanks,
> > Tim
> >
> >
> > Tim Wuyts
> > Software Engineer
> > EUnet Systems
> > KPN Belgium
>
> Hi!
>
> Probably unresolved symbol from some library.
>
> Run ldd on shared lib and see what is missing. Most probably
> libmysqlclient.so...
>
> --
> Regards,
>    __  ___     ___ ____  __
>   /  |/  /_ __/ __/ __ \/ /    Mr. Sinisa Milivojevic <[EMAIL PROTECTED]>
>  / /|_/ / // /\ \/ /_/ / /__   MySQL AB, Fulltime Developer
> /_/  /_/\_, /___/\___\_\___/   Larnaca, Cyprus
>        <___/   www.mysql.com
>


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