mysql compile problem under Solaris 9

2002-11-04 Thread Andy Elmer
I have tried compiling the latest 3.23 version of mysql under Solaris 9
using gcc 3.2 and keep getting the following error:

g++ -DMYSQL_SERVER 
-DDEFAULT_MYSQL_HOME=\/usr/local/mysql\
-DDATADIR=\/usr/local/mysql/var\   
-DSHAREDIR=\/usr/local/mysql/share/mysql\  
-DHAVE_CONFIG_H -I./../include  -I./../regex
   -I. -I../include -I.. -I.-O3 -DDBUG_OFF  
-fno-implicit-templates -fno-exceptions -fno-rtti -DHAVE_RWLOCK_T -c
sql_lex.cc
sql_lex.cc: In function `void lex_init()':
sql_lex.cc:85: `symbols' undeclared (first use this function)
sql_lex.cc:85: (Each undeclared identifier is reported only once for
each 
   function it appears in.)
sql_lex.cc:87: `sql_functions' undeclared (first use this function)
sql_lex.cc: In function `int find_keyword(LEX*, unsigned int, bool)':
sql_lex.cc:168: `get_hash_symbol' undeclared (first use this function)
make[3]: *** [sql_lex.o] Error 1
make[3]: Leaving directory `/opt/build/mysql-3.23.53/sql'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/opt/build/mysql-3.23.53/sql'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/opt/build/mysql-3.23.53'
make: *** [all-recursive-am] Error 2

I have found other postings with this same issue through google
searches, however, I never came across a resolution.  Here are my
configure options:
CFLAGS=-O6 ./configure --prefix=/usr/local/mysql --with-low-memory

Any sugguestions?  Thanks!

Andy

-
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




Re: mysql compile problem under Solaris 9

2002-11-04 Thread Ben Goodwin
I've found that previous build-attempts that have failed (IE did you have a
bad/nonexistant LD_LIBRARY_PATH, fix it, and then try 'make' again?) cause
this, and even a make distclean doesn't fix it.  Try starting from a freshly
untarred source ... that's always done it for me.

-=| Ben

- Original Message -
From: Andy Elmer [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, November 04, 2002 10:58 AM
Subject: mysql compile problem under Solaris 9


 I have tried compiling the latest 3.23 version of mysql under Solaris 9
 using gcc 3.2 and keep getting the following error:

 g++ -DMYSQL_SERVER
 -DDEFAULT_MYSQL_HOME=\/usr/local/mysql\
 -DDATADIR=\/usr/local/mysql/var\
 -DSHAREDIR=\/usr/local/mysql/share/mysql\
 -DHAVE_CONFIG_H -I./../include  -I./../regex
-I. -I../include -I.. -I.-O3 -DDBUG_OFF
 -fno-implicit-templates -fno-exceptions -fno-rtti -DHAVE_RWLOCK_T -c
 sql_lex.cc
 sql_lex.cc: In function `void lex_init()':
 sql_lex.cc:85: `symbols' undeclared (first use this function)
 sql_lex.cc:85: (Each undeclared identifier is reported only once for
 each
function it appears in.)
 sql_lex.cc:87: `sql_functions' undeclared (first use this function)
 sql_lex.cc: In function `int find_keyword(LEX*, unsigned int, bool)':
 sql_lex.cc:168: `get_hash_symbol' undeclared (first use this function)
 make[3]: *** [sql_lex.o] Error 1
 make[3]: Leaving directory `/opt/build/mysql-3.23.53/sql'
 make[2]: *** [all-recursive] Error 1
 make[2]: Leaving directory `/opt/build/mysql-3.23.53/sql'
 make[1]: *** [all-recursive] Error 1
 make[1]: Leaving directory `/opt/build/mysql-3.23.53'
 make: *** [all-recursive-am] Error 2

 I have found other postings with this same issue through google
 searches, however, I never came across a resolution.  Here are my
 configure options:
 CFLAGS=-O6 ./configure --prefix=/usr/local/mysql --with-low-memory

 Any sugguestions?  Thanks!

 Andy

 -
 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




-
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




Re: Problem under Solaris

2002-06-22 Thread Bhavin Vyas

Yes, it looks like the permissions are skewed. YOu might just want to do a
chown -R mysql:mysql /usr/local/mysql
The out-of-the-package permissions should be correct, ownership could be the
issue.

Regards,
Bhavin.
- Original Message -
From: Emiliano Marmonti [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, June 21, 2002 7:36 AM
Subject: Fw: Problem under Solaris


 Dear people

 I have a problem installing under Solaris. I've downloaded a compiled
 mysql, installed under /usr/local, create mysql group and mysql user, the
 owner of mysql/data is the group mysql and everything looks well. But when
I
 try:

 bin/safe_mysqld --user=mysql

 The mysql starts and inmediatly ends. Looking the log file I can see
 that it says:

 020621 20:49:05  mysqld started
 020621 20:49:05  /usr/local/mysql/bin/mysqld: Can't create/write to file
 '/usr/l
 ocal/mysql/data/bdu.pid' (Errcode: 13)
 020621 20:49:05  /usr/local/mysql/bin/mysqld: Can't find file:
 './mysql/host.frm
 ' (errno: 13)
 020621 20:49:05  /usr/local/mysql/bin/mysqld: Error on delete of
 '/usr/local/mys
 ql/data/bdu.pid' (Errcode: 13)
 020621 20:49:05  mysqld ended

 it looks like has no rights to write the file, isn´t it. I tried to
use
 scripts/mysql_install_db but It says that could not find mysqld and I 've
 seen that my.cnf does not exists. Is there a way to put it working or must
I
 download source code and compile it from scratch?

 Thanks a lot in advance

 Emiliano H.Marmonti



 -
 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



-
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




Fw: Problem under Solaris

2002-06-21 Thread Emiliano Marmonti

Dear people

I have a problem installing under Solaris. I've downloaded a compiled
mysql, installed under /usr/local, create mysql group and mysql user, the
owner of mysql/data is the group mysql and everything looks well. But when I
try:

bin/safe_mysqld --user=mysql

The mysql starts and inmediatly ends. Looking the log file I can see
that it says:

020621 20:49:05  mysqld started
020621 20:49:05  /usr/local/mysql/bin/mysqld: Can't create/write to file
'/usr/l
ocal/mysql/data/bdu.pid' (Errcode: 13)
020621 20:49:05  /usr/local/mysql/bin/mysqld: Can't find file:
'./mysql/host.frm
' (errno: 13)
020621 20:49:05  /usr/local/mysql/bin/mysqld: Error on delete of
'/usr/local/mys
ql/data/bdu.pid' (Errcode: 13)
020621 20:49:05  mysqld ended

it looks like has no rights to write the file, isn´t it. I tried to use
scripts/mysql_install_db but It says that could not find mysqld and I 've
seen that my.cnf does not exists. Is there a way to put it working or must I
download source code and compile it from scratch?

Thanks a lot in advance

Emiliano H.Marmonti



-
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