Hello,

when trying to compile mysql-3.23.37 on solaris 8, using either just
./configure or

CC=gcc CXX=gcc CXXFLAGS=-O3
./configure --prefix=/usr/local/mysql --with-low-memory --with-extra-charset
s=complex

I get the message:

checking return type of sprintf... configure: error: can not run test
program while cross compiling

I am using GNU Make version 3.78.1 and gcc version 2.95.3. The mysql is
fresh off the website.


My config.log file is:

configure:812: checking host system type
configure:833: checking target system type
configure:851: checking build system type
configure:886: checking for a BSD compatible install
configure:939: checking whether build environment is sane
configure:974: checking whether make sets ${MAKE}
configure:1020: checking for working aclocal
configure:1033: checking for working autoconf
configure:1046: checking for working automake
configure:1059: checking for working autoheader
configure:1072: checking for working makeinfo
configure:1174: checking whether to enable maintainer-specific portions of
Makefiles
configure:1216: checking whether build environment is sane
configure:1233: checking whether make sets ${MAKE}
configure:1301: checking for gawk
configure:1333: checking for gcc
configure:1446: checking whether the C compiler (gcc   ) works
configure:1462: gcc -o conftest     conftest.c  1>&5
configure:1488: checking whether the C compiler (gcc   ) is a cross-compiler
configure:1493: checking whether we are using GNU C
configure:1521: checking whether gcc accepts -g
configure:1557: checking for c++
configure:1589: checking whether the C++ compiler (c++ -O3  ) works
configure:1605: c++ -o conftest -O3    conftest.C  1>&5
configure:1631: checking whether the C++ compiler (c++ -O3  ) is a
cross-compiler
configure:1636: checking whether we are using GNU C++
configure:1664: checking whether c++ accepts -g
configure:1696: checking how to run the C preprocessor
configure:1821: checking for ranlib
configure:1931: checking for ld used by GCC
configure:1993: checking if the linker (/usr/ccs/bin/ld) is GNU ld
configure:2009: checking for BSD-compatible nm
configure:2045: checking whether ln -s works
ltconfig:603: checking for object suffix
ltconfig:604: gcc -c    conftest.c 1>&5
ltconfig:629: checking for executable suffix
ltconfig:630: gcc -o conftest     conftest.c  1>&5
ltconfig:776: checking if gcc PIC flag -fPIC works
ltconfig:777: gcc -c   -fPIC -DPIC  conftest.c 1>&5
ltconfig:829: checking if gcc supports -c -o file.o
ltconfig:830: gcc -c   -o out/conftest2.o  conftest.c 1>&5
ltconfig:862: checking if gcc supports -c -o file.lo
ltconfig:863: gcc -c   -c -o conftest.lo  conftest.c 1>&5
ltconfig:914: checking if gcc supports -fno-rtti -fno-exceptions
ltconfig:915: gcc -c   -fno-rtti -fno-exceptions -c conftest.c  conftest.c
1>&5
ltconfig:958: checking if gcc static flag -static works
ltconfig:959: gcc -o conftest     -static conftest.c  1>&5
ltconfig:1653: checking if global_symbol_pipe works
ltconfig:1654: gcc -c    conftest.c 1>&5
ltconfig:1657: eval "/usr/ccs/bin/nm -p conftest.o | sed -n -e
/^.*[  ]\([BDT]\)[     ][      ]*\(\)\([_A-Za-z][_A-Za-z0-9]*\)$/\1
 \2\3 \3/p' > conftest.nm"
ltconfig:1709: gcc -o conftest   -fno-builtin -fno-rtti -fno-exceptions
conftest.c conftstm.o 1>&5
configure:2250: checking for a BSD compatible install
configure:2308: checking for bison
configure:2308: checking for byacc
configure:2341: checking for pdftex
configure:2369: checking return type of sprintf

I tried the tips in the mysql manual, including doing

CFLAGS="-O6 -mpentiumpro" CXX=gcc
CXXFLAGS="-O6 -mpentiumpro -felide-constructors -fno-exceptions -fno-rtti"
./configure --prefix=/usr/local/mysql --enable-assembler --with-mysqld-ldfla
gs=-all-static

or adding the line to the config.cache file.

Any ideas?

Thanks,

                Jan

--
jan miczaika
project49 AG


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