dbTalk Databases Forums  

Solaris 8 issues

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


Discuss Solaris 8 issues in the mailing.database.mysql-plusplus forum.



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

Default Solaris 8 issues - 08-29-2005 , 11:26 AM






------=_NextPart_000_0006_01C5AC94.FDA71510
Content-Type: text/plain;
charset="us-ascii"
Content-Transfer-Encoding: 7bit

I am having a heck of a time with running configure on Solaris 8. I have
tried many things, and basically

I have tried everything I know to fix the problem.


I have a pretty vanilla installation of Solaris 8 and I am pretty up to
date with patches. I am running MySQL 4.1.11 and GCC 3.4.2 The GCC package
is from sunfreeware.com



in the config.log file, I see the following error



gcc: -lnsl: linker input file used because linking not done.



I can not figure out why I would see this error. I compile a lot of code
with -lnsl and do not have any issues.



Do anyone have any ideas?



Thanks



Jeff


------=_NextPart_000_0006_01C5AC94.FDA71510--


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

Default Re: Solaris 8 issues - 08-29-2005 , 12:54 PM






Jeff Schweiger wrote:
Quote:
I have tried everything I know to fix the problem.
Did you run the bootstrap script, as I suggested previously?

Quote:
gcc: -lnsl: linker input file used because linking not done.
How did you get from the point where you were the last time you sent
email to the list, to this point? I ask because I might need to take
this up on the autoconf mailing list, and I will need to know what
exactly you have done. Point of fact, it would be better if you talked
to them instead, since you have all the details, and the machine to try
suggestions.

--
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: Solaris 8 issues - 08-29-2005 , 04:56 PM



When I try the bootstrap script, I get an error the error is

bootstrap: test: unknown operator ==

for the -lnsl error,

Quote:
gcc: -lnsl: linker input file used because linking not done.
I scanned the entire config.log file, and I see this error repeated several
times. Thoughout the config.log

Jeff

-----Original Message-----
From: plusplus-return-4834-jeff.schweiger=nexgencom.net (AT) lists (DOT) mysql.com
[mailtolusplus-return-4834-jeff.schweiger=nexgencom.net (AT) lists (DOT) mysql.com]
On Behalf Of Warren Young
Sent: Monday, August 29, 2005 1:54 PM
To: MySQL++ Mailing List
Subject: Re: Solaris 8 issues

Jeff Schweiger wrote:
Quote:
I have tried everything I know to fix the problem.
Did you run the bootstrap script, as I suggested previously?

Quote:
gcc: -lnsl: linker input file used because linking not done.
How did you get from the point where you were the last time you sent
email to the list, to this point? I ask because I might need to take
this up on the autoconf mailing list, and I will need to know what
exactly you have done. Point of fact, it would be better if you talked
to them instead, since you have all the details, and the machine to try
suggestions.

--
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: Solaris 8 issues - 08-29-2005 , 07:21 PM



Jeff Schweiger wrote:
Quote:
bootstrap: test: unknown operator ==
Ugh. Change the == early in the script to a single = sign. It's a
bash-ism.

Quote:
I scanned the entire config.log file, and I see this error repeated several
times. Thoughout the config.log
Are you saying that you didn't do anything different from your last
message in the other thread where I impugned autoconf to this new thread
where you found the -lnsl message? If there were any steps between, I
need to know them.

Also, please indicate whether or not you intend to take this up on the
autoconf mailing list. I would rather that you did it, but if you
won't, I need to know that before I will embark on the project.

--
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: Solaris 8 issues - 08-30-2005 , 10:05 AM



Ok,

running bootstap I get

bootstrap: ./reconfig: not found.

I just got the 2.0.4 did the configure again, same problem I get the
following

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

When I scan the config.log I see the following intresting errors

1. gcc: -lnsl: linker input files unsused because linking not done.
2.
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

I go to the autoconf list, but I know not know what the question to ask is.
I am just not that familiar with autoconf. So there is some issue with
pulling in the -lnsl library.


Thanks

Jeff
-----Original Message-----
From: plusplus-return-4846-jeff.schweiger=nexgencom.net (AT) lists (DOT) mysql.com
[mailtolusplus-return-4846-jeff.schweiger=nexgencom.net (AT) lists (DOT) mysql.com]
On Behalf Of Warren Young
Sent: Monday, August 29, 2005 8:21 PM
To: MySQL++ Mailing List
Subject: Re: Solaris 8 issues

Jeff Schweiger wrote:
Quote:
bootstrap: test: unknown operator ==
Ugh. Change the == early in the script to a single = sign. It's a
bash-ism.

Quote:
I scanned the entire config.log file, and I see this error repeated
several
times. Thoughout the config.log
Are you saying that you didn't do anything different from your last
message in the other thread where I impugned autoconf to this new thread
where you found the -lnsl message? If there were any steps between, I
need to know them.

Also, please indicate whether or not you intend to take this up on the
autoconf mailing list. I would rather that you did it, but if you
won't, I need to know that before I will embark on the project.

--
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: Solaris 8 issues - 08-30-2005 , 06:34 PM



--------------010703090903010709070109
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit

Jeff Schweiger wrote:
Quote:
bootstrap: ./reconfig: not found.
reconf, surely. I've attached a copy of the script.

But, by the time you hit that error, the important parts of the
bootstrap script have been run. So, don't expect re-running it to solve
any new problems. Now we know you're using the local versions of the
autotools.

Quote:
I go to the autoconf list, but I know not know what the question to ask is.
I'll ask, and you can pipe up on the thread as necessary.

--------------010703090903010709070109
Content-Type: text/plain;
name="reconf"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
filename="reconf"

#!/bin/sh
../configure --enable-maintainer-mode --cache-file=config.cache $*


--------------010703090903010709070109
Content-Type: text/plain; charset=us-ascii


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


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

Default Re: Solaris 8 issues - 08-30-2005 , 10:11 PM



--------------050209080902030809040107
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit

Warren Young wrote:
Quote:
I'll ask, and you can pipe up on the thread as necessary.
Jeff, please apply the attached patch. It's based on Russ's answer on
that thread.

--------------050209080902030809040107
Content-Type: text/plain;
name="libnsl.patch"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
filename="libnsl.patch"

Index: configure.in
================================================== =================
--- configure.in (revision 1079)
+++ configure.in (working copy)
@@ -70,6 +70,7 @@
# Checks for libraries and local system features
AC_CHECK_HEADERS(zlib.h, AC_CHECK_LIB(z, gzread, [],
[ AC_MSG_ERROR([zlib is required]) ]))
+LIB_SOCKET_NSL
MYSQL_API_LOCATION
MYSQL_SHUTDOWN_ARG
AC_CHECK_LIB(intl, main)
Index: config/socket_nsl.m4
================================================== =================
--- config/socket_nsl.m4 (revision 0)
+++ config/socket_nsl.m4 (revision 0)
@@ -0,0 +1,22 @@
+dnl @synopsis LIB_SOCKET_NSL
+dnl
+dnl This macro figures out what libraries are required on this platform
+dnl to link sockets programs.
+dnl
+dnl The common cases are not to need any extra libraries, or to need
+dnl -lsocket and -lnsl. We need to avoid linking with libnsl unless
+dnl we need it, though, since on some OSes where it isn't necessary it
+dnl will totally break networking. Unisys also includes gethostbyname()
+dnl in libsocket but needs libnsl for socket().
+dnl
+dnl @version 1.3, 2005/08/30
+dnl @author Russ Allbery <rra (AT) stanford (DOT) edu> and Warren Young <warren (AT) etr-usa (DOT) com>
+
+AC_DEFUN([LIB_SOCKET_NSL],
+[
+ AC_SEARCH_LIBS([gethostbyname], [nsl])
+ AC_SEARCH_LIBS([socket], [socket], , [
+ AC_CHECK_LIB([nsl], [socket], LIBS="$LIBS -lsocket -lnsl", ,
+ -lsocket)])
+])
+


--------------050209080902030809040107
Content-Type: text/plain; charset=us-ascii


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


Reply With Quote
  #8  
Old   
Jeff Schweiger
 
Posts: n/a

Default RE: Solaris 8 issues - 08-31-2005 , 11:30 AM



I'm a bit confused, where does this patch go?

do I run the following commands

autoconf <the patch you sent me>
and/or is it
autoreconf <the patch you sent me>

I did both, still no luck. Looking at the log files it different errors in
the config file.

I am going to try this stuff on Solaris 9, maybe I will have better luck. I
am not sure why there is such a problem with solaris 8. I hope Solaris 9
will give me better luck.

Jeff

-----Original Message-----
From: plusplus-return-4856-jeff.schweiger=nexgencom.net (AT) lists (DOT) mysql.com
[mailtolusplus-return-4856-jeff.schweiger=nexgencom.net (AT) lists (DOT) mysql.com]
On Behalf Of Warren Young
Sent: Tuesday, August 30, 2005 11:11 PM
To: MySQL++ Mailing List
Subject: Re: Solaris 8 issues

Warren Young wrote:
Quote:
I'll ask, and you can pipe up on the thread as necessary.
Jeff, please apply the attached patch. It's based on Russ's answer on
that thread.


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

Default Re: Solaris 8 issues - 09-01-2005 , 06:16 AM



Jeff Schweiger wrote:
Quote:
I'm a bit confused, where does this patch go?
Save it to a file, and say

$ patch -p0 < whereveryousavedit.patch

Say "man patch" to learn more about the patch command.

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

Default RE: Solaris 8 issues - 09-02-2005 , 01:35 PM



Just an update,

The patch helped a little. I get a different a different error message. The
message is:

ac_nonexistent.h: No such fire of directory and further down the
config.log I see
stdint.h: No such file or directory

and configure still dies because of the following error

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

I've looking into the ac_nonexistent error, but so far, I have been
unsuccessfully with a solution.

Jeff

-----Original Message-----
From: plusplus-return-4864-jeff.schweiger=nexgencom.net (AT) lists (DOT) mysql.com
[mailtolusplus-return-4864-jeff.schweiger=nexgencom.net (AT) lists (DOT) mysql.com]
On Behalf Of Warren Young
Sent: Thursday, September 01, 2005 7:17 AM
To: MySQL++ Mailing List
Subject: Re: Solaris 8 issues

Jeff Schweiger wrote:
Quote:
I'm a bit confused, where does this patch go?
Save it to a file, and say

$ patch -p0 < whereveryousavedit.patch

Say "man patch" to learn more about the patch command.

--
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
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.