Bug #5464 Compile failure: 'set_user' undefined
Submitted: 8 Sep 2004 11:20 Modified: 9 Sep 2004 10:35
Reporter: Joerg Bruehe Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Server: Compiling Severity:S1 (Critical)
Version:4.1 OS:Any (all)
Assigned to: Alexey Botchkov CPU Architecture:Any

[8 Sep 2004 11:20] Joerg Bruehe
Description:
File 'sql/mysqld.cc':

The definition of 'static void set_user()' is included in '#ifndef EMBEDDED_LIBRARY', but it is also used outside. As a consequence,
1) an implicit declaration of 'int set_user()' is generated (note different return type!), and
2) the symbol is not found on linking (fatal).

The NDB test build of 4.1.5 cannot proceed due to this error.

How to repeat:
Pull the current source tree of 4.1 and try a build.

Suggested fix:
Either of
a) move the function definition outside of  '#ifndef EMBEDDED_LIBRARY', or
b) move all function uses (two) into such CPP guards.
[9 Sep 2004 10:35] Alexey Botchkov
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