List:MySQL ODBC« Previous MessageNext Message »
From:Andreas Almroth Date:March 19 2005 7:17am
Subject:Re: MyODBC Build Failed
View as plain text  
Bob,

lt_* functions are usually provided by the libtool library, and it seems 
to be missing here.
strndup you will have no easy luck with as it is a function that is only 
in GNU libc as an extension to the standard, and thus you will not find 
it in libc provided by Sun.

What is your configure line? Did you use ---with-libtool

I compiled and packaged myODBC 3.51.11 the other day and "fixed" the 
strndup and strnlen issues.
If you want to use it you can find the package at 
http://www.blastwave.org. It should be on most mirrors in a few days.
It is compiled against the unixODBC provided there as well.
 
To solve strndup and strnlen you will have to find a recent copy of the 
C files containing the two functions, put into one file and compile it.
Then in the Makefile in driver and driver_r directories you add 
something like this to LDFLAGS; ../strnfuncs.o
Taken that you put the file in the base directory of MyODBC and you 
called the file strnfuncs.c of course...

/A


Bob Tadlock wrote:

>Solaris x86 version 9
>MyODBC-3.51.11
>unixODBC-2.2.11
>gcc 3.3.2
>
>unixODBC compiled with no errors and installed in /usr/local bin|etc|lib
>
>/bin/bash ../libtool --mode=link gcc  -O3 -DDBUG_OFF -DPORTABLE_GUI
>-I/usr/local/mysql/include/mysql ../driver_r/libmyodbc3_r.la
>-L/usr/local/mysql/lib/mysql -lmysqlclient_r -lz -lposix4 -lcrypt -lgen
>-lsocket -lnsl -lm  -o my_basics  my_basics.o  -L/usr/local/lib -lz
>-lodbcinst
>gcc -O3 -DDBUG_OFF -DPORTABLE_GUI -I/usr/local/mysql/include/mysql -o
>.libs/my_basics my_basics.o  ../driver_r/.libs/libmyodbc3_r.so
>-L/usr/local/mysql/lib/mysql -L/usr/local/lib
>/usr/local/mysql/lib/mysql/.libs/libmysqlclient_r.so -lpthread -lposix4
>-lcrypt -lgen -lsocket -lnsl -lm -lz /usr/local/lib/libodbcinst.so -ldl
>-lthread -R/usr/local/lib -R/opt/sfw/mysql/lib/mysql
>Undefined                       first referenced
> symbol                             in file
>lt_dlinit                           ../driver_r/.libs/libmyodbc3_r.so
>lt_dlopen                           ../driver_r/.libs/libmyodbc3_r.so
>lt_dlsym                            ../driver_r/.libs/libmyodbc3_r.so
>strndup                             ../driver_r/.libs/libmyodbc3_r.so
>lt_dlclose                          ../driver_r/.libs/libmyodbc3_r.so
>ld: fatal: Symbol referencing errors. No output written to .libs/my_basics
>collect2: ld returned 1 exit status
>make[1]: *** [my_basics] Error
>
>
>  
>

Thread
MyODBC Build FailedBob Tadlock19 Mar
  • Re: MyODBC Build FailedAndreas Almroth19 Mar
Re: MyODBC Build FailedBob Tadlock19 Mar