<div>Hello there...</div><div><br></div><div>I got this error in the configure script on 2.5: </div><div><br></div><div># ./configure --prefix=/opt/libzdb-2.5 --with-mysql=/opt/mysql/bin/mysql_config --without-postgresql --without-sqlite --enable-protected --enable-optimized</div>
<div>checking for a BSD-compatible install... /usr/bin/ginstall -c</div><div>checking whether build environment is sane... yes</div><div>checking for a thread-safe mkdir -p... config/install-sh -c -d</div><div>checking for gawk... gawk</div>
<div>checking whether make sets $(MAKE)... yes</div><div>checking for gcc... gcc</div><div>checking for C compiler default output file name... a.out</div><div>checking whether the C compiler works... yes</div><div>checking whether we are cross compiling... no</div>
<div>checking for suffix of executables...</div><div>checking for suffix of object files... o</div><div>checking whether we are using the GNU C compiler... yes</div><div>checking whether gcc accepts -g... yes</div><div>checking for gcc option to accept ISO C89... none needed</div>
<div>checking for style of include used by make... GNU</div><div>checking dependency style of gcc... none</div><div>checking how to run the C preprocessor... gcc -E</div><div>checking for grep that handles long lines and -e... /usr/bin/ggrep</div>
<div>checking for egrep... /usr/bin/ggrep -E</div><div>checking whether gcc needs -traditional... no</div><div>checking for re2c... no</div><div>checking for flex... /usr/bin/flex</div><div>checking build system type... i386-pc-solaris2.11</div>
<div>checking host system type... i386-pc-solaris2.11</div><div>checking for a sed that does not truncate output... /usr/bin/gsed</div><div>checking for ld used by gcc... /usr/ccs/bin/ld</div><div>checking if the linker (/usr/ccs/bin/ld) is GNU ld... no</div>
<div>checking for /usr/ccs/bin/ld option to reload object files... -r</div><div>checking for BSD-compatible nm... /usr/bin/nm -p</div><div>checking whether ln -s works... yes</div><div>checking how to recognize dependent libraries... pass_all</div>
<div>checking for ANSI C header files... yes</div><div>checking for sys/types.h... yes</div><div>checking for sys/stat.h... yes</div><div>checking for stdlib.h... yes</div><div>checking for string.h... yes</div><div>checking for memory.h... yes</div>
<div>checking for strings.h... yes</div><div>checking for inttypes.h... yes</div><div>checking for stdint.h... yes</div><div>checking for unistd.h... yes</div><div>checking dlfcn.h usability... yes</div><div>checking dlfcn.h presence... yes</div>
<div>checking for dlfcn.h... yes</div><div>checking for g++... g++</div><div>checking whether we are using the GNU C++ compiler... yes</div><div>checking whether g++ accepts -g... yes</div><div>checking dependency style of g++... none</div>
<div>checking how to run the C++ preprocessor... g++ -E</div><div>checking for g77... g77</div><div>checking whether we are using the GNU Fortran 77 compiler... yes</div><div>checking whether g77 accepts -g... yes</div><div>
checking the maximum length of command line arguments... 786240</div><div>checking command to parse /usr/bin/nm -p output from gcc object... ok</div><div>checking for objdir... .libs</div><div>checking for ar... ar</div><div>
checking for ranlib... ranlib</div><div>checking for strip... strip</div><div>checking if gcc supports -fno-rtti -fno-exceptions... no</div><div>checking for gcc option to produce PIC... -fPIC</div><div>checking if gcc PIC flag -fPIC works... yes</div>
<div>checking if gcc static flag -static works... no</div><div>checking if gcc supports -c -o file.o... yes</div><div>checking whether the gcc linker (/usr/ccs/bin/ld) supports shared libraries... yes</div><div>checking whether -lc should be explicitly linked in... yes</div>
<div>checking dynamic linker characteristics... solaris2.11 ld.so</div><div>checking how to hardcode library paths into programs... immediate</div><div>checking whether stripping libraries is possible... no</div><div>checking if libtool supports shared libraries... yes</div>
<div>checking whether to build shared libraries... yes</div><div>checking whether to build static libraries... yes</div><div>configure: creating libtool</div><div>appending configuration tag "CXX" to libtool</div>
<div>checking for ld used by g++... /usr/ccs/bin/ld</div><div>checking if the linker (/usr/ccs/bin/ld) is GNU ld... no</div><div>checking whether the g++ linker (/usr/ccs/bin/ld) supports shared libraries... yes</div><div>
checking for g++ option to produce PIC... -fPIC</div><div>checking if g++ PIC flag -fPIC works... yes</div><div>checking if g++ static flag -static works... no</div><div>checking if g++ supports -c -o file.o... yes</div><div>
checking whether the g++ linker (/usr/ccs/bin/ld) supports shared libraries... yes</div><div>checking dynamic linker characteristics... solaris2.11 ld.so</div><div>checking how to hardcode library paths into programs... immediate</div>
<div>appending configuration tag "F77" to libtool</div><div>checking if libtool supports shared libraries... yes</div><div>checking whether to build shared libraries... yes</div><div>checking whether to build static libraries... yes</div>
<div>checking for g77 option to produce PIC... -fPIC</div><div>checking if g77 PIC flag -fPIC works... yes</div><div>checking if g77 static flag -static works... no</div><div>checking if g77 supports -c -o file.o... yes</div>
<div>checking whether the g77 linker (/usr/ccs/bin/ld) supports shared libraries... yes</div><div>checking dynamic linker characteristics... solaris2.11 ld.so</div><div>checking how to hardcode library paths into programs... immediate</div>
<div>checking for pthread_create in -lpthread... yes</div><div>checking for library containing crypt... none required</div><div>checking for mysql... yes</div><div>checking for /opt/mysql/bin/mysql_config... yes</div><div>
checking mysql.h usability... yes</div><div>checking mysql.h presence... yes</div><div>checking for mysql.h... yes</div><div>checking for mysql_init in -lmysqlclient... yes</div><div>fail, >= 4.1 required</div><div>checking for postgresql... no</div>
<div>checking for SQLite3... no</div><div>configure: error: No available database found or selected. Try configure --help</div><div><br></div><div><br></div><div><br></div><div><br></div><div>I created this patch, and now I don't get the error anymore:</div>
<div><br></div><div><div># diff -bu configure configure.new</div><div>--- configure Tue Apr 14 21:59:50 2009</div><div>+++ configure.new Tue Apr 14 21:59:22 2009</div><div>@@ -20331,7 +20331,7 @@</div><div> sed 's/^/| /' conftest.$ac_ext >&5</div>
<div><br></div><div> ( exit $ac_status )</div><div>-mysql="no"</div><div>+mysql="yes"</div><div> fi</div><div> rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext</div>
<div> fi</div><div><br></div></div><br>-- <br>g.<br>