Hi!
>>>>> "Sasha" == Sasha Pachev <sasha@stripped> writes:
Sasha> On Sunday 16 September 2001 12:15, Alexander Belkin wrote:
>> Hi!
>>
>> I try to compile last mysql-4.
>>
>> /bin/mv binary-configure-t binary-configure
>> make[2]: ÷ÙÈÏÄ ÉÚ
> ËÁÔÁÌÏÇ
> /home/bell/mysql/mysql-4/support-files'
>> Making all in tools
>> make[2]: ÷ÈÏÄ ×
> ËÁÔÁÌÏÇ /home/bell/mysql/mysql-4/tools'
>> gcc -DUNDEF_THREADS_HACK -I./../include
>> -I../include -I./.. -I.. -I.. -O3
>> -DDBUG_OFF -mcpu=pentiumpro -march=pentiumpro -DCPU=pentiumpro -c
>> mysqlmanager.c
>> mysqlmanager.c:111:32: warning: pasting ""MySQL Server Management Daemon
>> v."" and "MANAGER_VERSION" does not give a valid preprocessing token
>> mysqlmanager.c:111: parse error before
>> ANAGER_VERSION'
>> make[2]: *** [mysqlmanager.o] ïÛÉÂËÁ 1
>> make[2]: ÷ÙÈÏÄ ÉÚ
> ËÁÔÁÌÏÇ /home/bell/mysql/mysql-4/tools'
>> make[1]: *** [all-recursive] ïÛÉÂËÁ 1
>> make[1]: ÷ÙÈÏÄ ÉÚ
> ËÁÔÁÌÏÇ /home/bell/mysql/mysql-4'
>> make: *** [all-recursive-am] ïÛÉÂËÁ 2
>>
>> Cause of this error is strange text at lines 42-43 in tools/mysqlmanager.c:
>>
>> #define MANAGER_GREETING "MySQL Server Management Daemon v." ## \
>> MANAGER_VERSION
Sasha> What version of gcc are you using? And what OS?
Sasha, we can't assume that '##' will work with all compilers.
Please fix mysqlmanager.c to not use this construct but just use '%s'.
(I know it's a pain, but we have to do this)
Regards,
Monty