Tim Wuyts writes: > 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
The above symbol is from MySQL's C API, i.e. libmysqlclient library. Link your library with -shared -rdynamic and see what you get. -- 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