--- Jim Grill [EMAIL PROTECTED] wrote:
Hi,
I am trying to compile MySQL. I know that it is
possible to install this
as a binary, that is not my goal.
My environment consists of the following: If there
are other tools that
I need to specify please let me know.
gcc-3.2-7
libgcc-3.2-7
gcc-c++-3.2-7
I run configure as specified at the MySQL site:
From config.log:
./configure --prefix=/usr/local/mysql
--with-extra-charset=complex
--enable-thread-safe-client --enable-local-infile
--enable-assembler
--disable-shared --with-client-ldflags=-all-static
--with-mysqld-ldflags=-all-static
When I run make I receive the following output:
libmysql.c:1850: warning: passing arg 5 of
`gethostbyname_r' from
incompatibleointer type
libmysql.c:1850: too few arguments to function
`gethostbyname_r'
libmysql.c:1850: warning: assignment makes pointer
from integer without
a castmake[2]: *** [libmysql.lo] Error 1
I have googled this error message and the result
include the following
recommendation from MySQL:
This is known problem with RedHat. In order to
build MySQL you need to
have g++
installed from separate RPM
In RedHat 8.0 RPM in quesiton is
gcc-c++-3.2-7.i386.rpm
It appears that I have installed
gcc-c++-3.2-7.i386.rpm as you can see
above from my build environment obtained by:
rpm -qa | grep gcc
Any help or pointers would be greatly appreciated.
Andrew
Looks like you have the right stuff.
Have you tried the following:
(run make distclean before configuring again to be
sure you get a clean
start.)
CFLAGS=-O3 -mcpu=pentiumpro CXX=gcc CXXFLAGS=-O3
-mcpu=pentiumpro \
-felide-constructors -fno-exceptions -fno-rtti \
./configure --your options here
change -mcpu=pentiumpro to suite your system
(i386, i486, i586, i686,
pentium, pentiumpro, k6, or athlon).
Jim Grill
--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:
http://lists.mysql.com/[EMAIL PROTECTED]
OK:
I ran make distclean
I then ran
CFLAGS=-O3 -mcpu=pentiumpro CXX=gcc CXXFLAGS=-O3
-mcpu=pentiumpro \
-felide-constructors -fno-exceptions -fno-rtti
./configure --prefix=/usr/local/mysql
--with-extra-charset=complex
--enable-thread-safe-client --enable-local-infile
--enable-assembler
--disable-shared --with-client-ldflags=-all-static
--with-mysqld-ldflags=-all-static
and got the following error:
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) gawk
checking for gcc... gcc
checking for C compiler default output... configure:
error: C compiler cannot
create executables
See `config.log' for more details.
When I look at config.log I don't see any hints that I
understand.
Here is the part of the file that seems to offer clues
to the initiated.
gcc version 3.2 20020903 (Red Hat Linux 8.0 3.2-7)
configure:2590: $? = 0
configure:2592: gcc -V /dev/null 5
gcc: argument to `-V' is missing
configure:2595: $? = 1
configure:2619: checking for C compiler default output
configure:2622: gcc O3 -mcpu=i686conftest.c 5
gcc: O3: No such file or directory
configure:2625: $? = 1
configure: failed program was:
| #line 2598 configure
Again any help or hints would be greatly appreciated.
Andrew
__
Do you Yahoo!?
New and Improved Yahoo! Mail - 100MB free storage!
http://promotions.yahoo.com/new_mail
--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]