Opened 15 years ago

Last modified 15 years ago

#701 closed defect (fixed)

Configure fails at check for mysql

Reported by: rob@… Owned by: warmerdam
Priority: high Milestone:
Component: default Version: unspecified
Severity: normal Keywords:
Cc:

Description

The configure script fails at mysql check with this message:
checking for MySQL... ./configure.lineno: 24841: Syntax error: Bad substitution
This occurs for me with version gdal-1.2.5 as well as cvs distribution checked
out on wed, dec 1 at about 5pm. Also, --without-mysql has no effect and I get
the same output.

OS is 4.10-RELEASE-p3 FreeBSD
Thanks,
Rob
----
Command line:
./configure \
  --prefix=/home/rob/local \
  --with-png=/usr/local \
  --with-libtiff=internal \
  --with-geotiff=internal \
  --with-jpeg=/usr/local \
  --with-libgrass=/usr/local \
  --with-mysql=/usr/local/bin/mysql_config \
  --with-pg=/usr/local/bin/pg_config
---

Here is the full stdout text:
checking build system type... i386-unknown-freebsd4.10
checking host system type... i386-unknown-freebsd4.10
checking target system type... i386-unknown-freebsd4.10
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 ANSI C... none needed
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking for a sed that does not truncate output... /usr/bin/sed
checking for egrep... grep -E
checking for ld used by gcc... /usr/libexec/elf/ld
checking if the linker (/usr/libexec/elf/ld) is GNU ld... yes
checking for /usr/libexec/elf/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm -B
checking whether ln -s works... yes
checking how to recognise dependent libraries... pass_all
checking how to run the C preprocessor... gcc -E
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... no
checking for unistd.h... yes
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking how to run the C++ preprocessor... g++ -E
checking for g77... no
checking for f77... f77
checking whether we are using the GNU Fortran 77 compiler... yes
checking whether f77 accepts -g... yes
checking the maximum length of command line arguments... 16384
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for objdir... .libs
checking for ar... ar
checking for ranlib... ranlib
checking for strip... strip
checking if gcc static flag  works... yes
checking if gcc supports -fno-rtti -fno-exceptions... yes
checking for gcc option to produce PIC... -fPIC
checking if gcc PIC flag -fPIC works... yes
checking if gcc supports -c -o file.o... yes
checking whether the gcc linker (/usr/libexec/elf/ld) supports shared
libraries... yes
checking whether -lc should be explicitly linked in... yes
checking dynamic linker characteristics... freebsd4.10 ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
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/libexec/elf/ld
checking if the linker (/usr/libexec/elf/ld) is GNU ld... yes
checking whether the g++ linker (/usr/libexec/elf/ld) supports shared
libraries... yes
checking for g++ option to produce PIC... -fPIC
checking if g++ PIC flag -fPIC works... yes
checking if g++ supports -c -o file.o... yes
checking whether the g++ linker (/usr/libexec/elf/ld) supports shared
libraries... yes
checking dynamic linker characteristics... freebsd4.10 ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
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 f77 option to produce PIC... -fPIC
checking if f77 PIC flag -fPIC works... yes
checking if f77 supports -c -o file.o... yes
checking whether the f77 linker (/usr/libexec/elf/ld) supports shared
libraries... yes
checking dynamic linker characteristics... freebsd4.10 ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking for dlopen in -ldl... no
checking for main in -lm... yes
checking for ANSI C header files... (cached) yes
checking assert.h usability... yes
checking assert.h presence... yes
checking for assert.h... yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking for unistd.h... (cached) yes
checking dbmalloc.h usability... no
checking dbmalloc.h presence... no
checking for dbmalloc.h... no
checking for dlfcn.h... (cached) yes
checking for stdint.h... (cached) no
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking locale.h usability... yes
checking locale.h presence... yes
checking for locale.h... yes
checking whether byte ordering is bigendian... no
checking for 64bit integer type... long long
checking for 64bit file io... no
checking for int... yes
checking size of int... 4
checking for long... yes
checking size of long... 4
checking for int8... no
checking for int16... no
checking for int32... no
checking native cpu bit order... lsb2msb
checking for vprintf... yes
checking for _doprnt... no
checking for vsnprintf... yes
checking for snprintf... yes
checking for atoll... no
checking for gmtime_r... yes
checking for localtime_r... yes
checking for setlocale... yes
checking for local include/lib path... none
configure: checking whether we should include thread/mutex support......
        thread safe support disabled.
checking for deflateInit_ in -lz... yes
using pre-installed libz
checking for G_gisinit_2 in -lgrass5... yes
checking for ffopen in -lcfitsio... no
libcfitsio not found - FITS support disabled
checking for Mopen in -lcsf... no
checking for nc_open in -lnetcdf... no
libnetcdf not found - netCDF support disabled
using libpng from /usr/local.
using internal TIFF code.
using internal GeoTIFF code.
using libjpeg from /usr/local.
checking for DGifOpenFileName in -lgif... no
using internal gif code.
checking for cln_GetLayerCapabilities in -logdi31... no
checking for FMEObjects... no
checking for SDreaddata in -lmfhdf... no
checking for jpc_decode in -ljasper... no
checking for jp2_decode in -ljasper... no
checking for pgx_decode in -ljasper... no
checking for NCScbmOpenFileView in -lNCSEcw... no
checking for Kakadu JPEG2000 support... not requested.
configure: MrSID support disabled.
checking for BSB ... enabled
checking for OGR ... enabled
checking for PostgreSQL... yes
checking for mysql_config... /usr/local/bin/mysql_config
checking for MySQL... ./configure.lineno: 24841: Syntax error: Bad substitution

Change History (5)

comment:1 Changed 15 years ago by warmerdam

Rob, 

I appologise for not having addressed this for so long.  What does
your "mysql_config --version", "mysql_config --libs" and "mysql_config --include"
report? 

I see on March 3rd, 2005 I committed some fixes to configure.in for bash
specific features in the portion of the configure script related to mysql.
I am suspecting that is what is intefering in your case.  Any chance you could
try out gdal 1.2.6 on the system in question? 


comment:2 Changed 15 years ago by rob@…

(In reply to comment #1)
> Rob, 
> 
> I appologise for not having addressed this for so long.  What does
> your "mysql_config --version", "mysql_config --libs" and "mysql_config --include"
> report? 

redbud $ which geos-config
/usr/local/bin/geos-config
redbud $ mysql_config --version
4.1.7
redbud $ mysql_config --libs
-L/usr/local/lib/mysql -lmysqlclient -lcrypt -lm  -lz
redbud $ mysql_config --include
-I/usr/local/include/mysql

> 
> I see on March 3rd, 2005 I committed some fixes to configure.in for bash
> specific features in the portion of the configure script related to mysql.
> I am suspecting that is what is intefering in your case.  Any chance you could
> try out gdal 1.2.6 on the system in question? 
> 
Configure gets past mysql successfully but now stops at geos:
. . .
checking for MySQL... yes
checking for Xerces C++... disabled
checking for SQLConnect in -lodbc... no
checking for OCIBindByName in -lclntsh... no
checking Checking for DODS... disabled
checking Checking for SQLite... disabled
checking for geos-config... /usr/local/bin/geos-config
./configure.lineno: 25342: Syntax error: Bad substitution

comment:3 Changed 15 years ago by warmerdam

I have committed a similar change in the geos configuration code.  Would
you mind cvs updating and seeing if things work a bit better now? 

comment:4 Changed 15 years ago by rob@…

(In reply to comment #3)
> I have committed a similar change in the geos configuration code.  Would
> you mind cvs updating and seeing if things work a bit better now? 
> 

Ok, that worked. Configure made it to the end. Looks like that
s fixed.

comment:5 Changed 15 years ago by warmerdam

Sweet!  Thanks. 

Hopefully I won't accidentally commit any additional bash specific
features for a while.  


Note: See TracTickets for help on using tickets.