[MDEV-4976] errors in gcalc_slicescan.h / Solaris Created: 2013-08-31  Updated: 2016-02-15  Resolved: 2016-02-15

Status: Closed
Project: MariaDB Server
Component/s: Compiling
Affects Version/s: 5.3.12
Fix Version/s: 5.5.49, 10.0.24, 10.1.12

Type: Bug Priority: Minor
Reporter: gfischer Assignee: Sergei Golubchik
Resolution: Fixed Votes: 0
Labels: None
Environment:

solaris 11, solaris studio 12


Issue Links:
Relates
relates to MDEV-88 use of anonymous unions and structs i... Closed
relates to MDEV-8448 cannot build on solaris 10 Sparc Closed
relates to MDEV-8941 Compile on Solaris (SPARC) fails with... Closed
relates to MDEV-9381 [PATCH] solaris10 build fixes Closed

 Description   

gmake[2]: Entering directory `/root/mariadb-5.3.12/storage/myisam'
\
source='ha_myisam.cc' object='libmyisam_s_la-ha_myisam.lo' libtool=yes \
DEPDIR=.deps depmode=none /bin/sh ../../depcomp \
/bin/sh ../../libtool  --tag=CXX   --mode=compile CC -DHAVE_CONFIG_H -I. -I../../include -I../../include -I../../include -I../../regex -I../../sql -I.    -fast -xunroll=12 -xarch=ssse3 -m64   -DHAVE_RWLOCK_T -c -o libmyisam_s_la-ha_myisam.lo `test -f 'ha_myisam.cc' || echo './'`ha_myisam.cc
libtool: compile:  CC -DHAVE_CONFIG_H -I. -I../../include -I../../include -I../../include -I../../regex -I../../sql -I. -fast -xunroll=12 -xarch=ssse3 -m64 -DHAVE_RWLOCK_T -c ha_myisam.cc  -KPIC -DPIC -o .libs/libmyisam_s_la-ha_myisam.o
"../../include/my_compare.h", line 118: Warning: Identifier expected instead of "}".
"../../sql/gcalc_slicescan.h", line 191: Error: A declaration does not specify a tag or an identifier.
"../../sql/gcalc_slicescan.h", line 202: Error: A declaration does not specify a tag or an identifier.
"../../sql/gcalc_slicescan.h", line 208: Error: A declaration does not specify a tag or an identifier.
"../../sql/gcalc_slicescan.h", line 209: Warning: Types cannot be declared in anonymous union.
"../../sql/gcalc_slicescan.h", line 212: Error: left is not defined.
"../../sql/gcalc_slicescan.h", line 214: Error: top_node is not defined.
"../../sql/gcalc_slicescan.h", line 386: Error: shape is not a member of Gcalc_heap::Info.
"../../sql/item.h", line 3564: Warning: arg hides Item_insert_value::arg.
"../../sql/sql_join_cache.h", line 554: Warning: Identifier expected instead of "}".
"ha_myisam.cc", line 745: Warning (Anachronism): Assigning extern "C" void(*)(const char*) to void(*)(const char*).
6 Error(s) and 5 Warning(s) detected.
gmake[2]: *** [libmyisam_s_la-ha_myisam.lo] Error 1



 Comments   
Comment by gfischer [ 2013-08-31 ]

this can be solved by using the -features=extensions compiler option to accept anonymous structures.
in addition remove the -fimplicit-template option from plugin/handler_socket/client/Makefile to get a successful build.

EDIT: seems i can't change this to solved. please do so if you feel like it

Generated at Thu Feb 08 07:00:42 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.