Re: Solaris 2.8 configure problem...

2001-08-28 Thread Michael Widenius


Hi!

 Sinisa == Sinisa Milivojevic [EMAIL PROTECTED] writes:

Sinisa Jeremy Zawodny writes:
 I have a fairly new Solaris 2.8 (Ultra Sparc) machine on which I'm
 trying to build the MySQL client libraries.  According to the
 INSTALL-SOURCE file, I need to use a command-line like this:
 
 CC=gcc CFLAGS=-O3 CXX=gcc CXXFLAGS=-O3 -felide-constructors -fno-exceptions 
-fno-rtti ./configure --without-server --with-low-memory --enable-assembler  
config.err
 
 When I do that and look at config.err, I see the error message:
 
 configure: error: can not run test program while cross compiling
 
 Here's the whole thing (since the list won't take attachments).  It's
 not too long.
 
 
 According to the INSTALL-SOURCE file, that error means you have
 something wrong with your compiler installation!  But I've already
 used this exact same compiler to bulild a *ton* of other packages on
 the machine.
 
 What can I do to fix/debug this problem?

cut

Sinisa Jeremy, 

Sinisa In our manual, chapter on Solaris, there are instructions on which
Sinisa lines to delete from configure script in the case like above.

Sinisa Just do that !

This was up a short while ago and it seams like Jeremy hasn't yet
updated our documentation regarding this.

Here is the missing information regarding this:


If you are using the SFW version of gcc (which comes
with Solaris 8), you must add /opt/sfw/lib to the
environment variable LD_LIBRARY_PATH before running
configure.
 
If you are using the gcc available from sunfreeware.com,
you may have many problems.  You should recompile gcc
and GNU binutils on the machine you will be running them
from to avoid any problems.

Regards,
Monty

-
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




Solaris 2.8 configure problem...

2001-08-27 Thread Jeremy Zawodny

I have a fairly new Solaris 2.8 (Ultra Sparc) machine on which I'm
trying to build the MySQL client libraries.  According to the
INSTALL-SOURCE file, I need to use a command-line like this:

CC=gcc CFLAGS=-O3 CXX=gcc CXXFLAGS=-O3 -felide-constructors -fno-exceptions 
-fno-rtti ./configure --without-server --with-low-memory --enable-assembler  
config.err

When I do that and look at config.err, I see the error message:

  configure: error: can not run test program while cross compiling

Here's the whole thing (since the list won't take attachments).  It's
not too long.

---snip---

loading 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... (cached) /usr/local/bin/install -c
checking whether build environment is sane... yes
checking whether make sets ${MAKE}... (cached) 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... (cached) nawk
checking for gcc... (cached) gcc
checking whether the C compiler (gcc -O3  ) works... yes
checking whether the C compiler (gcc -O3  ) is a cross-compiler... no
checking whether we are using GNU C... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for c++... (cached) c++
checking whether the C++ compiler (c++ -O3 -felide-constructors -fno-exceptions 
-fno-rtti  ) works... yes
checking whether the C++ compiler (c++ -O3 -felide-constructors -fno-exceptions 
-fno-rtti  ) is a cross-compiler... yes
checking whether we are using GNU C++... (cached) yes
checking whether c++ accepts -g... (cached) yes
checking how to run the C preprocessor... (cached) gcc -E
checking for ranlib... (cached) ranlib
checking for ld used by GCC... (cached) /usr/ccs/bin/ld
checking if the linker (/usr/ccs/bin/ld) is GNU ld... (cached) no
checking for BSD-compatible nm... (cached) /usr/ccs/bin/nm -p
checking whether ln -s works... (cached) yes
loading cache ./config.cache within ltconfig
checking for object suffix... o
checking for executable suffix... (cached) 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/ccs/bin/ld) is GNU ld... no
checking whether the linker (/usr/ccs/bin/ld) supports shared libraries... yes
checking command to parse /usr/ccs/bin/nm -p output... ok
checking how to hardcode library paths into programs... immediate
checking for /usr/ccs/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... /usr/local/bin/install -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

---snip---

According to the INSTALL-SOURCE file, that error means you have
something wrong with your compiler installation!  But I've already
used this exact same compiler to bulild a *ton* of other packages on
the machine.

What can I do to fix/debug this problem?

Thanks,

Jeremy
-- 
Jeremy D. Zawodny, [EMAIL PROTECTED]
Technical Yahoo - Yahoo Finance
Desk: (408) 349-7878   Fax: (408) 349-5454   Cell: (408) 685-5936

MySQL 3.23.41-max: up 10 days, processed 124,283,460 queries (137/sec. avg)

-
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




Re: Solaris 2.8 configure problem...

2001-08-27 Thread Sinisa Milivojevic

Jeremy Zawodny writes:
 I have a fairly new Solaris 2.8 (Ultra Sparc) machine on which I'm
 trying to build the MySQL client libraries.  According to the
 INSTALL-SOURCE file, I need to use a command-line like this:
 
 CC=gcc CFLAGS=-O3 CXX=gcc CXXFLAGS=-O3 -felide-constructors -fno-exceptions 
-fno-rtti ./configure --without-server --with-low-memory --enable-assembler  
config.err
 
 When I do that and look at config.err, I see the error message:
 
   configure: error: can not run test program while cross compiling
 
 Here's the whole thing (since the list won't take attachments).  It's
 not too long.
 
 
 According to the INSTALL-SOURCE file, that error means you have
 something wrong with your compiler installation!  But I've already
 used this exact same compiler to bulild a *ton* of other packages on
 the machine.
 
 What can I do to fix/debug this problem?
 
 Thanks,
 
 Jeremy
 -- 
 Jeremy D. Zawodny, [EMAIL PROTECTED]
 Technical Yahoo - Yahoo Finance
 Desk: (408) 349-7878   Fax: (408) 349-5454   Cell: (408) 685-5936
 
 MySQL 3.23.41-max: up 10 days, processed 124,283,460 queries (137/sec. avg)
 

Jeremy, 

In our manual, chapter on Solaris, there are instructions on which
lines to delete from configure script in the case like above.

Just do that !

-- 
Regards,
   __  ___ ___   __
  /  |/  /_ __/ __/ __ \/ /Mr. Sinisa Milivojevic [EMAIL PROTECTED]
 / /|_/ / // /\ \/ /_/ / /__   MySQL AB, FullTime Developer
/_/  /_/\_, /___/\___\_\___/   Larnaca, Cyprus
   ___/   www.mysql.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




Re: Solaris 2.8 configure problem...

2001-08-27 Thread Jeremy Zawodny

On Mon, Aug 27, 2001 at 09:43:23PM +0300, Sinisa Milivojevic wrote:
 
 Jeremy, 
 
 In our manual, chapter on Solaris, there are instructions on which
 lines to delete from configure script in the case like above.

Right.  I've looked at:

  http://www.mysql.com/doc/S/o/Solaris.html
  http://www.mysql.com/doc/S/o/Solaris_2.7.html

But none of them seem related to the problem I'm having.  I'm using
gcc 2.95.3, not Sun's compiler, so I can rule out a lot of those
problems.

And I'm not even to the point of trying to actually *build* MySQL, so
I can rule out most of the stuff on the 2nd page.  I'm stuck at
./configure.

The only thing that seems to apply is this part:

  If you get the following error from configure: 

checking for restartable system calls... configure: error can not
run test programs while cross compiling

  This means that you have something wrong with your compiler
  installation! In this case you should upgrade your compiler to a
  newer version. You may also be able to solve this problem by
  inserting the following row into the `config.cache' file:

ac_cv_sys_restartable_syscalls=${ac_cv_sys_restartable_syscalls='no'}

  If you are using Solaris on a SPARC, the recommended compiler is gcc
  2.95.2. You can find this at http://gcc.gnu.org/. Note that egcs 1.1.1
  and gcc 2.8.1 don't work reliably on SPARC!

But that's not the error I'm seeing.  I'm not getting that far.

I've looked at config.cache and found this already set:

  ac_cv_prog_cc_cross=${ac_cv_prog_cc_cross='no'}

So I'm not sure why it thinks I'm cross-compiling.

I'll tinker some more, but if anyone knows which setting is messed up,
I'd appreciate knowing.

Thanks,

Jeremy
-- 
Jeremy D. Zawodny, [EMAIL PROTECTED]
Technical Yahoo - Yahoo Finance
Desk: (408) 349-7878   Fax: (408) 349-5454   Cell: (408) 685-5936

MySQL 3.23.41-max: up 10 days, processed 124,728,901 queries (137/sec. avg)

-
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




Re: Solaris 2.8 configure problem...

2001-08-27 Thread Andrew Gideon

In article [EMAIL PROTECTED],
[EMAIL PROTECTED] (Sinisa Milivojevic) writes:
 
 What can I do to fix/debug this problem?

I'd this problem too (and I didn't note lines to be removed in the
documentation).  It turns out that there is in the configure script an
assumption that the inability to produce a working executable implies
that cross compilation is occurring.

This is the case even if the executable fails because a library isn't
where it is expected, or some such.

For me, the problem disappeared when I gave configure precise
instructions for some libraries, such as:

-with-libwrap=/opt/tcp_wrappers/lib/libwrap.a -lnsl -lsocket

This was on 3.23.40.

- Andrew

-
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