[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[screen-devel] [bug #42246] 4.2.1 regression: compile error with Sun Stu
From: |
Rob Levandowski |
Subject: |
[screen-devel] [bug #42246] 4.2.1 regression: compile error with Sun Studio 12 on Solaris 10 |
Date: |
Wed, 30 Apr 2014 14:56:45 +0000 |
User-agent: |
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_2) AppleWebKit/537.75.14 (KHTML, like Gecko) Version/7.0.3 Safari/537.75.14 |
Follow-up Comment #1, bug #42246 (project screen):
Hm, it may not be limited to Sun Studio. I tried compiling with GCC 4.8.2, and
got similar errors:
/opt/LIBRgcc4/bin/gcc -c -I. -I. -DETCSCREENRC='"/usr/local/etc/screenrc"'
-DSCREENENCODINGS='"/usr/local/share/screen/utf8encodings"' -DHAVE_CONFIG_H
-DGIT_REV=""`git describe --always 2>/dev/null`""
-mcpu=v9 -mno-vis -mno-vis2 -mno-vis3 -m64 socket.c
/bin/sh: git: not found
socket.c: In function 'ReceiveMsg':
socket.c:990:16: warning: assignment from incompatible pointer type [enabled
by default]
iov.iov_base = &m;
^
socket.c:994:6: error: 'struct msghdr' has no member named 'msg_controllen'
msg.msg_controllen = sizeof(control);
^
socket.c:995:6: error: 'struct msghdr' has no member named 'msg_control'
msg.msg_control = &control;
^
socket.c:1007:14: error: 'struct msghdr' has no member named 'msg_controllen'
if (msg.msg_controllen)
^
socket.c:1010:14: warning: assignment makes pointer from integer without a
cast [enabled by default]
for (cmsg = CMSG_FIRSTHDR(&msg); cmsg; cmsg = CMSG_NXTHDR(&msg, cmsg))
^
socket.c:1010:48: warning: assignment makes pointer from integer without a
cast [enabled by default]
for (cmsg = CMSG_FIRSTHDR(&msg); cmsg; cmsg = CMSG_NXTHDR(&msg, cmsg))
^
socket.c:1016:13: warning: cast to pointer from integer of different size
[-Wint-to-pointer-cast]
cp = (char *)CMSG_DATA(cmsg);
^
socket.c: In function 'SendAttachMsg':
socket.c:1801:6: error: 'struct msghdr' has no member named 'msg_control'
msg.msg_control = buf;
^
socket.c:1802:6: error: 'struct msghdr' has no member named 'msg_controllen'
msg.msg_controllen = sizeof(buf);
^
socket.c:1803:8: warning: assignment makes pointer from integer without a cast
[enabled by default]
cmsg = CMSG_FIRSTHDR(&msg);
^
socket.c:1807:3: warning: passing argument 2 of 'bcopy' makes pointer from
integer without a cast [enabled by default]
bcopy(&fd, CMSG_DATA(cmsg), sizeof(int));
^
In file included from os.h:83:0,
from screen.h:30,
from socket.c:42:
/usr/include/strings.h:25:13: note: expected 'void *' but argument is of type
'int'
extern void bcopy(const void *, void *, size_t);
^
socket.c:1808:6: error: 'struct msghdr' has no member named 'msg_controllen'
msg.msg_controllen = cmsg->cmsg_len;
^
gmake: *** [socket.o] Error 1
This is with configure options --enable-pam, --enable-use-locale, and
--enable-colors256 on Solaris 10 Update 11, kernel 150400-09.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?42246>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/