Bug #39731 Source should not define symbols starting with underscore
Submitted: 29 Sep 2008 14:37
Reporter: Kent Boortz Email Updates:
Status: Verified Impact on me:
None 
Category:MySQL Server: User-defined functions ( UDF ) Severity:S3 (Non-critical)
Version:5.1.28 OS:Any
Assigned to: CPU Architecture:Any

[29 Sep 2008 14:37] Kent Boortz
Description:
According to C and C++ standards, symbols starting with underscore
are reserved and should not be used from users source. Normally
this doesn't matter, but as can be seen from the attached text file
the system libraries or compiler might add its own symbols that
starts with underscore that risk clashing with the MySQL source
ones.

As seen in Bug#35743 some linkers even try protect the symbols
that start with underscore forcing the use of special flags to make
them visible to plugins, in this case for AIX and i5/OS.

How to repeat:
See Bug#35743

Suggested fix:
Stop prefixing symbols with underscore in the MySQL source, and replace
the current prefixes with something that doesn't start with an underscore.
[29 Sep 2008 14:40] Kent Boortz
Symbols starting with underscore

Attachment: syms.txt (text/plain), 2.32 KiB.