Error on compile MySQL with version 5.5.6 rc

Error on compile MySQL with version 5.5.6 rc

am 24.09.2010 07:03:22 von amoiz.shine

hi,everyone
i try to compile and install mysql from source tarball,but i failed
again & again.

this is my config string:
[root@PowerPC mysql-5.5.6-rc]# ./configure --prefix=/usr/local/mysql
--exec-prefix=/usr/local --sysconfdir=/etc/sysconfig/mysql
--localstatedir=/var --enable-profiling --disable-largefile
--disable-ipv6 --with-unix-socket-path=/tmp/mysql.socket
--with-mysqld-user=mysql --with-zlib-dir=bundled --without-docs
--without-man --with-low-memory --with-system-type --with-machine-type >
config-l.log

the configure returns some warnings which i think can be simple ignored.

/usr/bin/nm: old_atexit.o: no symbols
/usr/bin/nm: udiv_qrnnd.o: no symbols
/usr/bin/nm: mp_clz_tab.o: no symbols
/usr/bin/nm: getopt_init.o: no symbols
/usr/bin/nm: get_child_max.o: no symbols
/usr/bin/nm: init-posix.o: no symbols
/usr/bin/nm: lseek64.o: no symbols
/usr/bin/nm: oldgetrlimit64.o: no symbols
/usr/bin/nm: libc_multiple_threads.o: no symbols
/usr/bin/nm: getutmpx.o: no symbols
/bin/rm: cannot remove `libtoolT': No such file or directory

then, make mysql with "make" command. and the ERROR appeared.

…………
…………
mi_static.c:40: error: conflicting types for ‘myisam_max_temp_length’
.../../include/myisam.h:254: error: previous declaration of
‘myisam_max_temp_length’ was here
make[2]: *** [mi_static.o] Error 1
make[2]: Leaving directory `/root/mysql-5.5.6-rc/storage/myisam'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/mysql-5.5.6-rc/storage'
make: *** [all-recursive] Error 1

i really do not know what is wrong,want your help!!!

Many Thanks,
Sharl

--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe: http://lists.mysql.com/mysql?unsub=gcdmg-mysql-2@m.gmane.org

Re: Error on compile MySQL with version 5.5.6 rc

am 24.09.2010 10:27:00 von Joerg Bruehe

Hi Sharl!


Sharl.Jimh.Tsin wrote:
> hi,everyone
> i try to compile and install mysql from source tarball,but i failed=

> again & again.
>=20
> this is my config string:
> [root@PowerPC mysql-5.5.6-rc]# ./configure --prefix=3D/usr/local/mysql
> --exec-prefix=3D/usr/local --sysconfdir=3D/etc/sysconfig/mysql
> --localstatedir=3D/var --enable-profiling --disable-largefile
> --disable-ipv6 --with-unix-socket-path=3D/tmp/mysql.socket
> --with-mysqld-user=3Dmysql --with-zlib-dir=3Dbundled --without-docs
> --without-man --with-low-memory --with-system-type --with-machine-type =
>
> config-l.log
>=20
> the configure returns some warnings which i think can be simple ignored=

>=20
> /usr/bin/nm: old_atexit.o: no symbols
> /usr/bin/nm: udiv_qrnnd.o: no symbols
> /usr/bin/nm: mp_clz_tab.o: no symbols
> /usr/bin/nm: getopt_init.o: no symbols
> /usr/bin/nm: get_child_max.o: no symbols
> /usr/bin/nm: init-posix.o: no symbols
> /usr/bin/nm: lseek64.o: no symbols
> /usr/bin/nm: oldgetrlimit64.o: no symbols
> /usr/bin/nm: libc_multiple_threads.o: no symbols
> /usr/bin/nm: getutmpx.o: no symbols

I don't think you can ignore them. To me, it looks like you have a
severe inconsistency on your system: ".o" files should always contain
symbols in a format which "nm" understands.
I have never seen such a symptom before, so my speculations are that
either your ".o" files or your "nm" do not really match your platform.
Have you searched the internet for similar reports?

> /bin/rm: cannot remove 'libtoolT': No such file or directory

I have seen this one, AFAIK it is an indication that your "autotools"
installation is not really working. See these bug reports:
http://bugs.mysql.com/bug.php?id=3D47411
http://bugs.mysql.com/bug.php?id=3D50067

>=20
> then, make mysql with "make" command. and the ERROR appeared.
>=20
> ....
> ....
> mi_static.c:40: error: conflicting types for 'myisam_max_temp_length'
> ../../include/myisam.h:254: error: previous declaration of
> 'myisam_max_temp_length' was here
> make[2]: *** [mi_static.o] Error 1
> make[2]: Leaving directory '/root/mysql-5.5.6-rc/storage/myisam'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory '/root/mysql-5.5.6-rc/storage'
> make: *** [all-recursive] Error 1
>=20
> i really do not know what is wrong,want your help!!!

Have you searched our bugs database? Your error message is identical to
one I commented on Wednesday, see here:
http://bugs.mysql.com/bug.php?id=3D56928


HTH,
Jörg

--=20
Joerg Bruehe, MySQL Build Team, joerg.bruehe@oracle.com
ORACLE Deutschland B.V. & Co. KG, Komturstrasse 18a, D-12099 Berlin
Geschaeftsfuehrer: Juergen Kunz, Marcel v.d. Molen, Alexander v.d. Ven
Amtsgericht Muenchen: HRA 95603


--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe: http://lists.mysql.com/mysql?unsub=3Dgcdmg-mysql-2@m.gmane.o rg

Re: Error on compile MySQL with version 5.5.6 rc

am 24.09.2010 12:07:21 von amoiz.shine

--------------060803040108030805080103
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit

On 2010年09月24日 16:27, Joerg Bruehe wrote:
> Hi Sharl!
>
>
> Sharl.Jimh.Tsin wrote:
>
>> hi,everyone
>> i try to compile and install mysql from source tarball,but i failed
>> again& again.
>>
>> this is my config string:
>> [root@PowerPC mysql-5.5.6-rc]# ./configure --prefix=/usr/local/mysql
>> --exec-prefix=/usr/local --sysconfdir=/etc/sysconfig/mysql
>> --localstatedir=/var --enable-profiling --disable-largefile
>> --disable-ipv6 --with-unix-socket-path=/tmp/mysql.socket
>> --with-mysqld-user=mysql --with-zlib-dir=bundled --without-docs
>> --without-man --with-low-memory --with-system-type --with-machine-type>
>> config-l.log
>>
>> the configure returns some warnings which i think can be simple ignored.
>>
>> /usr/bin/nm: old_atexit.o: no symbols
>> /usr/bin/nm: udiv_qrnnd.o: no symbols
>> /usr/bin/nm: mp_clz_tab.o: no symbols
>> /usr/bin/nm: getopt_init.o: no symbols
>> /usr/bin/nm: get_child_max.o: no symbols
>> /usr/bin/nm: init-posix.o: no symbols
>> /usr/bin/nm: lseek64.o: no symbols
>> /usr/bin/nm: oldgetrlimit64.o: no symbols
>> /usr/bin/nm: libc_multiple_threads.o: no symbols
>> /usr/bin/nm: getutmpx.o: no symbols
>>
> I don't think you can ignore them. To me, it looks like you have a
> severe inconsistency on your system: ".o" files should always contain
> symbols in a format which "nm" understands.
> I have never seen such a symptom before, so my speculations are that
> either your ".o" files or your "nm" do not really match your platform.
> Have you searched the internet for similar reports?
>
>
>> /bin/rm: cannot remove 'libtoolT': No such file or directory
>>
> I have seen this one, AFAIK it is an indication that your "autotools"
> installation is not really working. See these bug reports:
> http://bugs.mysql.com/bug.php?id=47411
> http://bugs.mysql.com/bug.php?id=50067
>
>
>> then, make mysql with "make" command. and the ERROR appeared.
>>
>> ....
>> ....
>> mi_static.c:40: error: conflicting types for 'myisam_max_temp_length'
>> ../../include/myisam.h:254: error: previous declaration of
>> 'myisam_max_temp_length' was here
>> make[2]: *** [mi_static.o] Error 1
>> make[2]: Leaving directory '/root/mysql-5.5.6-rc/storage/myisam'
>> make[1]: *** [all-recursive] Error 1
>> make[1]: Leaving directory '/root/mysql-5.5.6-rc/storage'
>> make: *** [all-recursive] Error 1
>>
>> i really do not know what is wrong,want your help!!!
>>
> Have you searched our bugs database? Your error message is identical to
> one I commented on Wednesday, see here:
> http://bugs.mysql.com/bug.php?id=56928
>
>
> HTH,
> J�rg
>
>
>>No match my platform?
my vps is centos 5 x86 system,maybe it is the most common system.

[root@PowerPC mysql-5.5.6-rc]# uname -a
Linux PowerPC 2.6.18-194.8.1.el5.028stab070.5 #1 SMP Fri Sep 17 19:10:36
MSD 2010 i686 i686 i386 GNU/Linux

>>Have you searched the internet for similar reports?
Yes,of course.
for example:http://forums.mysql.com/read.php?117,267696,267696

but the way how to fix it was no found.

>>your "autotools"installation is not really working

thanks.i will check it later.

>>Have you searched our bugs database.
yes,and goto the bug #56928.any useful tip no found there.

thanks again,and how to resolve it?

--
Best regards,
Sharl.Jimh.Tsin(From China)


--------------060803040108030805080103--