I found the answers to my previous question about MySQL in the manual. Doh!

However, when I tried to compile MySQL, I ran into the following error:

/bin/sh ../libtool --mode=compile cc
-DDEFAULT_CHARSET_HOME="\"/export/home/bteale/mysql-3.23.47\""
-DDATADIR="\"/export/home/bteale/mysql-3.23.47/var\""
-DSHAREDIR="\"/export/home/bteale/mysql-3.23.47/share/mysql\""
-DUNDEF_THREADS_HACK -DDONT_USE_RAID  -I./../include -I../include
-I./.. -I.. -I..    -O -DDBUG_OFF -Xa -fast -native -xstrconst -mt
-DHAVE_CURSES_H -I/export/home/bteale/pkgs/mysql-3.23.47/include
-DHAVE_RWLOCK_T -c hash.c
rm -f .libs/hash.lo
cc -DDEFAULT_CHARSET_HOME=\"/export/home/bteale/mysql-3.23.47\"
-DDATADIR=\"/export/home/bteale/mysql-3.23.47/var\"
-DSHAREDIR=\"/export/home/bteale/mysql-3.23.47/share/mysql\"
-DUNDEF_THREADS_HACK -DDONT_USE_RAID -I./../include -I../include -I./.. -I..
-I.. -O -DDBUG_OFF -Xa -fast -native -xstrconst -mt -DHAVE_CURSES_H
-I/export/home/bteale/pkgs/mysql-3.23.47/include -DHAVE_RWLOCK_T -c hash.c
-KPIC -DPIC
cc: Warning: -xarch=native has been explicitly specified, or implicitly
specified by a macro option, -xarch=native on this architecture implies
-xarch=v8plusa which generates code that does not run on pre UltraSPARC
processors
"hash.c", line 189: reference to static variable "hash_key" in inline extern
function
"hash.c", line 229: cannot recover from previous errors
cc: acomp failed for hash.c
make[2]: *** [hash.lo] Error 1
make[2]: Leaving directory `/export/home/bteale/pkgs/mysql-3.23.47/libmysql'
make[1]: *** [all-recursive] Error 1

I looked into hash.c, and the relevant code is as follows:

183: #ifndef _FORTREC_
184: inline
185: #endif
186: uint rec_hashnr(HASH *hash,const byte *record)
187: {
188:   uint length;
189:   byte *key=hash_key(hash,record,&length,0);
190:   return (*hash->calc_hashnr)(key,length);
191: }

To fix the problem I poked around, and ended up commenting out lines
183-185.  After this it compiles fine.  Will this lead to any problems?

Computer Config:
SunOS 5.8 sun4u sparc SUNW, Ultra-80
Sun Workshop 6 update 2 5.3 2001/05/15

Thanks,
Brad Teale
Universal Weather and Aviation, Inc.
<mailto:[EMAIL PROTECTED]>

---------------------------------------------------------------------
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/           (the list archive)

To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php

Reply via email to