Skip to content
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

common/time: add time.h for Alpine build #19863

Merged
merged 1 commit into from Jan 22, 2018

Conversation

renhwztetecs
Copy link
Contributor

The following error, compiled in alpine:
"/src/common/ceph_time.h:209:4: error: invalid use of incomplete type 'struct ceph :: time_detail :: timeval'.
Updating the linker or the compiler may solve it, but there are some restrictions in alpine.

Signed-off-by: huanwen ren ren.huanwen@zte.com.cn

@tchaikov
Copy link
Contributor

@dx9 mind taking a look?

@dx9
Copy link
Contributor

dx9 commented Jan 12, 2018

LGTM

Build fails with gcc version 6.4.0 on Alpine 3.7 without this change.

POSIX header <sys/time.h> shall define timeval - http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/sys_time.h.html

@tchaikov
Copy link
Contributor

@dx9 thanks for testing this fix!

@renhwztetecs needs to rebase against master.

We create the Alpine apk package to view "https://github.com/ceph/ceph/blob/master/README.alpine.md",
at compile time found the following error:
"/src/common/ceph_time.h:209:4: error: invalid use of incomplete type 'struct ceph :: time_detail :: timeval'.

Signed-off-by: huanwen ren <ren.huanwen@zte.com.cn>
@renhwztetecs
Copy link
Contributor Author

@tchaikov thank you
updated

@tchaikov tchaikov merged commit 41fd350 into ceph:master Jan 22, 2018
@renhwztetecs renhwztetecs deleted the renhw-wip-common-time branch January 22, 2018 10:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants