List:General Discussion« Previous MessageNext Message »
From:Michael Widenius Date:September 16 1999 6:43pm
Subject:Re: help compiling 3.23.2
View as plain text  
>>>>> "Jani" == Jani Tolonen <jani@stripped> writes:

Jani> John Jacques writes:
>> Ok, here's everything I did:
>> 1) unpack the source and made a link to it /root/mysql
>> 2) make distclean because previous attempts have failed.
>> 3) ./configure
>> 4) make
>> -------------------
>> GNU Make version 3.76.1, by Richard Stallman and Roland McGrath.
>> Copyright (C) 1988, 89, 90, 91, 92, 93, 94, 95, 96, 97
>> Free Software Foundation, Inc.
>> This is free software; see the source for copying conditions.
>> There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
>> PARTICULAR PURPOSE.
>> Report bugs to <bug-gnu-utils@stripped>.
>> ----------------------
>> Here is what the ending of make displays:
>> -------------
>> make[3]: Entering directory '/root/apache/mysql/mysql-3.23.2-alpha/sql'
>> c++ -DMYSQL_SERVER
>> -DDEFAULT_MYSQL_HOME="\"/usr/local\""
>> -DDATADIR="\"/usr/local/var\""
>> -DSHAREDIR="\"/usr/local/share/mysql\""
>> -DHAVE_CONFIG_H -I./../include
>> -I./../regex
>> -I. -I../include -I.. -I.
>> -fno-implicit-templates -O3 -DEBUG_OFF -c unireg.cc
>> unreg.cc: In function 'int rea_create_table(char *, HA_CREATE_INFO *,
>> List<create_field> &, unsigned int, KEY *)':
>> unireg.cc:104: passing 'unsigned char *' as argument 1 of 'strlen(const
>> char *)' changes signedness
>> make[3]: *** [unireg.o] Error 1
>> make[3]:'Leaving directory '/root/apache/mysql/mysql-3.23.2-alpha/sql'
>> make[2]: *** [all-recursive] Error 1
>> make[2]:'Leaving directory '/root/apache/mysql/mysql-3.23.2-alpha/sql'
>> make[1]: *** [all-recursive] Error 1
>> make[1]:'Leaving directory '/root/apache/mysql/mysql-3.23.2-alpha'
>> make: *** [all-recursive-am] Error 2

Jani> Hi John,

Jani> Please search for the word 'Length of comment', should be line
Jani> 104 in mysql-distribution/sql/unireg.cc. Change that line from:

Jani> forminfo[46]=strlen(forminfo+47);           // Length of comment

Jani> to

Jani> forminfo[46]=(uchar) strlen((char*)forminfo+47);    // Length of comment

Jani> configure, make and make install

Hi!

Another option is to update to MySQL 3.23.3 where this is already
solved!

Regards
Monty

Thread
help compiling 3.23.2John Jacques13 Sep
  • help compiling 3.23.2Jani Tolonen13 Sep
  • Re: help compiling 3.23.2sasha13 Sep
  • Re: help compiling 3.23.2John Jacques14 Sep
    • Re: help compiling 3.23.2Jani Tolonen16 Sep
      • Re: help compiling 3.23.2Michael Widenius16 Sep