List:MySQL++« Previous MessageNext Message »
From:Kartik Mahajan Date:August 14 2008 6:35am
Subject:Unable to build MySQL++ on Solaris
View as plain text  
-----Original Message-----
From: Warren Young [mailto:mysqlpp@stripped] 
Sent: Wednesday, August 13, 2008 5:01 PM
To: plusplus@stripped
Subject: Re: Unable to build MySQL++ on Solaris 

 

On Aug 13, 2008, at 2:57 AM, Kartik Mahajan wrote:

 

> I have been trying for past 2 days

 

MySQL++ 3.0.5 was released a week ago, and it fixes the problems  

you're running into.

 

 

 

 

Hi 

 

I have downloaded the latest source code i.e mysql++-3.0.5.tar.gz and still
I get the same error. I have also noted that there are changes in
beemutex.cpp and configure.ac as I guess they have been made to make it
possible to build MySQL++ on Solaris. But still it is giving the same
errors.

 

Here are the steps I follow and their respective outputs :

 

/rusers/Charging/kartikm/mysql++/mysql++-3.0.5>>./configure
--enable-thread-check --with-mysql=/rusers/Charging/kartikm/mysql

checking build system type... sparc-sun-solaris2.10

checking host system type... sparc-sun-solaris2.10

checking target system type... sparc-sun-solaris2.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 ISO C89... none needed

checking whether we are using the Intel C compiler... no

checking for g++... g++

checking whether we are using the GNU C++ compiler... yes

checking whether g++ accepts -g... yes

checking whether we are using the Intel C++ compiler... no

checking whether we are using the Sun C++ compiler... no

checking for ranlib... ranlib

checking for a BSD-compatible install... ./install-sh -c

checking whether ln -s works... yes

checking whether make sets $(MAKE)... yes

checking for ar... ar

checking for strip... strip

checking for nm... nm

checking for command to install directories... ./install-sh -c -d

checking if make is GNU make... no

checking for dependency tracking method... gcc

checking for gcc... (cached) gcc

checking whether we are using the GNU C compiler... (cached) yes

checking whether gcc accepts -g... (cached) yes

checking for gcc option to accept ISO C89... (cached) none needed

checking how to run the C preprocessor... gcc -E

checking for grep that handles long lines and -e... /usr/sfw/bin/ggrep

checking for egrep... /usr/sfw/bin/ggrep -E

checking for ANSI C header files... yes

checking whether pthreads work with -pthread... yes

checking for joinable pthread attribute... PTHREAD_CREATE_JOINABLE

checking if more special flags are required for pthreads... -D_REENTRANT

checking for cc_r... gcc

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 synch.h usability... yes

checking synch.h presence... yes

checking for synch.h... yes

checking whether -lm is needed to use C math functions... no

checking whether -lsocket is needed... yes

checking whether -lnsl is needed... yes

checking for MySQL library directory... /rusers/Charging/kartikm/mysql/lib

checking for MySQL include directory...
/rusers/Charging/kartikm/mysql/include

checking if we can link to MySQL C API library directly... yes

checking for mysql_ssl_set in -lmysqlclient_r... yes

checking for localtime_r()... yes

checking for main in -lintl... yes

checking whether we are using the GNU C++ compiler... (cached) yes

checking whether g++ accepts -g... (cached) yes

checking for STL slist extension... <ext/slist>, namespace __gnu_cxx

configure: creating ./config.status

config.status: creating Makefile

config.status: creating mysql++.spec

config.status: creating doc/userman/userman.dbx

config.status: creating lib/Doxyfile

config.status: creating lib/mysql++.h

config.status: creating config.h

 

 

/rusers/Charging/kartikm/mysql++/mysql++-3.0.5>>make

/rusers/Charging/kartikm/mysql++/mysql++-3.0.5/bk-deps g++ -c -o
mysqlpp_beemutex.o -I. -fPIC -DPIC -D_REENTRANT -pthread
-I/rusers/Charging/kartikm/mysql/include -g -O2 ./lib/beemutex.cpp

g++: unrecognized option `-pthread'

./lib/beemutex.cpp: In constructor
`mysqlpp::BeecryptMutex::BeecryptMutex()':

./lib/beemutex.cpp:79: error: `USYNC_THREAD' undeclared (first use this
function)

./lib/beemutex.cpp:79: error: (Each undeclared identifier is reported only
once for each function it appears in.)

./lib/beemutex.cpp:79: error: `mutex_init' undeclared (first use this
function)

./lib/beemutex.cpp: In destructor
`mysqlpp::BeecryptMutex::~BeecryptMutex()':

./lib/beemutex.cpp:95: error: `mutex_destroy' undeclared (first use this
function)

./lib/beemutex.cpp: In member function `void
mysqlpp::BeecryptMutex::lock()':

./lib/beemutex.cpp:117: error: `mutex_lock' undeclared (first use this
function)

./lib/beemutex.cpp: In member function `bool
mysqlpp::BeecryptMutex::trylock()':

./lib/beemutex.cpp:143: error: `mutex_trylock' undeclared (first use this
function)

./lib/beemutex.cpp: In member function `void
mysqlpp::BeecryptMutex::unlock()':

./lib/beemutex.cpp:173: error: `mutex_unlock' undeclared (first use this
function)

*** Error code 1

make: Fatal error: Command failed for target `mysqlpp_beemutex.o'

 

 

Here is the output of uname -a :

SunOS D001RANCOR2 5.10 Generic_118833-36 sun4v sparc SUNW,Sun-Fire-T200

 

 

 

Kindly provide me the changes I need to make in configure.ac and
beemutex.cpp.

Thanks for your patience.

 

 

Thanks & Regards

Kartik Mahajan


Thread
Unable to build MySQL++ on SolarisKartik Mahajan14 Aug
  • Re: Unable to build MySQL++ on SolarisWarren Young14 Aug
    • RE: Unable to build MySQL++ on SolarisKartik Mahajan16 Aug
      • Re: Unable to build MySQL++ on SolarisWarren Young16 Aug
        • RE: Unable to build MySQL++ on SolarisKartik Mahajan16 Aug
          • Re: Unable to build MySQL++ on SolarisWarren Young16 Aug
    • Re: Unable to build MySQL++ on SolarisJonathan Wakely16 Aug
      • Re: Unable to build MySQL++ on SolarisWarren Young16 Aug
        • RE: Unable to build MySQL++ on SolarisKartik Mahajan16 Aug
          • Re: Unable to build MySQL++ on SolarisWarren Young16 Aug
RE: Unable to build MySQL++ on SolarisKartik Mahajan16 Aug
  • Re: Unable to build MySQL++ on SolarisWarren Young16 Aug
    • RE: Unable to build MySQL++ on SolarisKartik Mahajan22 Aug
      • Re: Unable to build MySQL++ on SolarisWarren Young22 Aug
        • RE: Unable to build MySQL++ on SolarisKartik Mahajan22 Aug
      • Re: Unable to build MySQL++ on SolarisJonathan Wakely22 Aug
        • RE: Unable to build MySQL++ on SolarisKartik Mahajan23 Aug
          • Re: Unable to build MySQL++ on SolarisWarren Young23 Aug