List:MySQL++« Previous MessageNext Message »
From:Cory L Twibell Date:July 7 2005 8:28pm
Subject:RE: Configuring mysql++ for Solaris 8
View as plain text  
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:
| #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@stripped]
Sent: Wednesday, July 06, 2005 11:40 AM
To: MySQL++ Mailing List
Subject: Re: Configuring mysql++ for Solaris 8


Twibell, Cory L wrote:

> 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?unsub=1

Thread
Configuring mysql++ for Solaris 8Cory L Twibell6 Jul
  • Re: Configuring mysql++ for Solaris 8Warren Young6 Jul
RE: Configuring mysql++ for Solaris 8Cory L Twibell6 Jul
  • Re: Configuring mysql++ for Solaris 8Warren Young6 Jul
RE: Configuring mysql++ for Solaris 8Cory L Twibell7 Jul
  • Re: Configuring mysql++ for Solaris 8Chris Frey8 Jul
    • Re: Configuring mysql++ for Solaris 8Warren Young8 Jul