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