dbTalk Databases Forums  

Configuring mysql++ for Solaris 8

mailing.database.mysql-plusplus mailing.database.mysql-plusplus


Discuss Configuring mysql++ for Solaris 8 in the mailing.database.mysql-plusplus forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Twibell, Cory L
 
Posts: n/a

Default Configuring mysql++ for Solaris 8 - 07-05-2005 , 05:08 PM






I'm trying to configure mysql++ for Solaris 8. Using mysql++ 1.7.40 and MySQL 4.1.12 pro.

Getting error when checking for mysql_store_result in -lmysqlclient_r...could not find working MySQL client library!

Checked the config.log and getting undefined symbol for mysql_store_result function. Looks like mysql++ can't find that function within the MySQL client libraries. Any suggestions?

Thanks,
Cory

--
MySQL++ Mailing List
For list archives: http://lists.mysql.com/plusplus
To unsubscribe: http://lists.mysql.com/plusplus?unsu...ie.nctu.edu.tw


Reply With Quote
  #2  
Old   
Warren Young
 
Posts: n/a

Default Re: Configuring mysql++ for Solaris 8 - 07-06-2005 , 12:40 PM






Twibell, Cory L wrote:

Quote:
Getting error when checking for mysql_store_result in -lmysqlclient_r...
Easy: the configure script cannot find the MySQL client library on your
system, or it is unlinkable for some reason. If it's just in an odd
location, use the --with-mysql* configure options. (See configure
--help) If it's unlinkable, it may be because other things have to be
linked with it.

--
MySQL++ Mailing List
For list archives: http://lists.mysql.com/plusplus
To unsubscribe: http://lists.mysql.com/plusplus?unsu...ie.nctu.edu.tw



Reply With Quote
  #3  
Old   
Warren Young
 
Posts: n/a

Default Re: Configuring mysql++ for Solaris 8 - 07-06-2005 , 03:07 PM



Twibell, Cory L wrote:

Quote:
I even tried linking with -lm -lsocket -lnsl
I had in mind the libraries, compiler flags and such for threading.
What happens when you configure it without threads?

If that doesn't work, can you send me the config.log file, or get me a
remote login on the machine? I ask for the latter only because I don't
have any Solaris machines available to me.

P.S. There's no need to send responses both to me personally and to the
list. I do read the list...

--
MySQL++ Mailing List
For list archives: http://lists.mysql.com/plusplus
To unsubscribe: http://lists.mysql.com/plusplus?unsu...ie.nctu.edu.tw



Reply With Quote
  #4  
Old   
Twibell, Cory L
 
Posts: n/a

Default RE: Configuring mysql++ for Solaris 8 - 07-07-2005 , 04:13 PM



Warren,

Here is a snip of the config.log file (since the list doesn't allow huge
attachments)

It was created by configure, which was
generated by GNU Autoconf 2.57. Invocation command line was

$ ./configure --prefix=/home/ctwibell --program-suffix=4
--enable-thread-check
--with-mysql=/home/ctwibell/MySQL4.1.12/mysql-pro-4.1.12-sun-solaris2.8-
sparc-64bit

configure:9833: checking for gzread in -lz
configure:9864: CC -o conftest -g -D_REENTRANT conftest.c -lz
-lpthread >&5
configure:9867: $? = 0
configure:9870: test -s conftest
configure:9873: $? = 0
configure:9885: result: yes
configure:9944: checking for MySQL library directory
configure:9971: result:
/home/ctwibell/MySQL4.1.12/mysql-pro-4.1.12-sun-solaris2.8-sparc-64bit/l
ib
configure:9983: checking for MySQL include directory
configure:10009: result:
/home/ctwibell/MySQL4.1.12/mysql-pro-4.1.12-sun-solaris2.8-sparc-64bit/i
nclude
configure:10016: checking for mysql_store_result in -lmysqlclient_r
configure:10047: CC -o conftest -g -D_REENTRANT
-I/home/ctwibell/MySQL4.1.12/mysql-pro-4.1.12-sun-solaris2.8-sparc-64bit
/include
-L/home/ctwibell/MySQL4.1.12/mysql-pro-4.1.12-sun-solaris2.8-sparc-64bit
/lib conftest.c -lmysqlclient_r -lz -lpthread >&5
ld: warning: file
/home/ctwibell/MySQL4.1.12/mysql-pro-4.1.12-sun-solaris2.8-sparc-64bit/l
ib/libmysqlclient_r.a(client.o): wrong ELF class: ELFCLASS64
Undefined first referenced
symbol in file
mysql_store_result conftest.o
ld: fatal: Symbol referencing errors. No output written to conftest
configure:10050: $? = 1
configure: failed program was:
Quote:
#line 10023 "configure"
/* confdefs.h. */

#define PACKAGE_NAME ""
#define PACKAGE_TARNAME ""
#define PACKAGE_VERSION ""
#define PACKAGE_STRING ""
#define PACKAGE_BUGREPORT ""
#define PACKAGE "mysql++"
#define VERSION "1.7.40"
#ifdef __cplusplus
#include <stdlib.h
#endif
#define STDC_HEADERS 1
#define HAVE_SYS_TYPES_H 1
#define HAVE_SYS_STAT_H 1
#define HAVE_STDLIB_H 1
#define HAVE_STRING_H 1
#define HAVE_MEMORY_H 1
#define HAVE_STRINGS_H 1
#define HAVE_INTTYPES_H 1
#define HAVE_UNISTD_H 1
#define HAVE_DLFCN_H 1
#define STDC_HEADERS 1
#define HAVE_PTHREAD 1
#define HAVE_ZLIB_H 1
#define HAVE_LIBZ 1
/* end confdefs.h. */

/* Override any gcc2 internal prototype to avoid an error. */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char mysql_store_result ();
int
main ()
{
mysql_store_result ();
;
return 0;
}
configure:10068: result: no
configure:10079: error: Could not find working MySQL client library!

Thanks,
Cory

-----Original Message-----
From: Warren Young [mailto:mysqlpp (AT) etr-usa (DOT) com]
Sent: Wednesday, July 06, 2005 11:40 AM
To: MySQL++ Mailing List
Subject: Re: Configuring mysql++ for Solaris 8


Twibell, Cory L wrote:

Quote:
Getting error when checking for mysql_store_result in
-lmysqlclient_r...

Easy: the configure script cannot find the MySQL client library on your
system, or it is unlinkable for some reason. If it's just in an odd
location, use the --with-mysql* configure options. (See configure
--help) If it's unlinkable, it may be because other things have to be
linked with it.

--
MySQL++ Mailing List
For list archives: http://lists.mysql.com/plusplus
To unsubscribe:
http://lists.mysql.com/plusplus?unsu...lmco (DOT) com


--
MySQL++ Mailing List
For list archives: http://lists.mysql.com/plusplus
To unsubscribe: http://lists.mysql.com/plusplus?unsu...ie.nctu.edu.tw



Reply With Quote
  #5  
Old   
Chris Frey
 
Posts: n/a

Default Re: Configuring mysql++ for Solaris 8 - 07-07-2005 , 06:03 PM



On Thu, Jul 07, 2005 at 02:28:04PM -0600, Twibell, Cory L wrote:
Quote:
configure:10047: CC -o conftest -g -D_REENTRANT
-I/home/ctwibell/MySQL4.1.12/mysql-pro-4.1.12-sun-solaris2.8-sparc-64bit
/include
-L/home/ctwibell/MySQL4.1.12/mysql-pro-4.1.12-sun-solaris2.8-sparc-64bit
/lib conftest.c -lmysqlclient_r -lz -lpthread >&5
ld: warning: file
/home/ctwibell/MySQL4.1.12/mysql-pro-4.1.12-sun-solaris2.8-sparc-64bit/l
ib/libmysqlclient_r.a(client.o): wrong ELF class: ELFCLASS64
I'm no Solaris expert, but this seems to be the problem here.
How was mysql compiled? Did it use any weird CC flags? Did it use
the Sun compiler? GCC?

I don't know what would create an incorrect ELF class, but you might
want to find out. :-)

- Chris


--
MySQL++ Mailing List
For list archives: http://lists.mysql.com/plusplus
To unsubscribe: http://lists.mysql.com/plusplus?unsu...ie.nctu.edu.tw



Reply With Quote
  #6  
Old   
Warren Young
 
Posts: n/a

Default Re: Configuring mysql++ for Solaris 8 - 07-07-2005 , 11:38 PM



Chris Frey wrote:
Quote:
ib/libmysqlclient_r.a(client.o): wrong ELF class: ELFCLASS64

I'm no Solaris expert, but this seems to be the problem here.
Yep. Could be a 64-bitness vs. 32-bitness kind of thing....

--
MySQL++ Mailing List
For list archives: http://lists.mysql.com/plusplus
To unsubscribe: http://lists.mysql.com/plusplus?unsu...ie.nctu.edu.tw



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.