Bug #65708 source distribution error
Submitted: 22 Jun 2012 10:53 Modified: 22 Jun 2012 13:53
Reporter: rajareddy nag Email Updates:
Status: Not a Bug Impact on me:
None 
Category:MySQL Server: Installing Severity:S1 (Critical)
Version:5.1.57 OS:Linux (source distribution error )
Assigned to: CPU Architecture:Any
Tags: source distribution package installation error

[22 Jun 2012 10:53] rajareddy nag
Description:
[root@maxisdb1 mysql-5.1.57]# ./configure --prefix=/usr/local/mysql
checking build system type... i686-pc-linux-gnuoldld
checking host system type... i686-pc-linux-gnuoldld
checking target system type... i686-pc-linux-gnuoldld
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking how to create a ustar tar archive... gnutar
checking for style of include used by make... GNU
checking for gcc... gcc
checking for C compiler default output file name... 
configure: error: in `/usr/local/mysql-5.1.57':
configure: error: C compiler cannot create executables
See `config.log' for more details.
[root@maxisdb1 mysql-5.1.57]# 

How to repeat:
[root@maxisdb1 mysql-5.1.57]# ./configure --prefix=/usr/local/mysql
checking build system type... i686-pc-linux-gnuoldld
checking host system type... i686-pc-linux-gnuoldld
checking target system type... i686-pc-linux-gnuoldld
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking how to create a ustar tar archive... gnutar
checking for style of include used by make... GNU
checking for gcc... gcc
checking for C compiler default output file name... 
configure: error: in `/usr/local/mysql-5.1.57':
configure: error: C compiler cannot create executables
See `config.log' for more details.
[root@maxisdb1 mysql-5.1.57]# 

Suggested fix:
[root@maxisdb1 mysql-5.1.57]# ./configure --prefix=/usr/local/mysql
checking build system type... i686-pc-linux-gnuoldld
checking host system type... i686-pc-linux-gnuoldld
checking target system type... i686-pc-linux-gnuoldld
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking how to create a ustar tar archive... gnutar
checking for style of include used by make... GNU
checking for gcc... gcc
checking for C compiler default output file name... 
configure: error: in `/usr/local/mysql-5.1.57':
configure: error: C compiler cannot create executables
See `config.log' for more details.
[root@maxisdb1 mysql-5.1.57]#
[22 Jun 2012 11:26] Valeriy Kravchuk
Please, send the output of:

uname -a
gcc --version

commands. 

If you assume that there is some bug in MySQL code, please, make sure it is repeatable with a recent version, 5.1.63.
[22 Jun 2012 11:40] rajareddy nag
[root@maxisdb1 mysql-5.1.57]# gcc --version
gcc (GCC) 4.1.2 20080704 (Red Hat 4.1.2-51)
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
[22 Jun 2012 11:41] rajareddy nag
[root@maxisdb1 mysql-5.1.57]# uname -a
Linux maxisdb1.mailmst.com 2.6.18-308.4.1.el5PAE #1 SMP Tue Apr 17 17:47:38 EDT 2012 i686 i686 i386 GNU/Linux
[22 Jun 2012 12:58] Valeriy Kravchuk
gcc 4.2.1 should work OK for building 5.1.x. Please, upload config.log file created.

Had you tried to build recent version, 5.1.63? Had you tried to build with different --prefix value, like some subdirectory of your home directory?
[22 Jun 2012 13:29] rajareddy nag
i got error in config.log like 

configure:3707: gcc    conftest.c  >&5
as: error while loading shared libraries: libbfd-2.17.50.0.6-14.el5.so: cannot open shared object file: No such file or directory
configure:3711: $? = 1

Can you please give me suggestion
[22 Jun 2012 13:53] Valeriy Kravchuk
I do not see any evidence of any bug in MySQL code so far. Bugs system is not the best place to ask for help to fix your OS and building environment.