Ya know, why is solaris such a pain in the butt. I
have issues, no one appears to be able so answer it.
When i compile this on linux, it works great.
WTF


--- Josh Rivel <[EMAIL PROTECTED]> wrote:
> Hi.
> I am trying to compile MySQL-3.23.38 on Solaris 8
> box.
> This is a Sun Netra T1 (1u rackmount, UltraSPARC-IIe
> CPU)
> 
> I've tried using both Sun's gcc (2.95.2) and
> gcc-2.95.2 from
> www.sunfreeware.com, both with the same results.
> For whatever reason, gcc is being reported as a
> cross compiler,
> so mysql will not compile.  I followed the steps on
> the
> INSTALL-SOURCE file pertaining to this error, but it
> did not help.
> 
> # uname -a
> SunOS web1 5.8 Generic_108528-08 sun4u sparc sun4u
> # gcc -v
> Reading specs from
>
/usr/local/lib/gcc-lib/sparc-sun-solaris2.8/2.95.2/specs
> gcc version 2.95.2 19991024 (release)
> 
> # CC=gcc CFLAGS="-O3 -mcpu=v8 -Wa,-xarch=v8plusa"
> CXX=gcc CXXFLAGS="-O3 -felide-constructors
> -fno-exceptions -fno-rtti -mcpu=v8
> -Wa,-xarch=v8plusa" ./configure
> --prefix=/usr/local/mysql --with-low-memory
> --enable-assembler
> creating cache ./config.cache
> checking host system type... sparc-sun-solaris2.8
> checking target system type... sparc-sun-solaris2.8
> checking build system type... sparc-sun-solaris2.8
> checking for a BSD compatible install...
> ./install-sh -c
> checking whether build environment is sane... yes
> checking whether make sets ${MAKE}... yes
> checking for working aclocal... found
> checking for working autoconf... found
> checking for working automake... found
> checking for working autoheader... found
> checking for working makeinfo... missing
> checking whether to enable maintainer-specific
> portions of Makefiles... no
> checking whether build environment is sane... yes
> checking whether make sets ${MAKE}... (cached) yes
> checking for gawk... no
> checking for mawk... no
> checking for nawk... nawk
> checking for gcc... gcc
> checking whether the C compiler (gcc -O3 -mcpu=v8
> -Wa,-xarch=v8plusa  ) works... yes
> checking whether the C compiler (gcc -O3 -mcpu=v8
> -Wa,-xarch=v8plusa  ) is a cross-compiler... yes
> checking whether we are using GNU C... yes
> checking whether gcc accepts -g... yes
> checking for c++... gcc
> checking whether the C++ compiler (gcc -O3
> -felide-constructors -fno-exceptions -fno-rtti
> -mcpu=v8 -Wa,-xarch=v8plusa  ) works... yes
> checking whether the C++ compiler (gcc -O3
> -felide-constructors -fno-exceptions -fno-rtti
> -mcpu=v8 -Wa,-xarch=v8plusa  ) is a
> cross-compiler... yes
> checking whether we are using GNU C++... yes
> checking whether gcc accepts -g... yes
> checking how to run the C preprocessor... gcc -E
> checking for ranlib... ranlib
> checking for ld used by GCC...
> /usr/local/sparc-sun-solaris2.8/bin/ld
> checking if the linker
> (/usr/local/sparc-sun-solaris2.8/bin/ld) is GNU
> ld... yes
> checking for BSD-compatible nm... /usr/local/bin/nm
> -B
> checking whether ln -s works... yes
> updating cache ./config.cache
> checking for object suffix... o
> checking for executable suffix... no
> checking for gcc option to produce PIC... -fPIC
> checking if gcc PIC flag -fPIC works... yes
> checking if gcc supports -c -o file.o... yes
> checking if gcc supports -c -o file.lo... yes
> checking if gcc supports -fno-rtti -fno-exceptions
> ... yes
> checking if gcc static flag -static works... -static
> checking if the linker
> (/usr/local/sparc-sun-solaris2.8/bin/ld) is GNU
> ld... yes
> checking whether the linker
> (/usr/local/sparc-sun-solaris2.8/bin/ld) supports
> shared libraries... yes
> checking command to parse /usr/local/bin/nm -B
> output... ok
> checking how to hardcode library paths into
> programs... immediate
> checking for /usr/local/sparc-sun-solaris2.8/bin/ld
> option to reload object files... -r
> checking dynamic linker characteristics...
> solaris2.8 ld.so
> checking if libtool supports shared libraries... yes
> checking whether to build shared libraries... yes
> checking whether to build static libraries... yes
> checking for objdir... .libs
> creating libtool
> loading cache ./config.cache
> checking for a BSD compatible install...
> ./install-sh -c
> checking for bison... bison -y
> checking for pdftex... no
> checking return type of sprintf... configure: error:
> can not run test program while cross compiling
> #  
> 
> I've searched the archives, but not found
> anything.... FWIW, with the same
> settings, it compiles fine on an Ultra-5 with
> Solaris 7, also gcc-2.95.2
> 
> -- 
> josh
> 
>       "Experience is the best and usually harshest
> teacher."
>                                       -My Dad.
> 
>
---------------------------------------------------------------------
> Before posting, please check:
>    http://www.mysql.com/manual.php   (the manual)
>    http://lists.mysql.com/           (the list
> archive)
> 
> To request this thread, e-mail
> <[EMAIL PROTECTED]>
> To unsubscribe, e-mail
>
<[EMAIL PROTECTED]>
> Trouble unsubscribing? Try:
> http://lists.mysql.com/php/unsubscribe.php
> 


=====
Mark Vann
CCNP, CCNA, CCDA, MCSE, Network+
Network Engineer

__________________________________________________
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail - only $35 
a year!  http://personal.mail.yahoo.com/

---------------------------------------------------------------------
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/           (the list archive)

To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php

Reply via email to