Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Can't compile current mysql-4.1 repository

0 views
Skip to first unread message

Sebastian Bergmann

unread,
Mar 27, 2003, 3:16:30 AM3/27/03
to
For some days now I have been unable to mysql-4.1 on Linux.

I checked with Georg Richter and Jeremy Zawodny, but they don't
experience the problem I'm having.

At least Georg uses an older version of GCC than I am, so that
could be a possibility.

Any help appreciated,
Sebastian

Environment:

Linux
autoconf 2.56
automake 1.7.2
bison 1.75 (also tested with 1.875)
gcc 3.2.2
libtool 1.4.3

Compiler Error:

sql_lex.cc: In function `void lex_init()':
sql_lex.cc:83: `symbols' undeclared (first use this function)
sql_lex.cc:83: (Each undeclared identifier is reported only once
for each function it appears in.)
sql_lex.cc:85: `sql_functions' undeclared (first use this function)
sql_lex.cc: In function `int find_keyword(LEX*, unsigned int, bool)':
sql_lex.cc:140: `get_hash_symbol' undeclared
(first use this function)

libmsqld/sql_lex.cc:

79 void lex_init(void)
80 {
81 uint i;
82 DBUG_ENTER("lex_init");
83 for (i=0 ; i < array_elements(symbols) ; i++)
84 symbols[i].length=(uchar) strlen(symbols[i].name);
85 for (i=0 ; i < array_elements(sql_functions) ; i++)
86 sql_functions[i].length=(uchar) strlen(sql_functions[i].name);
87
88 VOID(pthread_key_create(&THR_LEX,NULL));
89
90 DBUG_VOID_RETURN;
91 }

--
Sebastian Bergmann
http://sebastian-bergmann.de/ http://phpOpenTracker.de/

Did I help you? Consider a gift: http://wishlist.sebastian-bergmann.de/

--
MySQL Internals Mailing List
For list archives: http://lists.mysql.com/internals
To unsubscribe: http://lists.mysql.com/internals?unsub=mysql-i...@freebsd.csie.nctu.edu.tw

Jocelyn Fournier

unread,
Mar 27, 2003, 3:58:50 AM3/27/03
to
Hi,

Are you sure the gen_lex_hash file in the sql directory has been properly
compiled and then executed to create lex_hash.h file?
(./gen_lex_hash > lex_hash.h).

Regards,
Jocelyn

http://lists.mysql.com/internals?unsub=j...@presence-pc.com

Sebastian Bergmann

unread,
Mar 27, 2003, 7:02:47 AM3/27/03
to
Jocelyn Fournier wrote:
> Are you sure the gen_lex_hash file in the sql directory has
> been properly compiled and then executed to create lex_hash.h file?

gen_lex_hash gets compiled, but not executed. After manually executing
it, and thus overwriting an old lex_hash.h file, the build completed
successfully.

I uploaded the complete output of BUILD/compile-pentium to

http://www.sebastian-bergmann.de/stuff/mysql-4.1.txt

Maybe this helps you track down why gen_lex_hash does not get
executed.

Thanks for your help,
Sebastian

Did I help you? Consider a gift: http://wishlist.sebastian-bergmann.de/

--
MySQL Internals Mailing List
For list archives: http://lists.mysql.com/internals

To unsubscribe: http://lists.mysql.com/internals?unsub=mysql-i...@freebsd.csie.nctu.edu.tw

Sebastian Bergmann

unread,
Mar 27, 2003, 8:00:23 AM3/27/03
to
Sinisa Milivojevic wrote:
> You should definitely try Jocelyn's suggestion on re-generating
> hex_hash.h.

As I already stated in my reply to Jocelyn's posting, I did that. And
it worked.

For some reason the gen_lex_hash binary is built, but not executed.

Sinisa Milivojevic

unread,
Mar 27, 2003, 10:38:16 AM3/27/03
to

You should definitely try Jocelyn's suggestion on re-generating hex_hash.h.


--

Regards,

--
For technical support contracts, go to https://order.mysql.com/?ref=msmi
__ ___ ___ ____ __
/ |/ /_ __/ __/ __ \/ / Mr. Sinisa Milivojevic <sin...@mysql.com>
/ /|_/ / // /\ \/ /_/ / /__ MySQL AB, FullTime Developer
/_/ /_/\_, /___/\___\_\___/ Larnaca, Cyprus
<___/ www.mysql.com

0 new messages