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:
None 
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
Description:
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
Hello!,

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.

 CC=/opt/SUNWspro/bin/cc CXX=/opt/SUNWspro/bin/CC /home/umshastr/setup/cmake/bin/cmake . -DBUILD_CONFIG=mysql_release -DINSTALL_LAYOUT=STANDALONE -DCMAKE_C_FLAGS=-m64 -DCMAKE_CXX_FLAGS=-m64 -DCOMMUNITY_BUILD=OFF -DENABLED_PROFILING=OFF -DENABLE_DEBUG_SYNC=OFF -DENABLE_DTRACE=OFF -DENABLE_GCOV=OFF -DINSTALL_LAYOUT=STANDALONE -DMYSQL_DATADIR=/home/umshastr/setup/mysql-5.5.37/data -DMYSQL_MAINTAINER_MODE=OFF -DWITH_ARCHIVE_STORAGE_ENGINE=OFF -DWITH_BLACKHOLE_STORAGE_ENGINE=OFF -DWITH_DEBUG=OFF -DWITH_EMBEDDED_SERVER=OFF -DWITH_EXTRA_CHARSETS=all -DWITH_FEDERATED_STORAGE_ENGINE=OFF -DWITH_INNOBASE_STORAGE_ENGINE=ON -DWITH_LIBEDIT=ON -DWITH_LIBWRAP=OFF -DWITH_PARTITION_STORAGE_ENGINE=ON -DWITH_PERFSCHEMA_STORAGE_ENGINE=ON -DWITH_PIC=OFF -DWITH_READLINE=OFF -DWITH_SSL=no -DWITH_UNIT_TESTS=OFF -DWITH_VALGRIND=OFF -DWITH_ZLIB=system
..

make
..
[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

Thanks,
Umesh
[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".