Re: Compiling on Solaris 11

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

 



I fixed that particular issue as ucred.h was in /usr/include not /usr/include/sys so I made a symlink, unfortunately now I'm getting a new issue here:

../../contrib/mount/mntent.c: In function `statfs_to_mntent':
../../contrib/mount/mntent.c:129:36: error: dereferencing pointer to incomplete type
         _mntent.mnt_fsname = mntbuf->f_mntfromname;
                                    ^
../../contrib/mount/mntent.c:130:33: error: dereferencing pointer to incomplete type
         _mntent.mnt_dir = mntbuf->f_mntonname;
                                 ^
../../contrib/mount/mntent.c:131:34: error: dereferencing pointer to incomplete type
         _mntent.mnt_type = mntbuf->f_fstypename;
                                  ^
../../contrib/mount/mntent.c:136:25: error: dereferencing pointer to incomplete type
         f_flags = mntbuf->f_flags;
                         ^
../../contrib/mount/mntent.c: In function `getmntent':
../../contrib/mount/mntent.c:160:17: warning: implicit declaration of function `getmntinfo' [-Wimplicit-function-declaration]
                 mntsize = getmntinfo (&mntbuf, MNT_NOWAIT);
                 ^
../../contrib/mount/mntent.c:160:48: error: `MNT_NOWAIT' undeclared (first use in this function)
                 mntsize = getmntinfo (&mntbuf, MNT_NOWAIT);
                                                ^
../../contrib/mount/mntent.c:168:9: error: invalid use of undefined type `struct statfs'
         return (statfs_to_mntent (&mntbuf[pos]));
         ^
../../contrib/mount/mntent.c:168:42: error: dereferencing pointer to incomplete type
         return (statfs_to_mntent (&mntbuf[pos]));
                                          ^
../../contrib/mount/mntent.c:169:1: warning: control reaches end of non-void function [-Wreturn-type]
 }
 ^

On Fri, Oct 10, 2014 at 8:48 PM, Benjamin Kingston <list@xxxxxxxxxxxxxxx> wrote:
I went back and build 3.6 and 3.7 with the build failing in the same place when building libglusterfs


One thing I did find as different in the master build f5d544d:

../../contrib/mount/mntent.c as I receive an error when compiling libglusterfs stating sys/ucred.h is not found and mount.h.
I have the proper libraries in /usr/include, so I went to edit mntent.c to point them there (still not sure if I should use /usr/include/sys/mount.h or nfs/mount.h I tried both). I now get an error of

../../contrib/mount/mntent.c:169:1: warning: control reaches end of non-void function [-Wreturn-type]
 }

this may be a bug?


On Fri, Oct 10, 2014 at 6:13 PM, Benjamin Kingston <list@xxxxxxxxxxxxxxx> wrote:
I tried building the 3.6.0 tag last night to no avail, but I'll try the newer betas as well as the master branch tonight, maybe even the 3.7alpha for good measure. Good to hear about recent x-platform work, so maybe a hope.

As a side note, I'm considering using Solaris 11 as a tcp/ip NFS brick to a Centos 7 node, would that be inadvisable? This isn't production, just a lab for the moment.

On Fri, Oct 10, 2014 at 2:55 PM, Justin Clift <justin@xxxxxxxxxxx> wrote:
----- Original Message -----
> I'm trying to get gluster 3.5.2, or really any version at this point, to
> compile on Solaris so I can take advantage of ZFS and encryption. This
> would be a killer app for me, as I'm a big fan of gluster on linux, but I'm
> running into a number of road blocks with compiling.
>
> any pointers or success stories will be greatly appreciated.

As a thought, have you tried compiling 3.6.0 <latest beta>, or our upstream
master branch?

Asking because there's been a bunch of cross-platform portability work
happening over the last few months, which _might_ have made things easier
for Solaris too (unsure).

Worth a shot, just in case. :)

Regards and best wishes,

Justin Clift

--
GlusterFS - http://www.gluster.org

An open source, distributed file system scaling to several
petabytes, and handling thousands of clients.

My personal twitter: twitter.com/realjustinclift
_______________________________________________
Gluster-users mailing list
Gluster-users@xxxxxxxxxxx
http://supercolony.gluster.org/mailman/listinfo/gluster-users



_______________________________________________
Gluster-users mailing list
Gluster-users@xxxxxxxxxxx
http://supercolony.gluster.org/mailman/listinfo/gluster-users

[Index of Archives]     [Gluster Development]     [Linux Filesytems Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux