From: Jonathan W. <co...@co...> - 2003-11-06 11:11:19
|
On Sat, Nov 01, 2003 at 04:30:30AM +0200, Dmitry Katemirov wrote: > Hello team, could you advise? > > I'm compiling the library on SPARC Solaris 8 with gcc 3.3 and mysql 4.0.15 > (64-bit build). These are my configuration options: > > ./configure CFLAGS=-m64 CXXFLAGS=-m64 --with-mysql='/usr/local' > > Compilation fails with the following error: > > ../../libtool: .: > /usr/local/lib/gcc-lib/sparc-sun-solaris2.8/3.3/../../../sparcv9/libstdc++.l > a: cannot execute binary file > libtool: link: cannot find name of link library for > `/usr/local/lib/gcc-lib/sparc-sun-solaris2.8/3.3/../../../sparcv9/libstdc++. > la' > make: *** [libdatetime.la] Error 1 I'm guessing as to the problem here, but it looks like a cross-compilation error. Is libstdc++ compiled 64bit? Does it need to be to link to 64bit mysql libraries? > Could you tell what's wrong? libstdc++.la exists at specified location. > > BTW note that I had to fix mysqlcppapi_internal.h by removing mysql/ prefix > from #include <mysql/mysql.h> Ah, this bit I can help with :-) This depends on how MySQL was installed. Most installation layouts put the mysql headers in ${prefix}/include/mysql/ so if ${prefix}/include is in your include path then <mysql/mysql.h> will find the header. Hope that helps, jon -- "It is absurd to divide people into good and bad. People are either charming or tedious." - Oscar Wilde |