Skip to content

build: fix compilation against tarantool 2.10.3+ #27

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 4, 2022

Conversation

Totktonada
Copy link
Member

@Totktonada Totktonada commented Oct 3, 2022

An inclusion of string.h header file was removed from tarantool/module.h in tarantool 2.10.3, see tarantool/tarantool#7663.

This module uses strstr(), strlen() and memcpy() functions defined by string.h, so it must include this header.

The problem affects the Debug build type, which is default for the cmake . && make build flow (it is usually used by developers of the module). This build type adds -Werror compilation flag. However the problem doesn't affect the tarantoolctl rocks install tuple-keydef [<version>] build flow, because it uses the RelWithDebInfo build type. All compiler warnings are just warnings here.

Fixes #24

An inclusion of `string.h` header file was removed from
`tarantool/module.h` in tarantool 2.10.3, see [1].

This module uses `strstr()`, `strlen()` and `memcpy()` functions defined
by `string.h`, so it must include this header.

The problem affects the `Debug` build type, which is default for the
`cmake . && make` build flow (it is usually used by developers of the
module). This build type adds `-Werror` compilation flag. However the
problem doesn't affect the `tarantoolctl rocks install tuple-keydef
[<version>]` build flow, because it uses the `RelWithDebInfo` build
type. All compiler warnings are just warnings here.

[1]: tarantool/tarantool#7663

Fixes #24
@Totktonada Totktonada force-pushed the Totktonada/gh-24-add-include-string-h branch from cba1a3b to ddf1068 Compare October 4, 2022 21:27
@Totktonada Totktonada merged commit fa575df into master Oct 4, 2022
@Totktonada Totktonada deleted the Totktonada/gh-24-add-include-string-h branch October 4, 2022 21:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Cannot build tuple-keydef with Tarantool 2.10.3-0-g8aca8a1
2 participants