Hi,

after some "research" we found out something, that was
reported sometimes to this list (and never has been
answered). The errors while compiling mysql_lex.cc, that
were reported, looked like this:

make[3]: Entering directory `/services/source/database/mysql/mysql-3.23.52/sql'
g++ -DMYSQL_SERVER                      
-DDEFAULT_MYSQL_HOME="\"/services/database/mysql/mysql-3.23.52\"" 
-DDATADIR="\"/services/database/mysql/data\""                   
-DSHAREDIR="\"/services/database/mysql/mysql-3.23.52/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_CURSES_H 
-I/services/source/database/mysql/mysql-3.23.52/include -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 `/services/source/database/mysql/mysql-3.23.52/sql'

The error is the following: The file lex_hash.h is created
during make from the binary gen_lex_hash, that is generated
before. If the start of gen_lex_hash fails (usually, because
the dynamic library libstdc++.so is not found), lex_hash.h
is created with a file length of zero. All followings calls
of "make" do not recognize this, so the errors occur because
the definitions in lex_hash.h do not exist.

One should include this in the makefiles as dependencies,
but I'm not firm enough with make to do this. The actual
fix was: remove lex_hash.h, set LD_LIBRARY_PATH, so that
the missing library is found, and start "make" again.

Regards...
Olaf


-- 
Dipl.Inform. Olaf Gellert                  PRESECURE (R)
Consultant,                              Consulting GmbH
Phone: (+49) 0700 / PRESECURE           [EMAIL PROTECTED]

       Check on European Security Incident Response Teams
                                  http://www.ti.terena.nl


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