Bug #6309 myisamchk compiled without debug support , --help shows vise versa
Submitted: 28 Oct 2004 15:55 Modified: 2 Nov 2004 11:38
Reporter: Gleb Paharenko Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Server: Command-line Clients Severity:S3 (Non-critical)
Version:4.1.7 OS:Windows (Windows,Linux)
Assigned to: Ramil Kalimullin CPU Architecture:Any

[28 Oct 2004 15:55] Gleb Paharenko
Description:
mysql --help|grep debug shows that MySQL was compiled without debug support.
But myisamchk --help show this option, and at the same time
it is unknown option

How to repeat:
[gleb@blend gleb]$ myisamchk --help|grep debug
  -#, --debug=...     Output debug log. Often this is 'd:t:o,filename'

But!

[gleb@blend gleb]$ myisamchk --debug='d:t:o,test.log' host.MYI
myisamchk: unknown variable 'debug=d:t:o,test.log'

and 
[gleb@blend gleb]$ mysql --help |grep debug
  -T, --debug-info    Print some debug info at exit.
debug-info                        FALSE

Shows than thereis now --debug support
And on Windows box

E:\mysql-4.1.6-gamma-win-noinstall\mysql-4.1.6-gamma-win>mysql --help|more
..................

  -#, --debug[=#]     This is a non-debug version. Catch this and exit
[28 Oct 2004 16:09] Gleb Paharenko
And 
without '='
[gleb@blend gleb]$ myisamchk --debug 'd:t:o,test.log' host.MYI
myisamchk: unknown option '--debug'
[28 Oct 2004 20:23] Paul DuBois
This isn't a documentation bug, it's a bug in myisamchk. The problem
arises from the fact that myisamchk has _two_ help messages, and
only one of them is enclosed within #ifndef DBUG_OFF/#endif.  The
one that is not so enclosed is the one that's printed by default.
(You can see the difference by running myisamchk --help and
myisamchk --HELP.)

This problem afflicts MySQL 4.0 as well.
[2 Nov 2004 11:38] Ramil Kalimullin
Thank you for your bug report. This issue has been committed to our
source repository of that product and will be incorporated into the
next release.

If necessary, you can access the source repository and build the latest
available version, including the bugfix, yourself. More information 
about accessing the source trees is available at
    http://www.mysql.com/doc/en/Installing_source_tree.html