Re: Failure to install on Solaris.

2005-09-21 Thread Hugh Sasse

On Tue, 20 Sep 2005, Dan Nelson wrote:


In the last episode (Sep 20), Hugh Sasse said:

So I started again and built using this script:
#!/bin/bash
CFLAGS=-O3 -L$LD_LIBRARY_PATH CXX=gcc MAKE=gmake \
 CXXFLAGS=-O3 -L$LD_LIBRARY_PATH -felide-constructors -fno-exceptions
 -fno-rtti ./configure \
 --prefix=/usr/local/mysql --enable-assembler \
 --enable-thread-safe-client \
 --with-mysqld-ldflags=-all-static --with-tcp-port=3308 \
 --with-unix-socket-path=/tmp/mysql4.sock \
 --with-pthread --with-gnu-ld  \
 gmake  \
 cd mysql-test  ./mysql-test-run --force
 exit


Get rid of the --with-mysqld-ldflags=-all-static flag; Solaris 9
doesn't provide a static pthread, and in Solaris 10, you can't build
static binaries at all:

http://partneradvantage.sun.com/protected/solaris10/adoptionkit/tech/proc.html
http://blogs.sun.com/roller/page/rie/?anchor=static_linking_where_did_it


Thank you. This worked.  I'd like to propose the following patch
against 4.1.13:


neelix hgs 96 % gdiff -u INSTALL-SOURCE INSTALL-SOURCE.new
--- INSTALL-SOURCE  2005-07-15 11:42:14.0 +0100
+++ INSTALL-SOURCE.new  2005-09-21 10:40:23.848026000 +0100
@@ -60,12 +60,16 @@
 `-fno-rtti' along with`-fno-exceptions'. When in doubt, do the
 following:

- CFLAGS=-O3 CXX=gcc CXXFLAGS=-O3 -felide-constructors \
--fno-exceptions -fno-rtti ./configure \
+ CFLAGS=-O3
+ CXX=gcc
+ CXXFLAGS=-O3 -felide-constructors -fno-exceptions -fno-rtti
+ export CFLAGS CXX CXXFLAGS
+ ./configure \
 --prefix=/usr/local/mysql --enable-assembler \
 --with-mysqld-ldflags=-all-static

-On most systems, this gives you a fast and stable binary.
+On most systems, this gives you a fast and stable binary, but avoid
+--with-mysqld-ldflags=-all-static  on Solaris 2.9 and above.

 If you run into problems, _please always use`mysqlbug'_ when
 posting questions to aMySQL mailing list. Even if the problem isn't
neelix hgs 97 %

This is mainly because the variables need to be exported for
recursive make to work correctly, from what I saw.


--
Dan Nelson
[EMAIL PROTECTED]


Thank you,
Hugh


--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]



Failure to install on Solaris.

2005-09-20 Thread Hugh Sasse


On solaris 9 Sparc I built originally by modifying
mysql-4.1.14/BUILD/compile-solaris-sparc thusly

neelix hgs 81 % display_diffs.rb .
--- ./compile-solaris-sparc.orig2005-08-17 18:06:41.0 +0100
+++ ./compile-solaris-sparc 2005-09-06 18:36:25.386697000 +0100
@@ -11,6 +11,6 @@
 (cd gemini  aclocal  autoheader  aclocal  automake  autoconf)
  fi

-CFLAGS=-g -Wimplicit -Wreturn-type -Wswitch -Wtrigraphs -Wcomment -W -Wchar-subscripts 
-Wformat -Wparentheses -Wsign-compare -Wwrite-strings -Wunused  -O3 -fno-omit-frame-pointer 
-mcpu=v8 -Wa,-xarch=v8plusa CXX=gcc CXXFLAGS=-Wimplicit -Wreturn-type -Wswitch 
-Wtrigraphs -Wcomment -W -Wchar-subscripts -Wformat -Wparentheses -Wsign-compare -Wwrite-strings 
-Woverloaded-virtual -Wsign-promo -Wreorder -Wctor-dtor-privacy -Wnon-virtual-dtor 
-felide-constructors -fno-exceptions -fno-rtti  -O3 -fno-omit-frame-pointer -mcpu=v8 
-Wa,-xarch=v8plusa -g ./configure --prefix=/usr/local/mysql --enable-assembler 
--with-extra-charsets=complex --enable-thread-safe-client
+CFLAGS=-g -Wimplicit -Wreturn-type -Wswitch -Wtrigraphs -Wcomment -W -Wchar-subscripts 
-Wformat -Wparentheses -Wsign-compare -Wwrite-strings -Wunused  -O3 -fno-omit-frame-pointer 
-mcpu=v8 -Wa,-xarch=v8plusa CXX=gcc CXXFLAGS=-Wimplicit -Wreturn-type -Wswitch 
-Wtrigraphs -Wcomment -W -Wchar-subscripts -Wformat -Wparentheses -Wsign-compare -Wwrite-strings 
-Woverloaded-virtual -Wsign-promo -Wreorder -Wctor-dtor-privacy -Wnon-virtual-dtor 
-felide-constructors -fno-exceptions -fno-rtti  -O3 -fno-omit-frame-pointer -mcpu=v8 
-Wa,-xarch=v8plusa -g ./configure --prefix=/usr/local/mysql --enable-assembler 
--with-extra-charsets=complex --enable-thread-safe-client --with-tcp-port=3308 
--with-unix-socket-path=/tmp/mysql4.sock --prefix=/usr/local/mysql-4.1.14

  gmake -j 4
neelix hgs 82 %
and I invoked the script directly, and also tried with bash.
I have:

GNU Make version 3.79.1, by Richard Stallman and Roland McGrath.
Built for sparc-sun-solaris2.9

gcc (GCC) 3.4.3


This got as far as the test phase, and tested successfully.  I did
it this way because of the solaris settings being collected
together.  However, when I installed, parts of the installation
overwrote /usr/local/mysql despite my --prefix.  I already have a
mysql setup there that I didn't want disturbed.

So I started again and built using this script:
#!/bin/bash
CFLAGS=-O3 -L$LD_LIBRARY_PATH CXX=gcc MAKE=gmake \
 CXXFLAGS=-O3 -L$LD_LIBRARY_PATH -felide-constructors -fno-exceptions 
-fno-rtti ./configure \
 --prefix=/usr/local/mysql --enable-assembler \
 --enable-thread-safe-client \
 --with-mysqld-ldflags=-all-static --with-tcp-port=3308 \
 --with-unix-socket-path=/tmp/mysql4.sock \
 --with-pthread --with-gnu-ld  \
 gmake  \
 cd mysql-test  ./mysql-test-run --force
 exit

My LD_LIBRARY_PATH is

/progs/SUNWspro/lib:/usr/local/lib:/usr/local/lib/sparcv9:/usr/lib:/usr/share/lib:/usr/dt/lib:/usr/openwin/lib:/opt/panorama/lib:/opt/sfw/lib

This blows up with:

gmake[4]: Leaving directory `/scratch/hgs/mysql-4.1.13/sql/share'
gmake[4]: Entering directory `/scratch/hgs/mysql-4.1.13/sql'
/bin/bash ../libtool --preserve-dup-deps --mode=link gcc  -O3 -DDBUG_OFF -O3 
-L/progs/SUNWspro/lib:/usr/local/lib:/usr/local/lib/sparcv9:/usr/lib:/usr/share/lib:/usr/dt/lib:/usr/openwin/lib:/opt/panorama/lib:/opt/sfw/lib
 -felide-constructors -fno-exceptions -fno-rtti   -fno-implicit-templates 
-fno-exceptions -fno-rtti -DUSE_MYSYS_NEW -DDEFINE_CXA_PURE_VIRTUAL 
-D_FILE_OFFSET_BITS=64 -DHAVE_RWLOCK_T   -o mysql_tzinfo_to_sql  
mysql_tzinfo_to_sql.o -all-static ../myisam/libmyisam.a 
../myisammrg/libmyisammrg.a ../heap/libheap.a ../vio/libvio.a 
../mysys/libmysys.a ../dbug/libdbug.a ../regex/libregex.a 
../strings/libmystrings.a -lz   -lpthread -lposix4 -lcrypt -lgen -lsocket -lnsl 
-lm  -lpthread
gcc -O3 -DDBUG_OFF -O3 -felide-constructors -fno-exceptions -fno-rtti 
-fno-implicit-templates -fno-exceptions -fno-rtti -DUSE_MYSYS_NEW 
-DDEFINE_CXA_PURE_VIRTUAL -D_FILE_OFFSET_BITS=64 -DHAVE_RWLOCK_T -o 
mysql_tzinfo_to_sql mysql_tzinfo_to_sql.o -static  
-L/progs/SUNWspro/lib:/usr/local/lib:/usr/local/lib/sparcv9:/usr/lib:/usr/share/lib:/usr/dt/lib:/usr/openwin/lib:/opt/panorama/lib:/opt/sfw/lib
 ../myisam/libmyisam.a ../myisammrg/libmyisammrg.a ../heap/libheap.a 
../vio/libvio.a ../mysys/libmysys.a ../dbug/libdbug.a ../regex/libregex.a 
../strings/libmystrings.a -lz -lpthread -lposix4 -lcrypt -lgen -lsocket -lnsl 
-lm -lpthread
/usr/local/bin/ld: cannot find -lpthread
collect2: ld returned 1 exit status
gmake[4]: *** [mysql_tzinfo_to_sql] Error 1
gmake[4]: Leaving directory `/scratch/hgs/mysql-4.1.13/sql'
gmake[3]: *** [all-recursive] Error 1
gmake[3]: Leaving directory `/scratch/hgs/mysql-4.1.13/sql'
gmake[2]: *** [all] Error 2
gmake[2]: Leaving directory `/scratch/hgs/mysql-4.1.13/sql'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/scratch/hgs/mysql-4.1.13'
gmake: *** [all] Error 2
neelix hgs 57 % ls /usr/lib/*pthread*

Re: Failure to install on Solaris.

2005-09-20 Thread David Logan

Hugh Sasse wrote:



On solaris 9 Sparc I built originally by modifying
mysql-4.1.14/BUILD/compile-solaris-sparc thusly

neelix hgs 81 % display_diffs.rb .
--- ./compile-solaris-sparc.orig 2005-08-17 18:06:41.0 +0100
+++ ./compile-solaris-sparc 2005-09-06 18:36:25.386697000 +0100
@@ -11,6 +11,6 @@
(cd gemini  aclocal  autoheader  aclocal  automake  autoconf)
fi

-CFLAGS=-g -Wimplicit -Wreturn-type -Wswitch -Wtrigraphs -Wcomment -W 
-Wchar-subscripts -Wformat -Wparentheses -Wsign-compare 
-Wwrite-strings -Wunused -O3 -fno-omit-frame-pointer -mcpu=v8 
-Wa,-xarch=v8plusa CXX=gcc CXXFLAGS=-Wimplicit -Wreturn-type 
-Wswitch -Wtrigraphs -Wcomment -W -Wchar-subscripts -Wformat 
-Wparentheses -Wsign-compare -Wwrite-strings -Woverloaded-virtual 
-Wsign-promo -Wreorder -Wctor-dtor-privacy -Wnon-virtual-dtor 
-felide-constructors -fno-exceptions -fno-rtti -O3 
-fno-omit-frame-pointer -mcpu=v8 -Wa,-xarch=v8plusa -g ./configure 
--prefix=/usr/local/mysql --enable-assembler 
--with-extra-charsets=complex --enable-thread-safe-client
+CFLAGS=-g -Wimplicit -Wreturn-type -Wswitch -Wtrigraphs -Wcomment -W 
-Wchar-subscripts -Wformat -Wparentheses -Wsign-compare 
-Wwrite-strings -Wunused -O3 -fno-omit-frame-pointer -mcpu=v8 
-Wa,-xarch=v8plusa CXX=gcc CXXFLAGS=-Wimplicit -Wreturn-type 
-Wswitch -Wtrigraphs -Wcomment -W -Wchar-subscripts -Wformat 
-Wparentheses -Wsign-compare -Wwrite-strings -Woverloaded-virtual 
-Wsign-promo -Wreorder -Wctor-dtor-privacy -Wnon-virtual-dtor 
-felide-constructors -fno-exceptions -fno-rtti -O3 
-fno-omit-frame-pointer -mcpu=v8 -Wa,-xarch=v8plusa -g ./configure 
--prefix=/usr/local/mysql --enable-assembler 
--with-extra-charsets=complex --enable-thread-safe-client 
--with-tcp-port=3308 --with-unix-socket-path=/tmp/mysql4.sock 
--prefix=/usr/local/mysql-4.1.14


gmake -j 4
neelix hgs 82 %
and I invoked the script directly, and also tried with bash.
I have:

GNU Make version 3.79.1, by Richard Stallman and Roland McGrath.
Built for sparc-sun-solaris2.9

gcc (GCC) 3.4.3


This got as far as the test phase, and tested successfully. I did
it this way because of the solaris settings being collected
together. However, when I installed, parts of the installation
overwrote /usr/local/mysql despite my --prefix. I already have a
mysql setup there that I didn't want disturbed.

So I started again and built using this script:
#!/bin/bash
CFLAGS=-O3 -L$LD_LIBRARY_PATH CXX=gcc MAKE=gmake \
CXXFLAGS=-O3 -L$LD_LIBRARY_PATH -felide-constructors -fno-exceptions 
-fno-rtti ./configure \

--prefix=/usr/local/mysql --enable-assembler \
--enable-thread-safe-client \
--with-mysqld-ldflags=-all-static --with-tcp-port=3308 \
--with-unix-socket-path=/tmp/mysql4.sock \
--with-pthread --with-gnu-ld  \
gmake  \
cd mysql-test  ./mysql-test-run --force
exit

My LD_LIBRARY_PATH is

/progs/SUNWspro/lib:/usr/local/lib:/usr/local/lib/sparcv9:/usr/lib:/usr/share/lib:/usr/dt/lib:/usr/openwin/lib:/opt/panorama/lib:/opt/sfw/lib 



This blows up with:

gmake[4]: Leaving directory `/scratch/hgs/mysql-4.1.13/sql/share'
gmake[4]: Entering directory `/scratch/hgs/mysql-4.1.13/sql'
/bin/bash ../libtool --preserve-dup-deps --mode=link gcc -O3 
-DDBUG_OFF -O3 
-L/progs/SUNWspro/lib:/usr/local/lib:/usr/local/lib/sparcv9:/usr/lib:/usr/share/lib:/usr/dt/lib:/usr/openwin/lib:/opt/panorama/lib:/opt/sfw/lib 
-felide-constructors -fno-exceptions -fno-rtti -fno-implicit-templates 
-fno-exceptions -fno-rtti -DUSE_MYSYS_NEW -DDEFINE_CXA_PURE_VIRTUAL 
-D_FILE_OFFSET_BITS=64 -DHAVE_RWLOCK_T -o mysql_tzinfo_to_sql 
mysql_tzinfo_to_sql.o -all-static ../myisam/libmyisam.a 
../myisammrg/libmyisammrg.a ../heap/libheap.a ../vio/libvio.a 
../mysys/libmysys.a ../dbug/libdbug.a ../regex/libregex.a 
../strings/libmystrings.a -lz -lpthread -lposix4 -lcrypt -lgen 
-lsocket -lnsl -lm -lpthread
gcc -O3 -DDBUG_OFF -O3 -felide-constructors -fno-exceptions -fno-rtti 
-fno-implicit-templates -fno-exceptions -fno-rtti -DUSE_MYSYS_NEW 
-DDEFINE_CXA_PURE_VIRTUAL -D_FILE_OFFSET_BITS=64 -DHAVE_RWLOCK_T -o 
mysql_tzinfo_to_sql mysql_tzinfo_to_sql.o -static 
-L/progs/SUNWspro/lib:/usr/local/lib:/usr/local/lib/sparcv9:/usr/lib:/usr/share/lib:/usr/dt/lib:/usr/openwin/lib:/opt/panorama/lib:/opt/sfw/lib 
../myisam/libmyisam.a ../myisammrg/libmyisammrg.a ../heap/libheap.a 
../vio/libvio.a ../mysys/libmysys.a ../dbug/libdbug.a 
../regex/libregex.a ../strings/libmystrings.a -lz -lpthread -lposix4 
-lcrypt -lgen -lsocket -lnsl -lm -lpthread

/usr/local/bin/ld: cannot find -lpthread
collect2: ld returned 1 exit status
gmake[4]: *** [mysql_tzinfo_to_sql] Error 1
gmake[4]: Leaving directory `/scratch/hgs/mysql-4.1.13/sql'
gmake[3]: *** [all-recursive] Error 1
gmake[3]: Leaving directory `/scratch/hgs/mysql-4.1.13/sql'
gmake[2]: *** [all] Error 2
gmake[2]: Leaving directory `/scratch/hgs/mysql-4.1.13/sql'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/scratch/hgs/mysql-4.1.13'
gmake: *** [all] Error 2
neelix hgs 57 % ls /usr/lib/*pthread*

Re: Failure to install on Solaris.

2005-09-20 Thread Pooly
Hi,


 /usr/local/bin/ld: cannot find -lpthread
 collect2: ld returned 1 exit status
 gmake[4]: *** [mysql_tzinfo_to_sql] Error 1
 gmake[4]: Leaving directory `/scratch/hgs/mysql-4.1.13/sql'
 gmake[3]: *** [all-recursive] Error 1
 gmake[3]: Leaving directory `/scratch/hgs/mysql-4.1.13/sql'
 gmake[2]: *** [all] Error 2
 gmake[2]: Leaving directory `/scratch/hgs/mysql-4.1.13/sql'
 gmake[1]: *** [all-recursive] Error 1
 gmake[1]: Leaving directory `/scratch/hgs/mysql-4.1.13'
 gmake: *** [all] Error 2
 neelix hgs 57 % ls /usr/lib/*pthread*
 /usr/lib/libpthread.so /usr/lib/llib-lpthread
 /usr/lib/libpthread.so.1   /usr/lib/llib-lpthread.ln
 neelix hgs 58 %
 
 
 Any suggestions as to how I get around this and get the whole thing
 installed in /usr/local/mysql-4.1.13 ?

Have you installed the development package for the pthread library ?
I guess you're missing libpthread.a which is needed even for a dynamic
linking, the linker can't do it's job here.

-- 
Pooly
Webzine Rock : http://www.w-fenec.org/

--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]



Re: Failure to install on Solaris.

2005-09-20 Thread Hugh Sasse

On Tue, 20 Sep 2005, David Logan wrote:


Hugh Sasse wrote:



On solaris 9 Sparc I built originally by modifying
mysql-4.1.14/BUILD/compile-solaris-sparc thusly
[...] 

gmake -j 4
neelix hgs 82 %
and I invoked the script directly, and also tried with bash.
I have:

GNU Make version 3.79.1, by Richard Stallman and Roland McGrath.
Built for sparc-sun-solaris2.9

gcc (GCC) 3.4.3


[...]

So I started again and built using this script:
#!/bin/bash
CFLAGS=-O3 -L$LD_LIBRARY_PATH CXX=gcc MAKE=gmake \
CXXFLAGS=-O3 -L$LD_LIBRARY_PATH -felide-constructors -fno-exceptions 
--with-pthread --with-gnu-ld  \

[...]


My LD_LIBRARY_PATH is

/progs/SUNWspro/lib:/usr/local/lib:/usr/local/lib/sparcv9:/usr/lib:/usr/share/lib:/usr/dt/lib:/usr/openwin/lib:/opt/panorama/lib:/opt/sfw/lib

 


This blows up with:


[...]
gcc -O3 -DDBUG_OFF -O3 -felide-constructors -fno-exceptions -fno-rtti 
-fno-implicit-templates -fno-exceptions -fno-rtti -DUSE_MYSYS_NEW 
-DDEFINE_CXA_PURE_VIRTUAL -D_FILE_OFFSET_BITS=64 -DHAVE_RWLOCK_T -o 
mysql_tzinfo_to_sql mysql_tzinfo_to_sql.o -static 
-L/progs/SUNWspro/lib:/usr/local/lib:/usr/local/lib/sparcv9:/usr/lib:/usr/share/lib:/usr/dt/lib:/usr/openwin/lib:/opt/panorama/lib:/opt/sfw/lib 
../myisam/libmyisam.a ../myisammrg/libmyisammrg.a ../heap/libheap.a 
../vio/libvio.a ../mysys/libmysys.a ../dbug/libdbug.a ../regex/libregex.a 
../strings/libmystrings.a -lz -lpthread -lposix4 -lcrypt -lgen -lsocket 
-lnsl -lm -lpthread

/usr/local/bin/ld: cannot find -lpthread
collect2: ld returned 1 exit status
gmake[4]: *** [mysql_tzinfo_to_sql] Error 1
gmake[4]: Leaving directory `/scratch/hgs/mysql-4.1.13/sql'
gmake[3]: *** [all-recursive] Error 1
gmake[3]: Leaving directory `/scratch/hgs/mysql-4.1.13/sql'
gmake[2]: *** [all] Error 2
gmake[2]: Leaving directory `/scratch/hgs/mysql-4.1.13/sql'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/scratch/hgs/mysql-4.1.13'
gmake: *** [all] Error 2




neelix hgs 57 % ls /usr/lib/*pthread*
/usr/lib/libpthread.so /usr/lib/llib-lpthread
/usr/lib/libpthread.so.1 /usr/lib/llib-lpthread.ln
neelix hgs 58 %


Any suggestions as to how I get around this and get the whole thing
installed in /usr/local/mysql-4.1.13 ?

Thank you,
Hugh


Hi Hugh,

Do you have the pthread library path in the -L path somewhere? It doesn't


Yes, it is in $LD_LIBARY_PATH above.


seem to be able to find it.


Well, it does for some of the work, but not at the stage it fails.

You might like to use crle to put the paths in in 
a more permanent fashion


Possibly, but that only works for sun's ld, and GNU ld is being
found by configure.  AFAICS GNU ld doesn't make use of
$LD_LIBARY_PATH, hence the -L.


Regards
David


Thank you,
Hugh

--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]



Re: Failure to install on Solaris.

2005-09-20 Thread Hugh Sasse

On Tue, 20 Sep 2005, Pooly wrote:


Hi,



gmake: *** [all] Error 2
neelix hgs 57 % ls /usr/lib/*pthread*
/usr/lib/libpthread.so /usr/lib/llib-lpthread
/usr/lib/libpthread.so.1   /usr/lib/llib-lpthread.ln
neelix hgs 58 %


Any suggestions as to how I get around this and get the whole thing
installed in /usr/local/mysql-4.1.13 ?


Have you installed the development package for the pthread library ?


Not explicitly.  I have not explicitly installed pthread either.
These in /usr/lib must be supplied by Sun, I think.

Where do I get it (What's the package called, do I need a certain
version to go with 4.1.13, etc)?


I guess you're missing libpthread.a which is needed even for a dynamic


I don't know enough about pthread to know why I should need a .a
when I have a .so : they are both libraries

Why did it build the first time around, then?


linking, the linker can't do it's job here.

--
Pooly


Thank you,
Hugh

--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]



Re: Failure to install on Solaris.

2005-09-20 Thread Hugh Sasse

On Tue, 20 Sep 2005, Hugh Sasse wrote:


On Tue, 20 Sep 2005, Pooly wrote:


Hi,



gmake: *** [all] Error 2
neelix hgs 57 % ls /usr/lib/*pthread*
/usr/lib/libpthread.so /usr/lib/llib-lpthread
/usr/lib/libpthread.so.1   /usr/lib/llib-lpthread.ln
neelix hgs 58 %


[...]

I guess you're missing libpthread.a which is needed even for a dynamic


I don't know enough about pthread to know why I should need a .a
when I have a .so : they are both libraries

Why did it build the first time around, then?


And I get, adding -t to LDFLAGS,

configure:25912: checking named thread libs:
configure:25919: result: -lpthread
configure:26155: checking for strtok_r in -lpthread
configure:26185: gcc -o conftest -O3 
-L/progs/SUNWspro/lib:/usr/local/lib:/usr/local/lib/sparcv9:/usr/lib:/usr/share/lib:/usr/dt/lib:/usr/openwin/lib:/opt/panorama/lib:/opt/sfw/lib
 -t   -D_FILE_OFFSET_BITS=64 -DHAVE_RWLOCK_T  
-L/progs/SUNWspro/lib:/usr/local/lib:/usr/local/lib/sparcv9:/usr/lib:/usr/share/lib:/usr/dt/lib:/usr/openwin/lib:/opt/panorama/lib:/opt/sfw/lib
  conftest.c -lpthread  -lpthread -lposix4 -lcrypt -lgen -lsocket -lnsl -lm  -lpthread 
5
/usr/local/bin/ld: mode elf32_sparc
/usr/local/lib/gcc/sparc-sun-solaris2.9/3.4.3/crt1.o
/usr/local/lib/gcc/sparc-sun-solaris2.9/3.4.3/crti.o
/usr/ccs/lib/values-Xa.o
/usr/local/lib/gcc/sparc-sun-solaris2.9/3.4.3/crtbegin.o
/var/tmp//ccGJWR1E.o
-lpthread (/usr/lib/libpthread.so)
-lpthread (/usr/lib/libpthread.so)
-lposix4 (/usr/lib/libposix4.so)
-lcrypt (/usr/lib/libcrypt.so)
-lgen (/usr/ccs/lib/libgen.so)
-lsocket (/usr/lib/libsocket.so)
-lnsl (/usr/lib/libnsl.so)
-lm (/usr/lib/libm.so)
-lpthread (/usr/lib/libpthread.so)
-lc (/usr/lib/libc.so)
-lc (/usr/lib/libc.so)
/usr/local/lib/gcc/sparc-sun-solaris2.9/3.4.3/crtend.o
/usr/local/lib/gcc/sparc-sun-solaris2.9/3.4.3/crtn.o
configure:26191: $? = 0
configure:26195: test -z
 || test ! -s conftest.err
configure:26198: $? = 0
configure:26201: test -s conftest
configure:26204: $? = 0
configure:26217: result: yes

in configure.log.



linking, the linker can't do it's job here.

--
Pooly


Hugh





--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]



Re: Failure to install on Solaris.

2005-09-20 Thread Dan Nelson
In the last episode (Sep 20), Hugh Sasse said:
 This got as far as the test phase, and tested successfully.  I did it
 this way because of the solaris settings being collected together. 
 However, when I installed, parts of the installation overwrote
 /usr/local/mysql despite my --prefix.  I already have a mysql setup
 there that I didn't want disturbed.
 
 So I started again and built using this script:
 #!/bin/bash
 CFLAGS=-O3 -L$LD_LIBRARY_PATH CXX=gcc MAKE=gmake \
  CXXFLAGS=-O3 -L$LD_LIBRARY_PATH -felide-constructors -fno-exceptions 
  -fno-rtti ./configure \
  --prefix=/usr/local/mysql --enable-assembler \
  --enable-thread-safe-client \
  --with-mysqld-ldflags=-all-static --with-tcp-port=3308 \
  --with-unix-socket-path=/tmp/mysql4.sock \
  --with-pthread --with-gnu-ld  \
  gmake  \
  cd mysql-test  ./mysql-test-run --force
  exit

Get rid of the --with-mysqld-ldflags=-all-static flag; Solaris 9
doesn't provide a static pthread, and in Solaris 10, you can't build
static binaries at all:

http://partneradvantage.sun.com/protected/solaris10/adoptionkit/tech/proc.html
http://blogs.sun.com/roller/page/rie/?anchor=static_linking_where_did_it

-- 
Dan Nelson
[EMAIL PROTECTED]

-- 
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]