Hi,

I have these errors when compiling mySQL 4.0.4 on Solaris 8 using Forte C
v7. Somme can help me please ? I use these compilation options :

CC=cc CFLAGS="-Xa -fast -xO4 -native -xstrconst -mt" \CXX=CC CXXFLAGS="-noex
-xO4 -mt" \./configure --prefix=/usr/local/mysql --enable-assembler

Error messages :

void*, unsigned, unsigned, extern "C" int(*)(const void*,const void*)) 
is being passed int(*)(const void*,const void*).
"sql_cache.cc", line 523: Error: "Query_cache_query::unlock_writing()" 
has already been called and cannot be defined inline.
"sql_cache.cc", line 720: Warning: min_allocation_unit hides 
Query_cache::min_allocation_unit.
"sql_cache.cc", line 733: Warning: tables hides Query_cache::tables.
"sql_cache.cc", line 1778: Warning: first_block hides 
Query_cache::first_block.
"sql_cache.cc", line 1887: Warning: tables hides Query_cache::tables.
"sql_cache.cc", line 2184: Warning: first_block hides 
Query_cache::first_block.
"sql_cache.cc", line 2420: Warning: tables hides Query_cache::tables.
1 Error(s) and 7 Warning(s) detected.
*** Error code 1
dmake: Fatal error: Command failed for target `sql_cache.o'
Current working directory /data/sources/4.0/mysql-4.0.4-beta/sql
Waiting for 1 job to finish
casablanca --> Job output
CC -DMYSQL_SERVER                       
-DDEFAULT_MYSQL_HOME="\"/usr/local/mysql\""                     
-DDATADIR="\"/usr/local/mysql/var\""                    
-DSHAREDIR="\"/usr/local/mysql/share/mysql\""                   
-DHAVE_CONFIG_H -I../innobase/include                   
-I./../include                  -I./../regex                    -I. 
-I../include -I.     -O3 -DDBUG_OFF -noex -xO4 -mt  -DHAVE_CURSES_H 
-I/data/sources/4.0/mysql-4.0.4-beta/include -DHAVE_RWLOCK_T -c slave.cc
CC: Warning: -xO4 overwrites previously set optimization level of -O3
"item_cmpfunc.h", line 296: Warning (Anachronism): Formal argument 4 of 
type extern "C" int(*)(const void*,const void*) in call to 
std::qsort(void*, unsigned, unsigned, extern "C" int(*)(const 
void*,const void*)) is being passed int(*)(const void*,const void*).
"slave.cc", line 538: Warning (Anachronism): Formal argument h_func of 
type extern "C" void*(*)(void*) in call to start_slave_thread(extern "C" 
void*(*)(void*), _pthread_mutex*, _pthread_mutex*, _pthread_cond*, 
volatile bool*, volatile unsigned long*, st_master_info*) is being 
passed void*(*)(void*).
"slave.cc", line 544: Warning (Anachronism): Formal argument h_func of 
type extern "C" void*(*)(void*) in call to start_slave_thread(extern "C" 
void*(*)(void*), _pthread_mutex*, _pthread_mutex*, _pthread_cond*, 
volatile bool*, volatile unsigned long*, st_master_info*) is being 
passed void*(*)(void*).
"slave.cc", line 559: Warning (Anachronism): Formal argument 
free_element of type extern "C" void(*)(void*) in call to 
_hash_init(st_hash*, unsigned, unsigned, unsigned, extern "C" 
char*(*)(const char*,unsigned*,char), extern "C" void(*)(void*), 
unsigned) is being passed void(*)(void*).
4 Warning(s) detected.
*** Error code 1
dmake: Fatal error: Command failed for target `all-recursive'
Current working directory /data/sources/4.0/mysql-4.0.4-beta/sql
*** Error code 1
dmake: Fatal error: Command failed for target `all-recursive'
Current working directory /data/sources/4.0/mysql-4.0.4-beta
*** Error code 1
dmake: Fatal error: Command failed for target `all-recursive-am'

---------------------------------------------------------------------
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