Bug #6240 Extra symbols after #else
Submitted: 25 Oct 2004 3:07 Modified: 25 Oct 2004 8:46
Reporter: James Barwick Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Server: Compiling Severity:S3 (Non-critical)
Version:4.1.6-gamma OS:Linux (SuSE 9.0 (x86 - 32 bit))
Assigned to: CPU Architecture:Any

[25 Oct 2004 3:07] James Barwick
Description:
I noted 32 bit here...Most of my bugs will be reported on SuSE 9.1 64-bit systems (don't want to confuse the bug managers)...So just want to say - this is for a 32 bit SuSE 9.0 system.

Note: (Seperate problem...I cannot get RAID tables to work on this system.  Not being critical at this time, I have removed the --with-raid option on configure....however, you might want to take a look at it..but..suspect it's just me..<wink>)

Problem Application:

mysys/my_gethwaddr.c Line 110

Original Line

#else MAIN

compiler complains of excess symbols on the line.

I suspect this error is due to SOME sorta compiler version difference between SuSE 9.0 and SuSE 9.1.  

SuSE 9.0 (32bit) - gcc version 3.3.1
SuSE 9.1 (x86_64) - gcc version 3.3.3

How to repeat:
compile the program

Suggested fix:
Since I don't like compiler errors, I have changed line 110

from

#else MAIN

to

#else

This is part of a

#ifndef MAIN

#else

#endif

So, I suspet that if MAIN "IS" defined, then we want the "main" function to be compiled in, and, I believe just removing MAIN on this #else will still do the job and remove the compiler warning.

PLEASE let me know if I'm off base here...
[25 Oct 2004 8:46] Sergei Golubchik
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

Additional info:

Thanks for spotting this.
You are right, of course!
Fixed in 4.1.7