Re: Building librbd on Alpine compilation errors

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Oct 30, 2018 at 8:39 AM Beierl, Mark <Mark.Beierl@xxxxxxxx> wrote:
>
> On 2018-10-29, 17:58, "ceph-devel-owner@xxxxxxxxxxxxxxx on behalf of Willem Jan Withagen" <ceph-devel-owner@xxxxxxxxxxxxxxx on behalf of wjw@xxxxxxxxxxx> wrote:
>
> >
>     >> On Oct 29, 2018, at 17:07, Willem Jan Withagen <wjw@xxxxxxxxxxx> wrote:
>     >>
>     >>
>     >>> On 29-10-2018 22:01, Beierl, Mark wrote:
>     >>> On 2018-10-29, 16:57, "ceph-devel-owner@xxxxxxxxxxxxxxx on behalf of Willem Jan Withagen" <ceph-devel-owner@xxxxxxxxxxxxxxx on behalf of wjw@xxxxxxxxxxx> wrote:
>     >>> On 29-10-2018 21:45, Noah Watkins wrote:
>     >>>      >>
>     >>>      >> TEMP_FAILURE_RETRY is included in src/include/compat.h, but that isn’t included in blkdev.cc, so I am not sure how this is supposed to compile?  What am I missing?
>     >>>      >
>     >>>      > This is probably because musl c doesn't provide that macro (found in
>     >>>      > unistd.h on glibc). I suspect then that blkdev.cc should include the
>     >>>      > compat header.
>     >>>      >
>     >>>           This is indeed fixable by including compat.h
>     >>>      ACCESSPERMS is a bit more complicated, unless we lift the definition for
>     >>>      missing that also compat.h
>     >>>           ./src/client/posix_acl.cc:6:#ifndef ACCESSPERMS
>     >>>      ./src/client/posix_acl.cc:7:#define ACCESSPERMS (S_IRWXU|S_IRWXG|S_IRWXO)
>     >>>      ./src/client/posix_acl.cc:115:    *mode_p = (*mode_p & ~ACCESSPERMS) | mode;
>     >>>      ./src/client/posix_acl.cc:177:  *mode_p = (*mode_p & ~ACCESSPERMS) | mode;
>     >>>      ./src/common/common_init.cc:129:      if (!(ret & (~ACCESSPERMS))) {
>     >>>           Let me know if you don't want to make a PR for this yourself, then I'll
>     >>>      put one in.
>     >>>           --WjW
>     >>>      Sorry, is the suggestion to put ACCESSPERMS into compat.h instead of posix_acl.cc?
>     >>> I’m not super familiar with the PR process (coming from a Gerrit background), so I would appreciate if you could open one for this.
>     >> I would think that that would be the easiest fix to do.
>     >> Got to find an hour to get this done.
>     >>
>     >> --WjW
>     >>
>     >>
>     > Thanks, Willem.
>     >
>     > I can take a stab at creating a PR on Wednesday if you don’t get the time.
>     >
>     > Regards,
>     > Mark
>     https://github.com/ceph/ceph/pull/24813
>
>     --WjW
>
> Thanks.
>
> One more thing: how to get tell the Makefile to install the header files too?  Eventually I am looking to build an FIO that can work under Alpine.

i assume you want to build the rbd engine for fio. so you could
prepare the librbd header and library using:

cd build
make install -C src/include # install the headers
make install -C src/librbd  # install the library

>
> Regards,
> Mark.
>


-- 
Regards
Kefu Chai




[Index of Archives]     [CEPH Users]     [Ceph Large]     [Information on CEPH]     [Linux BTRFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux