List:General Discussion« Previous MessageNext Message »
From:David Logan Date:September 20 2005 9:03am
Subject:Re: Failure to install on Solaris.
View as plain text  
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.000000000 +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*
> /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 seem to be able to find it. You might like to use crle to put 
the paths in in a more permanent fashion

Regards
David

-- 

David Logan
South Australia

when in trouble, or in doubt
run in circles, scream and shout

Thread
Failure to install on Solaris.Hugh Sasse20 Sep
  • Re: Failure to install on Solaris.David Logan20 Sep
    • Re: Failure to install on Solaris.Hugh Sasse20 Sep
  • Re: Failure to install on Solaris.Pooly20 Sep
    • Re: Failure to install on Solaris.Hugh Sasse20 Sep
      • Re: Failure to install on Solaris.Hugh Sasse20 Sep
  • Re: Failure to install on Solaris.Dan Nelson20 Sep
    • Re: Failure to install on Solaris.Hugh Sasse21 Sep