Bug #13656 | Unable to compile mysql-5.0.13 on fedora core 3. | ||
---|---|---|---|
Submitted: | 30 Sep 2005 13:45 | Modified: | 12 Nov 2005 9:10 |
Reporter: | Ravi Yadav | Email Updates: | |
Status: | No Feedback | Impact on me: | |
Category: | MySQL Server | Severity: | S2 (Serious) |
Version: | 5.0.13 | OS: | Linux (fedora core 3) |
Assigned to: | CPU Architecture: | Any |
[30 Sep 2005 13:45]
Ravi Yadav
[30 Sep 2005 14:19]
Valeriy Kravchuk
What configure options had you used? Please, provide the list of all the steps you performed. Please, specify the amount RAM on your machine also.
[30 Sep 2005 20:01]
Ravi Yadav
Additional information provided as requested.
Attachment: steps_performed (application/octet-stream, text), 487 bytes.
[3 Oct 2005 12:18]
Ravi Yadav
Hi Valeriy Kravchuk, These are the steps i performed. 1>Downloaded MySQL-5.0.13-0.src.rpm 2>Ran the command rpmbuild --rebuild --clean MySQL-5.0.13-0.src.rpm. I have an amd athlon processor with 1GB Ram. output of uname -p=athlon output of uname -r=2.6.9-1.667 output of uname -a=Linux ns.ravislab.org 2.6.9-1.667 #1 Tue Nov 2 14:41:25 EST 2004 i686 athlon i386 GNU/Linux output of rpm -qa gcc = gcc-3.4.2-6.fc3 output of rpm -qa glibc = glibc-2.3.3-74 Hope this helps will throw some light on my problem with regards ravi yadav
[4 Oct 2005 10:12]
Valeriy Kravchuk
Please, try to build from the sources (http://dev.mysql.com/get/Downloads/MySQL-5.0/mysql-5.0.13-rc.tar.gz/from/pick) with a simple configure command (see http://dev.mysql.com/doc/mysql/en/quick-install.html for details): ./configure --prefix=/base_directory and inform about the results. It works for me on Fedora Core 1 (and several other Linux and UNIX systems). Source RPM includes a lot of additional configure options by default - may be a reason for a problem.
[5 Oct 2005 6:45]
Ravi Yadav
I complied as per your instructions, (eg. ./configure --prefix=/usr/local/mysql-5.0) .It compiled without any problems and everything seems to be working fine.Now most of my databases are locate in /var/lib/mysql.Now how do i make the new mysql server read the data from /var/lib/mysql directory ,right now it reads the data from /usr/local/mysql-5/var directory. Once agains thanks for the support. Ravi Yadav
[5 Oct 2005 8:17]
Valeriy Kravchuk
You may use --datadir=/var/lib/mysql startup option for mysqld (or mysql_safe). See the manual (http://dev.mysql.com/doc/mysql/en/server-options.html) for details. Please, inform me about the results. Although this will allow you to work, it does not really solve the original problem (.src.rpm istalls OK for me, but on Fedora Core 1, and, more importantly, on Pentium II, not Athlon). So, some further investigation may be needed.
[5 Oct 2005 13:17]
Ravi Yadav
Valeriy,i think the problem is with this parameters being set during compilation from src.rpm, "CFLAGS='-O2 -g -pipe -m32 -march=i386 -mtune=pentium4" .If u remember i have an athlon machine ,then why is it showing a pentium4 .Is there a way to change or set the CFLAGS options during rpmbuild command ,or can we figure out from where these paramaters are being set. I am attaching the entire config.log for you.Hope thats throws some light into the problem.
[5 Oct 2005 13:19]
Ravi Yadav
complete config.log .
Attachment: config.log (text/x-log), 13.70 KiB.
[10 Oct 2005 13:48]
Valeriy Kravchuk
Please, send the content of the following files from your machine: /usr/lib/rpm/rpmrc /usr/lib/rpm/redhat/rpmrc /etc/rpmrc ~/.rpmrc The last is from the home directory of the user (root?) that installs source RPM. Looks like you'll have to redefine (or define new value) for the RPM_OPT_FLAGS in one of these files...
[11 Oct 2005 15:14]
Ravi Yadav
rpmrc from /var/lib/rpm/rpmrc
Attachment: rpmrc (application/octet-stream, text), 11.11 KiB.
[11 Oct 2005 15:15]
Ravi Yadav
rpmrc from /var/lib/rpm/redhat
Attachment: rpmrc (application/octet-stream, text), 2.26 KiB.
[11 Oct 2005 15:19]
Ravi Yadav
I did not find any /etc/rpmrc and /root/.rpmrc file as requested .The other files you requested have been attached.
[12 Oct 2005 9:10]
Valeriy Kravchuk
Ravi, Please, remove that -mtune=pentium4 from i386 and i686 lines at the beginning of /var/lib/rpm/redhat/rpmrc file, repeat your compiling attempts and inform me about the results.
[13 Nov 2005 0: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".