Bug #70208 error in my_global.h
Submitted: 31 Aug 2013 7:27 Modified: 28 Apr 2014 11:05
Reporter: NOT_FOUND NOT_FOUND Email Updates:
Status: No Feedback Impact on me:
Category:MySQL Server: Compiling Severity:S3 (Non-critical)
Version:5.5.33 OS:Solaris (11)
Assigned to: CPU Architecture:Any

[31 Aug 2013 7:27] NOT_FOUND NOT_FOUND
using solaris studio 12 and the following cmake options:

COMMUNITY_BUILD		  OFF                                                                   
 ENABLED_PROFILING		  OFF                                                                   
 ENABLE_DEBUG_SYNC		  OFF                                                                   
 ENABLE_DTRACE			  OFF                                                                   
 ENABLE_GCOV			  OFF                                                                   
 INSTALL_LAYOUT			  STANDALONE                                                            
 MYSQL_DATADIR			  /usr/local/mysql/data                                                 
 MYSQL_MAINTAINER_MODE		  OFF                                                                   
 WITH_ARCHIVE_STORAGE_ENGINE	  OFF                                                                   
 WITH_BLACKHOLE_STORAGE_ENGINE	  OFF                                                                   
 WITH_DEBUG			  OFF                                                                   
 WITH_EMBEDDED_SERVER		  OFF                                                                   
 WITH_EXTRA_CHARSETS		  all                                                                   
 WITH_FEDERATED_STORAGE_ENGINE	  OFF                                                                   
 WITH_INNOBASE_STORAGE_ENGINE	  ON                                                                    
 WITH_LIBEDIT			  ON                                                                    
 WITH_LIBWRAP			  OFF                                                                   
 WITH_PARTITION_STORAGE_ENGINE	  ON                                                                    
 WITH_PERFSCHEMA_STORAGE_ENGINE	  ON                                                                    
 WITH_PIC			  OFF                                                                   
 WITH_READLINE			  OFF                                                                   
 WITH_SSL			  no                                                                    
 WITH_UNIT_TESTS		  OFF                                                                   
 WITH_VALGRIND			  OFF                                                                   
 WITH_ZLIB			  system                                                                

then the following error showed up:

[ 29%] Building CXX object sql/CMakeFiles/gen_lex_hash.dir/gen_lex_hash.cc.o
"/devel/mysql-5.5.33/include/my_global.h", line 1460: Error: rint(double) was previously declared "extern", not "inline".
1 Error(s) detected.
gmake[2]: *** [sql/CMakeFiles/gen_lex_hash.dir/gen_lex_hash.cc.o] Error 2

How to repeat:
just try to compile it

Suggested fix:
proper declarations
[28 Mar 2014 11:05] MySQL Verification Team

Thank you for the report.

I could not reproduce this issue on Solaris(Sparc) with MySQL 5.5.37 and Sun Studio 12. Is this issue still repeatable? Additionally version 5.5.33 is old and many bugs were fixed since. Could you please try with latest GA version and if you are still getting the error then please send us complete commands that you use for build and rest details which would be useful for us to reproduce the issue at our end.


[100%] Building CXX object mysql-test/lib/My/SafeProcess/CMakeFiles/my_safe_process.dir/safe_process.cc.o
Linking CXX executable my_safe_process
[100%] Built target my_safe_process

[29 Apr 2014 1:00] Bugs System
No feedback was provided for this bug for over a month, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".