[Gluster-devel] gcc version dependency?

rhubbell rhubbell at ihubbell.com
Sat Nov 8 18:37:46 UTC 2008


On Sat, 2008-11-08 at 17:10 +0530, Anand Avati wrote:
> 
>         
>On Fri, 2008-11-07 at 10:26 -0800, rhubbell wrote:
>> > Hello all,
>> > 
>> > Is there a version dependency on gcc and gluster?
>> > Is there currently a preference by devs? gcc3 or 4?
>> > 
>> > 
>> 
>> I ended up building with gcc4 and I got it built on Solaris10.
>> I also built it on redhat linux from the same tar ball, 1.4pre7
>> 
>> I started with a simple setup and I am unable to get the linux box to
>> mount the solaris gfs.
>> 
>> I installed the fuse-gfs and built that and loaded the kernel module
>> fine on the linux client.
>> 
>> Error on client:
>> 
>> client: SETVOLUME on remote-host failed: ret=-2 reply=@0x8fcd270
>> 
>> ls on the mount point produces:
>> 
>> Transport endpoint is not connected
>> 
>> 
>> 
>> server errors (not exact):
>> 
>> server: socket header validation failed 
>> socket.c:492  socket header has incorrect size1=3120562176
>> 

> 
> you are probably running 1.3.x against 1.4.x
> 
> avati 
> 
Not sure why you reached that conclusion as I specifically pointed out
that I built from the same tar ball on solaris and linux.

I have to guess that something in the error is familiar.

I confirmed that I'm running the same version on client and server.


Here's some additional data, if you have better ideas to troubleshoot or
other data that would help to narrow this down I'm all ears. (^:



Server (running solaris10 - from the log file):
---------------------------

2008-11-08 13:27:58 E [socket.c:492:__socket_proto_validate_header]
server: socket header has incorrect size1=3120562176
2008-11-08 13:27:58 E [socket.c:588:socket_proto_state_machine] server:
socket header validation failed
2008-11-08 13:27:58 C [server-protocol.c:7176:server_protocol_cleanup]
server: connection private (null) for transport 7dad8
2008-11-08 13:27:58 D [socket.c:1292:fini] server: transport 7dad8
destroyed



Client (running redhat -- from strace -e trace=network -fF glusterfsd -L
DEBUG -f /usr/local/etc/glusterfs/glusterfs-client /gfs ):
-----------------------------------------------------------------------------------------------------------------

pid   809] socket(PF_NETLINK, SOCK_RAW, 0) = 7
[pid   809] bind(7, {sa_family=AF_NETLINK, pid=0, groups=00000000}, 12)
= 0
[pid   809] getsockname(7, {sa_family=AF_NETLINK, pid=809,
groups=00000000}, [12]) = 0
[pid   809] sendto(7, "\24\0\0\0\26\0\1\3\1\333\25I\0\0\0\0\0\0\0\0",
20, 0, {sa_family=AF_NETLINK, pid=0, groups=00000000}, 12) = 20
[pid   809] recvmsg(7, {msg_name(12)={sa_family=AF_NETLINK, pid=0,
groups=00000000}, msg_iov(1)=[{"<\0\0\0\24\0\2\0\1\333\25I)\3\0\0\2\10
\200\376\1\0\0\0\10\0\1\0\177\0\0\1"..., 4096}], msg_controllen=0,
msg_flags=0}, 0) = 536
[pid   809] recvmsg(7, {msg_name(12)={sa_family=AF_NETLINK, pid=0,
groups=00000000}, msg_iov(1)=[{"@\0\0\0\24\0\2\0\1\333\25I)\3\0\0\n\200
\200\376\1\0\0\0\24\0\1\0\0\0\0\0"..., 4096}], msg_controllen=0,
msg_flags=0}, 0) = 256
[pid   809] recvmsg(7, {msg_name(12)={sa_family=AF_NETLINK, pid=0,
groups=00000000}, msg_iov(1)=[{"\24\0\0\0\3\0\2\0\1\333\25I)\3\0\0\0\0\0
\0\1\0\0\0\24\0\1\0\0\0\0\0"..., 4096}], msg_controllen=0, msg_flags=0},
0) = 20
[pid   809] socket(PF_INET, SOCK_STREAM, IPPROTO_IP) = 7
[pid   809] bind(7, {sa_family=AF_INET, sin_port=htons(1023),
sin_addr=inet_addr("192.168.72.30")}, 16) = 0
[pid   809] connect(7, {sa_family=AF_INET, sin_port=htons(6996),
sin_addr=inet_addr("192.168.76.172")}, 16) = -1 EINPROGRESS (Operation
now in progress)
[pid   806] getsockopt(7, SOL_SOCKET, SO_ERROR, [0], [4]) = 0
[pid   806] getsockname(7, {sa_family=AF_INET, sin_port=htons(1023),
sin_addr=inet_addr("192.168.72.30")}, [16]) = 0
[pid   809] socket(PF_NETLINK, SOCK_RAW, 0) = 7
[pid   809] bind(7, {sa_family=AF_NETLINK, pid=0, groups=00000000}, 12)
= 0
[pid   809] getsockname(7, {sa_family=AF_NETLINK, pid=809,
groups=00000000}, [12]) = 0
[pid   809] sendto(7, "\24\0\0\0\26\0\1\3\r\333\25I\0\0\0\0\0\0\0\0",
20, 0, {sa_family=AF_NETLINK, pid=0, groups=00000000}, 12) = 20
[pid   809] recvmsg(7, {msg_name(12)={sa_family=AF_NETLINK, pid=0,
groups=00000000}, msg_iov(1)=[{"<\0\0\0\24\0\2\0\r\333\25I)\3\0\0\2\10
\200\376\1\0\0\0\10\0\1\0\177\0\0\1"..., 4096}], msg_controllen=0,
msg_flags=0}, 0) = 536
[pid   809] recvmsg(7, {msg_name(12)={sa_family=AF_NETLINK, pid=0,
groups=00000000}, msg_iov(1)=[{"@\0\0\0\24\0\2\0\r\333\25I)\3\0\0\n\200
\200\376\1\0\0\0\24\0\1\0\0\0\0\0"..., 4096}], msg_controllen=0,
msg_flags=0}, 0) = 256
[pid   809] recvmsg(7, {msg_name(12)={sa_family=AF_NETLINK, pid=0,
groups=00000000}, msg_iov(1)=[{"\24\0\0\0\3\0\2\0\r\333\25I)\3\0\0\0\0\0
\0\1\0\0\0\24\0\1\0\0\0\0\0"..., 4096}], msg_controllen=0, msg_flags=0},
0) = 20
[pid   809] socket(PF_INET, SOCK_STREAM, IPPROTO_IP) = 7
[pid   809] bind(7, {sa_family=AF_INET, sin_port=htons(1023),
sin_addr=inet_addr("192.168.72.30")}, 16) = 0
[pid   809] connect(7, {sa_family=AF_INET, sin_port=htons(6996),
sin_addr=inet_addr("192.168.76.172")}, 16) = -1 EINPROGRESS (Operation
now in progress)
[pid   806] getsockopt(7, SOL_SOCKET, SO_ERROR, [0], [4]) = 0
[pid   806] getsockname(7, {sa_family=AF_INET, sin_port=htons(1023),
sin_addr=inet_addr("192.168.72.30")}, [16]) = 0









More information about the Gluster-devel mailing list