[MCOL-1301] mcsapi won't compile with Python3 in Debug mode in CentOS 7 Created: 2018-03-23  Updated: 2023-10-26  Resolved: 2018-09-06

Status: Closed
Project: MariaDB ColumnStore
Component/s: None
Affects Version/s: None
Fix Version/s: 1.1.6

Type: Bug Priority: Minor
Reporter: Andrew Hutchings (Inactive) Assignee: David Thompson (Inactive)
Resolution: Fixed Votes: 0
Labels: None

Sprint: 2018-15, 2018-16, 2018-17

 Description   

When python34 and python34-devel is installed in CentOS 7 the API fails to compile. It has the following errors:

/home/linuxjedi/Programming/Git/mariadb-columnstore-api/python/pymcsapi_wrap.cxx: In function ‘PyTypeObject* SwigPyObject_TypeOnce()’:
/home/linuxjedi/Programming/Git/mariadb-columnstore-api/python/pymcsapi_wrap.cxx:1968:5: error: missing initializer for member ‘_typeobject::tp_finalize’ [-Werror=missing-field-initializers]
     };
     ^
/home/linuxjedi/Programming/Git/mariadb-columnstore-api/python/pymcsapi_wrap.cxx: In function ‘PyTypeObject* SwigPyPacked_TypeOnce()’:
/home/linuxjedi/Programming/Git/mariadb-columnstore-api/python/pymcsapi_wrap.cxx:2147:5: error: missing initializer for member ‘_typeobject::tp_finalize’ [-Werror=missing-field-initializers]
     };
     ^
/home/linuxjedi/Programming/Git/mariadb-columnstore-api/python/pymcsapi_wrap.cxx: In function ‘PyTypeObject* swig_varlink_type()’:
/home/linuxjedi/Programming/Git/mariadb-columnstore-api/python/pymcsapi_wrap.cxx:10291:7: error: missing initializer for member ‘_typeobject::tp_finalize’ [-Werror=missing-field-initializers]
       };
       ^



 Comments   
Comment by Jens Röwekamp (Inactive) [ 2018-03-23 ]

cmake -DCMAKE_BUILD_TYPE=Debug .
make -j4

Comment by Andrew Hutchings (Inactive) [ 2018-03-23 ]

Will require a new version of Swig which we may well need for other connectors later down the line. Since this is only an issue for debug builds we can wait.

Comment by Jens Röwekamp (Inactive) [ 2018-08-01 ]

We needed to update to Swig 3.0.12 on CentOS due to MCOL-1612.

This change will solve this error as well.

Comment by Jens Röwekamp (Inactive) [ 2018-08-01 ]

For QA:
confirm that CentOS can build the debug version of the api.

Comment by David Thompson (Inactive) [ 2018-09-06 ]

Verified, added a note in the Readme.md to uninstall os version of swig on centos7 first otherwise cmake tries to use the os version and fails the version check.

Generated at Thu Feb 08 02:27:43 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.