Subject: Re: cat run make on mysql
To: KroNiC~BSD <kronic_bsd@fastmail.fm>
From: Frederick Bruckman <fredb@immanent.net>
List: port-i386
Date: 04/27/2003 11:38:11
On Sun, 27 Apr 2003, KroNiC~BSD wrote:

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

The error is from "g++", not from "make" or "gmake". Either kind of
"make" of course stops if a child process errors out.

> 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;
> };
...
> #endif /* HAVE_OPENSSL */

Make sure that <openssl/des.h> is somewhere in the include chain. The
error is really *before* that point -- if the types "des_cblock" and
"des_key_schedule" were defined, as intended, there would be no error.

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

Well, it wouldn't be, since "g++" died attempted to create it.

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

You lost me... The error you quoted is from the pre-processor, not the
assembler, and what does openbsd have to do with this?

Frederick