Bug #37423 MySQL-5.1.25-0.glibc23.src.rpm doesn't compile on Fedora 9 i386
Submitted: 16 Jun 2008 7:56 Modified: 27 Apr 2018 11:24
Reporter: adam williams Email Updates:
Status: Unsupported Impact on me:
None 
Category:MySQL Server: Compiling Severity:S2 (Serious)
Version:5.1.25 OS:Linux (Fedora 9 i386)
Assigned to: CPU Architecture:Any

[16 Jun 2008 7:56] adam williams
Description:
mysql 5.1.25 source rpm at http://dev.mysql.com/get/Downloads/MySQL-5.1/MySQL-5.1.25-0.glibc23.src.rpm/from/pick#mirr... does not compile on fedora 9 i386

+ make install DESTDIR=/var/tmp/MySQL-5.1.25-build benchdir_root=/usr/share
make: *** No rule to make target `install'.  Stop.
+ mv '/var/tmp/MySQL-5.1.25-build//usr/lib/mysql/*.so*' /var/tmp/MySQL-5.1.25-build//usr/lib/
mv: cannot stat `/var/tmp/MySQL-5.1.25-build//usr/lib/mysql/*.so*': No such file or directory
error: Bad exit status from /var/tmp/rpm-tmp.49889 (%install)

How to repeat:
rpmbuild --rebuild MySQL-5.1.25-0.glibc23.src.rpm

Suggested fix:
not sure
[16 Jun 2008 8:08] Susanne Ebrecht
Many thanks for writing a bug report.

What exactly are you doing?

When you want to compile MySQL then you have to get the sources:

http://dev.mysql.com/downloads/mysql/5.1.html
Then the last chapter: Source downloads
and then: Compressed GNU TAR archive (tar.gz)

When you want to install a binary packages then you have to install as typical on your OS. Usually, when you want to install a rpm then its just:
$ rpm -i PACKAGE_NAME.rpm

How to install a rpm you can find here:
http://dev.mysql.com/doc/refman/5.1/en/linux-rpm.html

Please let us know, if this was your error.
[16 Jun 2008 8:17] adam williams
at the 2nd link you provided it says:

MySQL-VERSION.src.rpm

This contains the source code for all of the previous packages. It can also be used to rebuild the RPMs on other architectures (for example, Alpha or SPARC).

and you will notice I downloaded the MySQL-5.1.25-0.glibc23.src.rpm source package and am rebuilding it into the binary package, and it gets to that point and errors out in the build process.
[16 Jun 2008 9:38] Joerg Bruehe
Trying to repeat this locally ...
[16 Jun 2008 15:40] Joerg Bruehe
I tried to reproduce this locally, using the same source RPM and command line,
but the attempt failed (= the build succeeded).

The relevant lines from my log:

.....
+ install -d /var/tmp/MySQL-5.1.25-build/usr/sbin
+ cd /usr/src/packages/BUILD/mysql-5.1.25-rc/mysql-release-5.1.25-rc
+ make install DESTDIR=/var/tmp/MySQL-5.1.25-build benchdir_root=/usr/share
Making install in .
make[1]: Entering directory
    `/usr/src/packages/BUILD/mysql-5.1.25-rc/mysql-release-5.1.25-rc'
make[2]: Entering directory
    `/usr/src/packages/BUILD/mysql-5.1.25-rc/mysql-release-5.1.25-rc'
make[2]: Nothing to be done for `install-exec-am'.
.....

I don't have Fedora available here, this was done on SuSE 10.3
We may need some Fedora user to try to reproduce it.

I can think of two possible sources for Adam's problems:
a) The versions of the autotols,
b) some difference in "rpmbuild" itself.

So here is my software version list:
   > rpm -qa | egrep 'auto|rpm|make' | sort
   autoconf-2.61-47
   autofs-5.0.2-30.2
   automake-1.10-46
   autoyast2-2.15.17-17
   autoyast2-installation-2.15.17-17
   cups-autoconfig-0.1.0-27.2
   deltarpm-3.4-36
   make-3.81-66
   rpm-4.4.2-140
[16 Jun 2008 15:59] adam williams
this is what I have:

[root@missioncontrol ~]# rpm -qa | egrep 'auto|rpm|make' | sort
autoconf213-2.13-18.fc8.noarch
autoconf-2.61-10.fc9.noarch
automake-1.10.1-2.noarch
automake15-1.5-23.noarch
imake-1.0.2-6.fc9.i386
make-3.81-12.fc9.i386
pmake-1.45-16.i386
redhat-rpm-config-9.0.2-1.fc9.noarch
rpm-4.4.2.3-2.fc9.i386
rpm-build-4.4.2.3-2.fc9.i386
rpm-devel-4.4.2.3-2.fc9.i386
rpm-libs-4.4.2.3-2.fc9.i386
rpm-python-4.4.2.3-2.fc9.i386

i can install fedora 9 in a virtual machine and re-test if you want.
[3 Aug 2008 18:14] Valeriy Kravchuk
Please, try to repeat with a newer version, 5.1.26, and inform about the results.
[3 Aug 2008 20:20] adam williams
error from 5.1.26 compile on fedora 9 i386

Attachment: 5.1.26 compile.txt (text/plain), 9.05 KiB.

[3 Aug 2008 20:22] adam williams
compiling 5.1.26 fails.  I've attached 5.1.26 compile.txt with an output of the error. thanks.
[4 Aug 2008 9:50] Alexander Keremidarski
rpmbuild does the job just fine on my Fedora 9 with the same build tools, but x86_64:

# rpm -qa | egrep 'auto|rpm|make' | sort
autoconf-2.61-10.fc9.noarch
automake-1.10.1-2.noarch
automake17-1.7.9-11.noarch
make-3.81-12.fc9.x86_64
redhat-rpm-config-9.0.2-1.fc9.noarch
rpm-4.4.2.3-2.fc9.x86_64
rpm-build-4.4.2.3-2.fc9.x86_64
rpm-devel-4.4.2.3-2.fc9.x86_64
rpm-libs-4.4.2.3-2.fc9.x86_64
rpm-python-4.4.2.3-2.fc9.x86_64

The rpmbuild --rebuild output is long, but ends with
+ exit 0

also all the RPMs are ready.

Perhaps there is some "hidden" dependency with some library or tool outside of auto-chain.
[4 Aug 2008 10:08] Susanne Ebrecht
Unfortunately, we don't have a Fedora i386 test machine at the moment ...
We will setup an environment to test it with Fedora i386 again.
[1 Dec 2008 10:37] Predrag Mutavdzic
I have exactly the same problem (with ./support-files/mysql.spec on Fedora 9), although slightly different approach in building RPM packeges from source. Instead of using SRPMS I checked out the latest 5.1 from bazaar repository:

1. Locat build (BUILD/autorun.sh; configure; make) works as expected
2. Creating "pristine-source" (make distrib-gzip) produces *.tar.gz
3. rpmbuild -ba (using above mentioned mysql.spec) fails "on the runway"
...
+ cd /usr/src/redhat/BUILD/mysql-5.1.31/mysql-release-5.1.31
+ make install DESTDIR=/var/tmp/MySQL-5.1.31-build benchdir_root=/usr/share
make: *** No rule to make target `install'.  Stop.
+ mv '/var/tmp/MySQL-5.1.31-build//usr/lib/mysql/*.so*' /var/tmp/MySQL-5.1.31-build//usr/lib/
...

It does what it "says on the tin", no Makefiles are there, so I suspect something wrong went on during the %build stage (i.e. "configure" didn't 
happened). I shall investigate this myself, meanwhile, if someone has hints please let us all know.

Fred
[23 Jun 2009 11:10] Valeriy Kravchuk
Please, check with a newer version, 5.1.35, and inform about the results.
[29 Jul 2009 23:00] Bugs System
No feedback was provided for this bug for over a month, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
[27 Apr 2018 11:24] Yngve Svendsen
Posted by developer:
 
Obsolete MySQL and OS versions.