[MDEV-28050] Error on compiling of storage/maria/ma_open.c Created: 2022-03-13  Updated: 2022-03-14  Resolved: 2022-03-14

Status: Closed
Project: MariaDB Server
Component/s: Storage Engine - Aria
Affects Version/s: None
Fix Version/s: 10.9.0, 10.5.16, 10.6.8, 10.7.4, 10.8.3

Type: Bug Priority: Blocker
Reporter: Dmitry Shulga Assignee: Marko Mäkelä
Resolution: Fixed Votes: 0
Labels: None


 Description   

In file included from server-10.9/storage/maria/ma_open.c:27:
server-10.9/storage/maria/s3_func.h:144:24: error: redefinition of typedef 'S3_INFO' is a C11 feature [-Werror,-Wtypedef-redefinition]
typedef struct s3_info S3_INFO;
                       ^
server-10.9/storage/maria/maria_def.h:170:24: note: previous definition is here
typedef struct s3_info S3_INFO;

Running make with the option VERBOSE=1 shows that compiler is invoked with the option -std=gnu99 that is the reason of the above compilation failure.



 Comments   
Comment by Marko Mäkelä [ 2022-03-14 ]

This redundant typedef was only present in the cmake -DPLUGIN_S3=NO build was exposed by a change by me to specify the C dialect that we are using. Previously, each compiler was allowed to guess, and end up choosing (among others) the 1990, 1999, or 2011 version of ISO/IEC 9899.

Generated at Thu Feb 08 09:57:40 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.