Bug 762719 (GLUSTER-987)

Summary: Solaris compilation fails
Product: [Community] GlusterFS Reporter: Lakshmipathi G <lakshmipathi>
Component: buildAssignee: Shehjar Tikoo <shehjart>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: high Docs Contact:
Priority: low    
Version: mainlineCC: gluster-bugs, shehjart, vijay
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: ---
Regression: RTP Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Lakshmipathi G 2010-06-07 12:22:04 UTC
Solaris compilation failed with following error message:

make[4]: Nothing to be done for `all-am'.
make[4]: Leaving directory `/export/home/gluster/laks/glusterfs-3.0.5rc5/scheduler/rr'
make[3]: Leaving directory `/export/home/gluster/laks/glusterfs-3.0.5rc5/scheduler/rr'
Making all in switch
make[3]: Entering directory `/export/home/gluster/laks/glusterfs-3.0.5rc5/scheduler/switch'
Making all in src
make[4]: Entering directory `/export/home/gluster/laks/glusterfs-3.0.5rc5/scheduler/switch/src'
source='switch.c' object='switch.lo' libtool=yes \
DEPDIR=.deps depmode=none /bin/bash ../../../depcomp \
/bin/bash ../../../libtool --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I../../..    -fPIC -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -Wall -DGF_SOLARIS_HOST_OS -I../../../libglusterfs/src -shared -nostartfiles -I../../../argp-standalone -D_REENTRANT -g -O2 -c -o switch.lo switch.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../../.. -fPIC -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -Wall -DGF_SOLARIS_HOST_OS -I../../../libglusterfs/src -nostartfiles -I../../../argp-standalone -D_REENTRANT -g -O2 -c switch.c  -fPIC -DPIC -o .libs/switch.o
/bin/bash ../../../libtool --tag=CC   --mode=link gcc -fPIC -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -Wall -DGF_SOLARIS_HOST_OS -I../../../libglusterfs/src -shared -nostartfiles -I../../../argp-standalone -D_REENTRANT -g -O2 -module -avoidversion  -o switch.la -rpath /export/home/gluster/laks/3.0.5rc5/lib/glusterfs/3.0.5rc5/scheduler switch.lo ../../../libglusterfs/src/libglusterfs.la -lpthread
libtool: link: gcc -shared -Wl,-z -Wl,text -Wl,-h -Wl,switch.so.0 -o .libs/switch.so.0.0.0  .libs/switch.o   -R/export/home/gluster/laks/glusterfs-3.0.5rc5/libglusterfs/src/.libs -R/export/home/gluster/laks/3.0.5rc5/lib ../../../libglusterfs/src/.libs/libglusterfs.so -lfl -lpthread -lc  
libtool: link: (cd ".libs" && rm -f "switch.so.0" && ln -s "switch.so.0.0.0" "switch.so.0")
libtool: link: (cd ".libs" && rm -f "switch.so" && ln -s "switch.so.0.0.0" "switch.so")
libtool: link: ( cd ".libs" && rm -f "switch.la" && ln -s "../switch.la" "switch.la" )
make[4]: Leaving directory `/export/home/gluster/laks/glusterfs-3.0.5rc5/scheduler/switch/src'
make[4]: Entering directory `/export/home/gluster/laks/glusterfs-3.0.5rc5/scheduler/switch'
make[4]: Nothing to be done for `all-am'.
make[4]: Leaving directory `/export/home/gluster/laks/glusterfs-3.0.5rc5/scheduler/switch'
make[3]: Leaving directory `/export/home/gluster/laks/glusterfs-3.0.5rc5/scheduler/switch'
make[3]: Entering directory `/export/home/gluster/laks/glusterfs-3.0.5rc5/scheduler'
make[3]: Nothing to be done for `all-am'.
make[3]: Leaving directory `/export/home/gluster/laks/glusterfs-3.0.5rc5/scheduler'
make[2]: Leaving directory `/export/home/gluster/laks/glusterfs-3.0.5rc5/scheduler'
Making all in transport
make[2]: Entering directory `/export/home/gluster/laks/glusterfs-3.0.5rc5/transport'
Making all in socket
make[3]: Entering directory `/export/home/gluster/laks/glusterfs-3.0.5rc5/transport/socket'
Making all in src
make[4]: Entering directory `/export/home/gluster/laks/glusterfs-3.0.5rc5/transport/socket/src'
source='socket.c' object='socket.lo' libtool=yes \
DEPDIR=.deps depmode=none /bin/bash ../../../depcomp \
/bin/bash ../../../libtool --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I../../..    -fPIC -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -Wall -DGF_SOLARIS_HOST_OS -I../../../libglusterfs/src -shared -nostartfiles -I../../../argp-standalone -D_REENTRANT -g -O2 -c -o socket.lo socket.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../../.. -fPIC -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -Wall -DGF_SOLARIS_HOST_OS -I../../../libglusterfs/src -nostartfiles -I../../../argp-standalone -D_REENTRANT -g -O2 -c socket.c  -fPIC -DPIC -o .libs/socket.o
socket.c: In function `__socket_keepalive':
socket.c:268: error: `TCP_KEEPIDLE' undeclared (first use in this function)
socket.c:268: error: (Each undeclared identifier is reported only once
socket.c:268: error: for each function it appears in.)
socket.c:273: error: `TCP_KEEPINTVL' undeclared (first use in this function)
socket.c: In function `__socket_ioq_new':
socket.c:354: warning: assignment from incompatible pointer type
socket.c: In function `__socket_proto_validate_header':
socket.c:536: warning: long unsigned int format, size_t arg (arg 2)
socket.c:543: warning: long unsigned int format, size_t arg (arg 2)
socket.c: In function `__socket_proto_state_machine':
socket.c:594: warning: assignment from incompatible pointer type
socket.c: In function `socket_init':
socket.c:1440: warning: long unsigned int format, unsigned int arg (arg 2)
make[4]: *** [socket.lo] Error 1
make[4]: Leaving directory `/export/home/gluster/laks/glusterfs-3.0.5rc5/transport/socket/src'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/export/home/gluster/laks/glusterfs-3.0.5rc5/transport/socket'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/export/home/gluster/laks/glusterfs-3.0.5rc5/transport'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/export/home/gluster/laks/glusterfs-3.0.5rc5'
make: *** [all] Error 2
#

Comment 1 Anand Avati 2010-06-08 09:25:13 UTC
PATCH: http://patches.gluster.com/patch/3396 in master (Fix compilation failure on Solaris in __socket_keepalive())

Comment 2 Anand Avati 2010-06-09 02:01:44 UTC
PATCH: http://patches.gluster.com/patch/3394 in release-3.0 (Fix compilation failure on Solaris in __socket_keepalive())

Comment 3 Lakshmipathi G 2010-06-10 03:33:11 UTC
It's fixed - verified with 3.0.5rc6.

Comment 4 Shehjar Tikoo 2010-08-10 03:38:43 UTC
Re-opened to track latest solaris build failures. Target changed to 3.1

Comment 5 Shehjar Tikoo 2010-08-10 05:21:41 UTC
There was already a bug open for solaris buoild failures: 1178