3 messages in com.mysql.lists.plusplusRe: configure error
FromSent OnAttachments
M04 Aug 2001 19:44 
M06 Aug 2001 03:54 
M07 Aug 2001 04:33 
Subject:Re: configure error
From:M (mkst@bigpond.com)
Date:08/07/2001 04:33:32 AM
List:com.mysql.lists.plusplus

Hi,

I have found the problem for the compilation bit. I used /usr/local/bin/make (GNU make) and everything compiled OK. The configure error is still a mystery though. Thanks for your help.

Regards,

Michael

----- Original Message ----- From: chris Günther <guen@uscreen.de> To: M <mkst@bigpond.com> Sent: Tuesday, August 07, 2001 11:54 PM Subject: Re: configure error

Hi hi,

On Mon, 6 Aug 2001 20:54:26 +1000 "M" <mkst@bigpond.com> wrote:

I set the MySQL lib option to --with-mysql-lib=/opt/MySQL/lib. My understanding is that mysql++ needs to know where mysql keeps its libs and includes. But, are you implying that this option also writes, or needs write permissions, to that directory?

Well in the final make install step I'd would definately say yes to that. But at the second look at your output I'd say that there is some other error

Making all in sqlplusint mksh: Fatal error in reader: = missing from replacement macro reference Current working directory /home/mkatsili/src/database/mysql++-1.7.9/sqlplusint *** Error code 1

This is the point where your compilation fails and unfortunately I can't tell you why.

I should have posted this initially, so here is all the output... Note: I have also tried /usr/ccs/bin/make and it didn't work. And I am deleting config.cache before each attempt.

it should not matter if you use gnu make or sun-make - sun-make is quite slow but stable and hnu-make got some nifty features and is quick.

============== Start of output =================

$ automake $ autoconf $

./configure --with-mysql=/opt/MySQL --with-mysql-include=/opt/MySQL/include

--with-mysql-lib=/opt/MySQL/lib creating cache ./config.cache checking for a BSD compatible install... ./install-sh -c checking whether build environment is sane... yes checking whether make sets ${MAKE}... yes checking for working aclocal... found checking for working autoconf... found checking for working automake... found checking for working autoheader... found checking for working makeinfo... found checking whether make sets ${MAKE}... (cached) yes checking host system type... sparc-sun-solaris2.8 checking build system type... sparc-sun-solaris2.8 checking for ranlib... ranlib checking for gcc... gcc checking whether the C compiler (gcc ) works... yes checking whether the C compiler (gcc ) is a cross-compiler... no checking whether we are using GNU C... yes checking whether gcc accepts -g... yes checking for ld used by GCC... /usr/ccs/bin/ld checking if the linker (/usr/ccs/bin/ld) is GNU ld... no checking for BSD-compatible nm... /usr/ccs/bin/nm -p checking whether ln -s works... yes updating cache ./config.cache loading cache ./config.cache within ltconfig checking for object suffix... o checking for executable suffix... no 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 if gcc supports -c -o file.lo... yes checking if gcc supports -fno-rtti -fno-exceptions ... yes checking if gcc static flag -static works... -static checking if the linker (/usr/ccs/bin/ld) is GNU ld... no checking whether the linker (/usr/ccs/bin/ld) supports shared libraries... yes checking command to parse /usr/ccs/bin/nm -p output... ok checking how to hardcode library paths into programs... immediate checking for /usr/ccs/bin/ld option to reload object files... -r checking dynamic linker characteristics... solaris2.8 ld.so checking if libtool supports shared libraries... yes checking whether to build shared libraries... yes checking whether to build static libraries... yes checking for objdir... .libs creating libtool updating cache ./config.cache loading cache ./config.cache checking whether to enable maintainer-specific portions of Makefiles... no ./configure: /opt/MySQL/lib: cannot execute checking for MySQL library directory... /opt/MySQL/lib/mysql checking for MySQL include directory... /opt/MySQL/include/mysql checking for gcc... (cached) gcc checking whether the C compiler (gcc -g -O2 -L/opt/MySQL/lib/mysql) works... yes checking whether the C compiler (gcc -g -O2 -L/opt/MySQL/lib/mysql) is a cross-compiler... no checking whether we are using GNU C... (cached) yes checking whether gcc accepts -g... (cached) yes checking for c++... c++ checking whether the C++ compiler (c++ -L/opt/MySQL/lib/mysql) works... yes checking whether the C++ compiler (c++ -L/opt/MySQL/lib/mysql) is a cross-compiler... no checking whether we are using GNU C++... yes checking whether c++ accepts -g... yes checking for main in -lintl... yes checking for main in -lsocket... yes checking for main in -lnsl... yes checking for mysql_store_result in -lmysqlclient... yes checking if malloc debugging is wanted... no checking how to run the C preprocessor... gcc -E checking for ANSI C header files... no checking for working const... yes checking for strtol... yes updating cache ./config.cache creating ./config.status creating Makefile creating sqlplusint/Makefile creating examples/Makefile creating config.h config.h is unchanged creating sqlplusint/exceptions.hh sqlplusint/exceptions.hh is unchanged $ make make all-recursive Making all in sqlplusint mksh: Fatal error in reader: = missing from replacement macro reference Current working directory /home/mkatsili/src/database/mysql++-1.7.9/sqlplusint *** Error code 1 make: Fatal error: Command failed for target `all-recursive' Current working directory /home/mkatsili/src/database/mysql++-1.7.9 *** Error code 1 make: Fatal error: Command failed for target `all-recursive-am' $

=================== End of output =========================

Regards,

----- Original Message ----- From: chris Günther <guen@uscreen.de> To: M <mkst@bigpond.com> Sent: Monday, August 06, 2001 8:46 AM Subject: Re: configure error

Hey ho, another SUN-Fan ;-)

I am trying to install mysql++ on a Solaris server, in my HOME directory, but the following error occurred

./configure: /opt/MySQL/lib: cannot execute

What is causing this error and how can I fix it.

hm, doesn't look like your $home to me - looks more like _/opt_ in which you propably have no rights to write.