Subject: cat run make on mysql
To: None <port-i386@netbsd.org>
From: KroNiC~BSD <kronic_bsd@fastmail.fm>
List: port-i386
Date: 04/27/2003 03:16:09
I am trying to install mysql-4.0.12 w/ssl  on Netbsd 1.6. Configure runs 
and completes successfully with these options i am using...per the 
install doc. for a server with ssl support.

./configure --with-vio --with-openssl

Now the problem is when i try to make......i have tried gmake also with 
the same exact errors:

make/gmake will run for about 8 min. then stop with the following:

g++ -DMYSQL_SERVER -DDEFAULT_MYSQL_HOME="\"/usr/local\"" 
-DDATADIR="\"/usr/local/var\"" -DSHAREDIR="\"/usr/local/share/mysql\"" 
-DHAVE_CONFIG_H -I. -I. -I.. -I../innobase/include -I./../include 
-I./../regex -I. -I../include -I.     -O3 -DDBUG_OFF   
-fno-implicit-templates -fno-exceptions -fno-rtti -c -o sql_lex.o `test 
-f sql_lex.cc || echo './'`sql_lex.cc
In file included from sql_lex.cc:20:
mysql_priv.h:458: syntax error before `,'
mysql_priv.h:462: syntax error before `,'
gmake[4]: *** [sql_lex.o] Error 1
gmake[4]: Leaving directory `/usr/app/mysql-4.0.12/sql'
gmake[3]: *** [all-recursive] Error 1
gmake[3]: Leaving directory `/usr/app/mysql-4.0.12/sql'
gmake[2]: *** [all] Error 2
gmake[2]: Leaving directory `/usr/app/mysql-4.0.12/sql'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/usr/app/mysql-4.0.12'
gmake: *** [all] Error 2


ok, here is a snip of  "mysql_priv.h" lines 458 - 462, how do i need to 
change this to avoid the above syntax errors?

#ifdef HAVE_OPENSSL
struct st_des_keyblock
{
 des_cblock key1, key2, key3;      * line 458
};
struct st_des_keyschedule              * line 462
{
 des_key_schedule ks1, ks2, ks3;
};
extern char *des_key_file;
extern struct st_des_keyschedule des_keyschedule[10];
extern uint des_default_key;
extern pthread_mutex_t LOCK_des_key_file;
bool load_des_key_file(const char *file_name);
void free_des_key_file();
#endif /* HAVE_OPENSSL */

It appears that the error: gmake[4]: *** [sql_lex.o] Error 1 is what 
killed the make process dead. I tried to find this sql_lex.o file to 
post but there is no such file in the /usr/app/mysql-4.0.12/sql or 
anywhere on the box.

I posted this on the mysql list and was told it might be a assembler 
problem on openbsd 3.3 so thought i would ask.


Any help with this would be greatly appreciated,

Thanks, and Have a great day!