List:MySQL++« Previous MessageNext Message »
From:Kartik Mahajan Date:November 18 2008 6:00am
Subject:Problems building 64 bit mysqlpp library on Solaris using CC compiler
View as plain text  
Hi 

 

I am trying to build a 64 bit mysqlpp library on Solaris using CC compiler(
not g++). I need to build this library using CC as my application is
compiled using CC and since C++ libraries are not compiler independent, I
need to build this library using CC.

 

I have been able to build the library successfully but after building the
libmysqlpp.so, when the compiler tries to build other source files( I guess
they are test programs ? ) it gives error.

 

 

Here are the steps I followed:

 

1. export CC=cc

 

2. export CXX=CC

 

3. export  CFLAGS='-xarch=generic64'

 

4. ./configure -enable-thread-check -with-mysql=<the installation path>

 

5. After that I made changes so as to get a 64 bit shared library, however
the build gives errors after building the library i.e when it goes to build
programs like test_cpool

 

Here is the output of make ( I am unable to send all the output of make as
it resulted in failure delivery as the this mailing list server doesn't
accept messages more than 3000 words)

 

 

CC -xarch=generic64 -G -o libmysqlpp.so.3.0.6 mysqlpp_beemutex.o
mysqlpp_connection.o  mysqlpp_cpool.o  mysqlpp_datetime.o
mysqlpp_dbdriver.o  mysqlpp_field_names.o  mysqlpp_field_types.o
mysqlpp_manip.o  mysqlpp_myset.o  mysqlpp_mysql++.o  mysqlpp_mystring.o
mysqlpp_null.o  mysqlpp_options.o  mysqlpp_qparms.o  mysqlpp_query.o
mysqlpp_result.o  mysqlpp_row.o  mysqlpp_sql_buffer.o  mysqlpp_stadapter.o
mysqlpp_tcp_connection.o  mysqlpp_transaction.o  mysqlpp_type_info.o
mysqlpp_uds_connection.o  mysqlpp_vallist.o  mysqlpp_wnp_connection.o
-L/rusers/Charging/kartikm/mysql/mysql-5.0.45-solaris10-sparc-64bit/lib
-hlibmysqlpp.so.3.0.6    -lpthread -lnsl -lsocket -lm  -lintl -lnsl -lsocket
-lpthread -lmysqlclient_r

(cd .; rm -f  libmysqlpp.so  libmysqlpp.so.3; ln -s  libmysqlpp.so.3.0.6
libmysqlpp.so.3; ln -s  libmysqlpp.so.3  libmysqlpp.so)

/rusers/Charging/kartikm/solaris_cpm/mysql++-3.0.6/bk-deps CC
-xarch=generic64 -c -o test_cpool_cpool.o -Ilib     -D_REENTRANT
-I/rusers/Charging/kartikm/mysql/mysql-5.0.45-solaris10-sparc-64bit/include
-xarch=generic64 ./test/cpool.cpp

"lib/tcp_connection.h", line 121: Warning: mysqlpp::TCPConnection::connect
hides the virtual function mysqlpp::Connection::connect(const char*, const
char*, const char*, const char*, unsigned).

"lib/uds_connection.h", line 99: Warning:
mysqlpp::UnixDomainSocketConnection::connect hides the virtual function
mysqlpp::Connection::connect(const char*, const char*, const char*, const
char*, unsigned).

"lib/wnp_connection.h", line 93: Warning:
mysqlpp::WindowsNamedPipeConnection::connect hides the virtual function
mysqlpp::Connection::connect(const char*, const char*, const char*, const
char*, unsigned).

3 Warning(s) detected.

CC -xarch=generic64 -o test_cpool test_cpool_cpool.o
-L/rusers/Charging/kartikm/mysql/mysql-5.0.45-solaris10-sparc-64bit/lib
-L. -lpthread -lnsl -lsocket -lm  -lintl -lnsl -lsocket -lpthread
-lmysqlclient_r -lmysqlpp

/rusers/Charging/kartikm/solaris_cpm/mysql++-3.0.6/bk-deps CC
-xarch=generic64 -c -o test_datetime_datetime.o -Ilib -D_REENTRANT
-I/rusers/Charging/kartikm/mysql/mysql-5.0.45-solaris10-sparc-64bit/include
-xarch=generic64 ./test/datetime.cpp

"lib/tcp_connection.h", line 121: Warning: mysqlpp::TCPConnection::connect
hides the virtual function mysqlpp::Connection::connect(const char*, const
char*, const char*, const char*, unsigned).

"lib/uds_connection.h", line 99: Warning:
mysqlpp::UnixDomainSocketConnection::connect hides the virtual function
mysqlpp::Connection::connect(const char*, const char*, const char*, const
char*, unsigned).

"lib/wnp_connection.h", line 93: Warning:
mysqlpp::WindowsNamedPipeConnection::connect hides the virtual function
mysqlpp::Connection::connect(const char*, const char*, const char*, const
char*, unsigned).

"./test/datetime.cpp", line 125: Error: Could not find a match for
test_query_insert needed in test_stringization<mysqlpp::Date>(const
mysqlpp::Date&, const char*, const char*).

"./test/datetime.cpp", line 143:     Where: While instantiating
"test_stringization<mysqlpp::Date>(const mysqlpp::Date&, const char*, const
char*)".

"./test/datetime.cpp", line 143:     Where: Instantiated from non-template
code.

"./test/datetime.cpp", line 126: Error: Could not find a match for
test_ostream_insert needed in test_stringization<mysqlpp::Date>(const
mysqlpp::Date&, const char*, const char*).

"./test/datetime.cpp", line 143:     Where: While instantiating
"test_stringization<mysqlpp::Date>(const mysqlpp::Date&, const char*, const
char*)".

"./test/datetime.cpp", line 143:     Where: Instantiated from non-template
code.

"./test/datetime.cpp", line 127: Error: Could not find a match for
test_string_operator needed in test_stringization<mysqlpp::Date>(const
mysqlpp::Date&, const char*, const char*).

"./test/datetime.cpp", line 143:     Where: While instantiating
"test_stringization<mysqlpp::Date>(const mysqlpp::Date&, const char*, const
char*)".

"./test/datetime.cpp", line 143:     Where: Instantiated from non-template
code.

"./test/datetime.cpp", line 128: Error: Could not find a match for
test_str_method needed in test_stringization<mysqlpp::Date>(const
mysqlpp::Date&, const char*, const char*).

"./test/datetime.cpp", line 143:     Where: While instantiating
"test_stringization<mysqlpp::Date>(const mysqlpp::Date&, const char*, const
char*)".

"./test/datetime.cpp", line 143:     Where: Instantiated from non-template
code.

4 Error(s) and 3 Warning(s) detected.

*** Error code 4

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

 

 

 

 

Thanks & Regards

Kartik Mahajan

 


Thread
Problems building 64 bit mysqlpp library on Solaris using CC compilerKartik Mahajan18 Nov
  • Re: Problems building 64 bit mysqlpp library on Solaris using CC compilerWarren Young18 Nov