Dave West writes:
> Hey all,
>
> I have a Sun Ultra450 (64-bit Sparc) on which I am trying to run
> mysql-3.22.23b. The problem that I am having is that after I do all the
> prescribed steps and do scripts/mysql_install_db I get these errors:
>
> [root@aslan mysql-3.22.23b]# scripts/mysql_install_db
> Creating db table
> Creating host table
> Creating user table
> Creating func table
> Creating tables_priv table
> Creating columns_priv table
> ERROR: 1033 Incorrect information in file: './mysql/db.frm'
> ... and about 10 lines more for user, host, etc.
>
> Now, I have gone through all of the documentation and mailinglists that I
> could find. I found this error posted a few times on the mailing list,
> with answers ranging from 'get a new compiler' to no answers at all. What
> I am wondering is if there is anyone out on this list who has gotten mysql
> to compile and run successfully on the 64-bit Sparcs with RedHat 6.
> The system itself is a stock RedHat, with updates installed.
>
> Attached is all of the relevant system info that I could think of.
> I appreciate any help I can get.
>
> Thanks,
> --dw
> =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
>
> System info:
> mysql version: 3.22.23b - Source tar.
> Machine: Sun Ultra450
> /proc/cpuinfo:
> Linux aslan.apu.edu 2.2.5-22 #2 Fri Jun 11 17:33:18 PDT 1999 sparc64 unknown
> cpu : TI UltraSparc II (BlackBird)
> fpu : UltraSparc II integrated FPU
> promlib : Version 3 Revision 7
> prom : 3.7.107
> type : sun4u
> ncpus probed : 1
> ncpus active : 1
> BogoMips : 494.79
> MMU Type : Spitfire
>
> /proc/meminfo:
> total: used: free: shared: buffers: cached:
> Mem: 261742592 222896128 38846464 25886720 85671936 97992704
> Swap: 402538496 1941504 400596992
> MemTotal: 255608 kB
> MemFree: 37936 kB
> MemShared: 25280 kB
> Buffers: 83664 kB
> Cached: 95696 kB
> SwapTotal: 393104 kB
> SwapFree: 391208 kB
>
> gcc --version:
> egcs-2.91.66
>
> ld -version:
> GNU ld 2.9.1
> Copyright 1997 Free Software Foundation, Inc.
> This program is free software; you may redistribute it under the terms of
> the GNU General Public License. This program has absolutely no warranty.
> Supported emulations:
> elf32_sparc
> sparclinux
> sun4
> elf64_sparc
>
> /etc/issue:
> Red Hat Linux release 6.0 (Hedwig)
> Kernel 2.2.5-22 on a sparc64
>
Hello Dave,
This could be a compiler problem, in that case the
only fix I can come up with is to try with another compiler.
If not, you can try to compile MySQL with:
CFLAGS=-O1 CXXFLAGS=-O1 ./configure --with-debug
If you want to debug this; Put a breakpoint at 'openfrm' and do
'next' until you find the error.
Regards,
- Jani
--
+---------------------------------------------------------------------+
| TcX ____ __ _____ _____ ___ |
| /*/\*\/\*\ /*/ \*\ /*/ \*\ |*| Jani Tolonen |
| /*/ /*/ /*/ \*\_ |*| |*||*| mailto: jani@stripped |
| /*/ /*/ /*/\*\/*/ \*\|*| |*||*| Helsinki |
| /*/ /*/ /*/\*\_/*/ \*\_/*/ |*|_____ Finland |
| ^^^^^^^^^^^^/*/^^^^^^^^^^^\*\^^^^^^^^^^^ |
| /*/ \*\ Developers Team |
+---------------------------------------------------------------------+