Bug #28493 Mysql compiling with yassl
Submitted: 17 May 2007 7:53 Modified: 21 May 2007 8:11
Reporter: Venky P Email Updates:
Status: Not a Bug Impact on me:
None 
Category:MySQL Server: Compiling Severity:S1 (Critical)
Version:5.0.16 OS:Any
Assigned to: CPU Architecture:Any

[17 May 2007 7:53] Venky P
Description:
Hi,
 I downloaded mysql-5.0.16 source tar from archive to Redhat linux 9 system.
 Unzip that tar file and copied to /usr/local/ folder.Copiling like by using this command
 ./configure --prefix=/usr/local/mysql --with-yassl

 configuration working fine.
  Next i run make...That time i got error like

  make[2]: Entering directory `/usr/local/mysql-5.0.16/sql'
bison -y  -d sql_yacc.yy
sql_yacc.yy:4014: type clash (`' `NONE') on default action
sql_yacc.yy:4049: type clash (`' `NONE') on default action
sql_yacc.yy:4377: type clash (`' `NONE') on default action
sql_yacc.yy:4377: type clash (`' `NONE') on default action
sql_yacc.yy:4378: type clash (`' `NONE') on default action
sql_yacc.yy:4378: type clash (`' `NONE') on default action
sql_yacc.yy:4380: type clash (`' `NONE') on default action
sql_yacc.yy:7923: type clash (`' `num') on default action
make[2]: *** [sql_yacc.cc] Error 1
make[2]: Leaving directory `/usr/local/mysql-5.0.16/sql'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/local/mysql-5.0.16'
make: *** [all] Error 2

How to repeat:
groupadd mysql
useradd -g mysql mysql
tar xzf mysql-5.0.16.tar.gz
mv -r mysql-5.0.16 /usr/local/
cd /usr/local/mysql-5.0.16
./configure --prefix=/usr/local/mysql --with-yassl
make
[17 May 2007 7:59] Sveta Smirnova
Thank you for the report.

But version 5.0.16 is quite old. Please upgrade to current 5.0.41 version from http://dev.mysql.com/downloads/mysql/5.0.html, try again and say us result. Also be sure you have last version of bison.
[18 May 2007 7:03] Venky P
Now i downloaded latest bison. Mysql server compilation with yassl working fine.
I logged in mysql, check with show varibles like 'have-openssl'...it's showin yes. I created new certificates and trying mysqld with new certificates...
That time i am getting error like

mysqld --ssl-ca=ca-cert.pem \
> --ssl-cert=server-cert.pem \
> --ssl-key=server-key.pem

070517  3:41:27 [ERROR] Fatal error: Please read "Security" section of the manual to find out how to run mysqld as root!

070517  3:41:27 [ERROR] Aborting

070517  3:41:27 [Note] mysqld: Shutdown complete

Regards,
venky
[18 May 2007 7:37] Sveta Smirnova
Thank you for the feedback.

But this is expected behaviour. Do what error message says: read Security section of the manual. Especcially look attention on next page: http://dev.mysql.com/doc/refman/5.0/en/changing-mysql-user.html
[21 May 2007 8:11] Venky P
Still i am gettin error message like

 depfile='.deps/libtaoint_a-integer.Po' tmpdepfile='.deps/libtaoint_a-integer.TPo' \
depmode=none /bin/sh ../../../../depcomp \
g++ -DHAVE_CONFIG_H -I. -I. -I../../../.. -I../include -I../../mySTL    -O -DDBUG_OFF    -fno-implicit-templates -fno-exceptions -fno-rtti -c -o libtaoint_a-integer.o `test -f 'integer.cpp' || echo './'`integer.cpp
../../../../depcomp: line 502: exec: g++: not found
make[4]: *** [libtaoint_a-integer.o] Error 127
make[4]: Leaving directory `/usr/local/src/mysql-5.0.16/extra/yassl/taocrypt/src'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/usr/local/src/mysql-5.0.16/extra/yassl/taocrypt'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/usr/local/src/mysql-5.0.16/extra/yassl'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/local/src/mysql-5.0.16'
make: *** [all] Error 2
 Thanks & Regards,
 Venky