dbTalk Databases Forums  

Error when runing configure on solaris 8

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


Discuss Error when runing configure on solaris 8 in the mailing.database.mysql-plusplus forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Jeff Schweiger
 
Posts: n/a

Default Error when runing configure on solaris 8 - 08-25-2005 , 04:31 PM






------=_NextPart_000_0014_01C5A99B.0566DEE0
Content-Type: text/plain;
charset="us-ascii"
Content-Transfer-Encoding: 7bit

I am having a heck of a time building the MySQL++ library on Solaris 8.
Whenever I run configure I am getting the following error

configure: error: Conuld not find working MySQL client library!

To me, this is strange since I have no problem using there libraries when
building C programs.


Thanks for any help.

Jeff


Make using the command

$ ./configure --prefix=/usr/local/mysql
--with-mysql-include=/usr/local/mysql/include
--with-mysql-lib=/usr/local/mysql/lib

End of dump program

#define STDC_HEADERS 1
#define STDC_HEADERS 1
#define VERSION "2.0.2"
#endif
#ifdef __cplusplus
extern "C" void std::exit (int) throw (); using std::exit;

configure: exit 1


------=_NextPart_000_0014_01C5A99B.0566DEE0--


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

Default Re: Error when runing configure on solaris 8 - 08-26-2005 , 07:26 AM






Jeff Schweiger wrote:
Quote:
configure: error: Conuld not find working MySQL client library!
Examine config.log to find out why.

Quote:
--with-mysql-include=/usr/local/mysql/include
--with-mysql-lib=/usr/local/mysql/lib
You can combine those two into --with-mysql=/usr/local/mysql

The separate options are only needed when the library and headers are
installed in completely unrelated directory trees.

--
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   
Jeff Schweiger
 
Posts: n/a

Default RE: Error when runing configure on solaris 8 - 08-26-2005 , 08:39 AM



I did examine the config.log and I don't understand what the problem could
be. I am unsure of what the error means, and no I have no idea how to
correct it. Like I have said, I use the mysqlclient library all the time in
my C apps.

I have tried the Solaris 8 32 and 64 bit package from the MySQL web site.
The gcc version I am using is 3.4.2.

Again here is the errors I get at the end of the configure run I see this

checking for mysql_store_result in -lmysqlclient ... no
configure: error: could not find working MySQL client library

From the config.log I see these two parts that might have some releivance.
Any idea, or suggestions that I can try would be great

configure:21673: checking for mysql_store_result in -lmysqlclient
configure:21703: gcc -o conftest -g -O2 -I/usr/local/mysql/include
-L/usr/local/mysql/lib conftest.c -lmysqlclient -lz >&5
Undefined first referenced
symbol in file
floor
/usr/local/mysql/lib/libmysqlclient.a(password.o)
getservbyname
/usr/local/mysql/lib/libmysqlclient.a(libmysql.o)
gethostbyname_r
/usr/local/mysql/lib/libmysqlclient.a(client.o)
socket
/usr/local/mysql/lib/libmysqlclient.a(client.o)
setsockopt
/usr/local/mysql/lib/libmysqlclient.a(viosocket.o)
connect
/usr/local/mysql/lib/libmysqlclient.a(client.o)
getpeername
/usr/local/mysql/lib/libmysqlclient.a(viosocket.o)
inet_addr
/usr/local/mysql/lib/libmysqlclient.a(client.o)
inet_ntoa
/usr/local/mysql/lib/libmysqlclient.a(my_net.o)
shutdown
/usr/local/mysql/lib/libmysqlclient.a(viosocket.o)
ld: fatal: Symbol referencing errors. No output written to conftest
collect2: ld returned 1 exit status
configure:21709: $? = 1
configure: failed program was:

Quote:
/* confdefs.h. */
## ----------- ##
## confdefs.h. ##
## ----------- ##

#define HAVE_DLFCN_H 1
#define HAVE_INTTYPES_H 1
#define HAVE_LIBZ 1
#define HAVE_MEMORY_H 1
#define HAVE_STDLIB_H 1
#define HAVE_STRINGS_H 1
#define HAVE_STRING_H 1
#define HAVE_STRTOL 1
#define HAVE_SYS_STAT_H 1
#define HAVE_SYS_TYPES_H 1
#define HAVE_UNISTD_H 1
#define HAVE_ZLIB_H 1
#define PACKAGE "mysql++"
#define PACKAGE_BUGREPORT "plusplus (AT) lists (DOT) mysql.com"
#define PACKAGE_NAME "mysql++"
#define PACKAGE_STRING "mysql++ 2.0.2"
#define PACKAGE_TARNAME "mysql++"
#define PACKAGE_VERSION "2.0.2"
#define STDC_HEADERS 1
#define STDC_HEADERS 1
#define VERSION "2.0.2"
#endif
#ifdef __cplusplus
extern "C" void std::exit (int) throw (); using std::exit;

configure: exit 1

-----Original Message-----
From: plusplus-return-4820-jeff.schweiger=nexgencom.net (AT) lists (DOT) mysql.com
[mailtolusplus-return-4820-jeff.schweiger=nexgencom.net (AT) lists (DOT) mysql.com]
On Behalf Of Warren Young
Sent: Friday, August 26, 2005 8:26 AM
To: MySQL++ Mailing List
Subject: Re: Error when runing configure on solaris 8

Jeff Schweiger wrote:
Quote:
configure: error: Conuld not find working MySQL client library!
Examine config.log to find out why.

Quote:
--with-mysql-include=/usr/local/mysql/include
--with-mysql-lib=/usr/local/mysql/lib
You can combine those two into --with-mysql=/usr/local/mysql

The separate options are only needed when the library and headers are
installed in completely unrelated directory trees.

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


--
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   
Warren Young
 
Posts: n/a

Default Re: Error when runing configure on solaris 8 - 08-26-2005 , 08:52 AM



Jeff Schweiger wrote:
Quote:
/usr/local/mysql/lib/libmysqlclient.a(password.o)
getservbyname
Bingo.

For some reason, autoconf isn't adding -lnsl to the link line.
Unfortunately, I'm not certain what the right way to correct this is.
It's probably something that should be handled internally to autoconf,
not explicitly added.

Will you please investigate this? It's something best done by the
person with access to the machine in question.

--
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   
Jeff Schweiger
 
Posts: n/a

Default RE: Error when runing configure on solaris 8 - 08-26-2005 , 09:01 AM



Warren,

Thanks for pointing in the right direction. I would not have thought that
it was an autoconf issue since I am using the latest version. I post
something once I figure it out.

Jeff

-----Original Message-----
From: plusplus-return-4822-jeff.schweiger=nexgencom.net (AT) lists (DOT) mysql.com
[mailtolusplus-return-4822-jeff.schweiger=nexgencom.net (AT) lists (DOT) mysql.com]
On Behalf Of Warren Young
Sent: Friday, August 26, 2005 9:52 AM
To: MySQL++ Mailing List
Subject: Re: Error when runing configure on solaris 8

Jeff Schweiger wrote:
Quote:
/usr/local/mysql/lib/libmysqlclient.a(password.o)
getservbyname
Bingo.

For some reason, autoconf isn't adding -lnsl to the link line.
Unfortunately, I'm not certain what the right way to correct this is.
It's probably something that should be handled internally to autoconf,
not explicitly added.

Will you please investigate this? It's something best done by the
person with access to the machine in question.

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


--
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: Error when runing configure on solaris 8 - 08-26-2005 , 10:54 AM



Jeff Schweiger wrote:
Quote:
I would not have thought that
it was an autoconf issue since I am using the latest version.
Unless you ran the bootstrap script, you aren't in fact using the latest
version of autoconf; you're indirectly using the version installed on
the system that made the MySQL++ tarball.

You should try running the bootstrap script. It may indeed fix the problem.

--
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 - 2012, Jelsoft Enterprises Ltd.