Bug #5093 error in dyn_string_cmp
Submitted: 18 Aug 2004 13:56 Modified: 18 Aug 2004 17:13
Reporter: sorin moga Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Server: Compiling Severity:S1 (Critical)
Version:4.1.3-beta OS:Linux (debian sparc)
Assigned to: CPU Architecture:Any

[18 Aug 2004 13:56] sorin moga
Description:
compiling the mysql on debian sparc, I got this error

gcc -DUNDEF_THREADS_HACK -I. -I. -I.. -I../include     -O3 -DDBUG_OFF    -c `test -f 'mysqltest.c' || echo './'`mysqltest.c
mysqltest.c: In function `dyn_string_cmp':
mysqltest.c:556: `eval_' undeclared (first use in this function)
mysqltest.c:556: (Each undeclared identifier is reported only once
mysqltest.c:556: for each function it appears in.)
mysqltest.c:556: `ile' undeclared (first use in this function)
make[2]: *** [mysqltest.o] Error 1

How to repeat:
compiling mysql on linux (debian stable) sparc

Suggested fix:

Looking in mysqltest.c, I found
"
int dyn_string_cmp(DYNAMIC_STRING* ds, const char* fname)
{
  MY_STAT stat_info;
  char *tmp, *res_ptr;
  char eval_file[FN_REFLEN];
  int res;
  uint res_len;
  int fd;
  DYNAMIC_STRING res_ds;
  DBUG_ENTER("dyn_string_cmp");

  if (!test_if_hard_path(fname))
  {
    strxmov(eval_file, opt_basedir, fname, NullS);
    fn_format(eval_&ile, eval_file,"","",4);
  }
  else
    fn_format(eval_file, fname,"","",4);
"
 
I suppose that the "fn_format(eval_&ile, eval_file,"","",4);" is not correct ("eval_file" must replace the "eval_&ile") !? ...
[18 Aug 2004 16:55] sorin moga
Sorry,

the error is on my side (download error, the MD5 signature is not the same as yours).
[18 Aug 2004 17:13] MySQL Verification Team
I am closing this bug according your last post.

Thank you for your notice.