[Gluster-users] Compiling on Solaris 11

Benjamin Kingston list at nexusnebula.net
Wed Oct 8 21:34:36 UTC 2014


Here's the script I modified to point to 3.5.2 that got me further I forgot
to mention

https://forge.gluster.org/glusterfs-core/glusterfs/trees/b53bdce3ea4a73c6dd974f3d3e4d67d94a0b7186/extras/Solaris

On Wed, Oct 8, 2014 at 7:51 AM, Lalatendu Mohanty <lmohanty at redhat.com>
wrote:

>  +gluster-devel
>
>
> On 10/08/2014 02:31 PM, Benjamin Kingston wrote:
>
>  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.
>
>  At first I ran into gmake failing with all-recursive errors, then I
> repointed this old script to 3.5.2 and got a lot "further", but it still
> errors with the following:
>
> echo "  CC    " libglusterfs_la-common-utils.lo;/bin/sh ../../libtool
> --silent --tag=CC --quiet  --mode=compile gcc -DHAVE_CONFIG_H -I. -I../..
> -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -DGF_SOLARIS_HOST_OS
> -I../../libglusterfs/src -I../../contrib/uuid -D__USE_FILE_OFFSET64
> -DXLATORDIR=\"/opt/glusterfs/lib/glusterfs/3.5.2/xlator\"
> -I../../rpc/rpc-lib/src/ -I../../contrib/rbtree -I/usr/include/python2.6
> -I/usr/include/python2.6 -DNDEBUG -Wall -I../../argp-standalone
> -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -O0 -m64
> -DDATADIR=\"/opt/glusterfs/var\" -g -O2 -Wformat -Werror=format-security
> -Werror=implicit-function-declaration -I/usr/include/python2.6
> -I/usr/include/python2.6 -DNDEBUG -MT libglusterfs_la-common-utils.lo -MD
> -MP -MF .deps/libglusterfs_la-common-utils.Tpo -c -o
> libglusterfs_la-common-utils.lo `test -f 'common-utils.c' || echo
> './'`common-utils.c
> make: Fatal error: Command failed for target
> `libglusterfs_la-common-utils.lo'
> Current working directory
> /root/glus/glusterfs-core-glusterfs/extras/Solaris/source/libglusterfs/src
>
>  and later on
>
> *** Error code 1
> The following command caused the error:
> echo "  CC    " libglusterfs_la-common-utils.lo;/bin/sh ../../libtool
> --silent --tag=CC --quiet  --mode=compile gcc -DHAVE_CONFIG_H -I. -I../..
> -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -DGF_SOLARIS_HOST_OS
> -I../../libglusterfs/src -I../../contrib/uuid -D__USE_FILE_OFFSET64
> -DXLATORDIR=\"/opt/glusterfs/lib/glusterfs/3.5.2/xlator\"
> -I../../rpc/rpc-lib/src/ -I../../contrib/rbtree -I/usr/include/python2.6
> -I/usr/include/python2.6 -DNDEBUG -Wall -I../../argp-standalone
> -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -O0 -m64
> -DDATADIR=\"/opt/glusterfs/var\" -g -O2 -Wformat -Werror=format-security
> -Werror=implicit-function-declaration -I/usr/include/python2.6
> -I/usr/include/python2.6 -DNDEBUG -MT libglusterfs_la-common-utils.lo -MD
> -MP -MF .deps/libglusterfs_la-common-utils.Tpo -c -o
> libglusterfs_la-common-utils.lo `test -f 'common-utils.c' || echo
> './'`common-utils.c
> make: Fatal error: Command failed for target
> `libglusterfs_la-common-utils.lo'
> Current working directory
> /root/glus/glusterfs-core-glusterfs/extras/Solaris/source/libglusterfs/src
> *** Error code 1
> make: Fatal error: Command failed for target `install'
> Current working directory
> /root/glus/glusterfs-core-glusterfs/extras/Solaris/source/libglusterfs/src
> *** Error code 1
> The following command caused the error:
> fail= failcom='exit 1'; \
> for f in x $MAKEFLAGS; do \
>   case $f in \
>     *=* | --[!k]*);; \
>     *k*) failcom='fail=yes';; \
>   esac; \
> done; \
> dot_seen=no; \
> target=`echo install-recursive | sed s/-recursive//`; \
> list='src'; for subdir in $list; do \
>   echo "Making $target in $subdir"; \
>   if test "$subdir" = "."; then \
>     dot_seen=yes; \
>     local_target="$target-am"; \
>   else \
>     local_target="$target"; \
>   fi; \
>   (CDPATH="${ZSH_VERSION+.}:" && cd $subdir && make  $local_target) \
>   || eval $failcom; \
> done; \
> if test "$dot_seen" = "no"; then \
>   make  "$target-am" || exit 1; \
> fi; test -z "$fail"
> make: Fatal error: Command failed for target `install-recursive'
> Current working directory
> /root/glus/glusterfs-core-glusterfs/extras/Solaris/source/libglusterfs
> *** Error code 1
> The following command caused the error:
> fail= failcom='exit 1'; \
> for f in x $MAKEFLAGS; do \
>   case $f in \
>     *=* | --[!k]*);; \
>     *k*) failcom='fail=yes';; \
>   esac; \
> done; \
> dot_seen=no; \
> target=`echo install-recursive | sed s/-recursive//`; \
> list='argp-standalone libglusterfs rpc api xlators glusterfsd
> contrib/fuse-util doc extras cli heal'; for subdir in $list; do \
>   echo "Making $target in $subdir"; \
>   if test "$subdir" = "."; then \
>     dot_seen=yes; \
>     local_target="$target-am"; \
>   else \
>     local_target="$target"; \
>   fi; \
>   (CDPATH="${ZSH_VERSION+.}:" && cd $subdir && make  $local_target) \
>   || eval $failcom; \
> done; \
> if test "$dot_seen" = "no"; then \
>   make  "$target-am" || exit 1; \
> fi; test -z "$fail"
> make: Fatal error: Command failed for target `install-recursive'
>
> -ben
>
>
> _______________________________________________
> Gluster-users mailing listGluster-users at gluster.orghttp://supercolony.gluster.org/mailman/listinfo/gluster-users
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://supercolony.gluster.org/pipermail/gluster-users/attachments/20141008/659f9a1e/attachment.html>


More information about the Gluster-users mailing list