Skip to content

Instantly share code, notes, and snippets.

@rcallahan

rcallahan/error Secret

Last active December 24, 2015 07:59
Show Gist options
  • Save rcallahan/bac483d8685431107305 to your computer and use it in GitHub Desktop.
Save rcallahan/bac483d8685431107305 to your computer and use it in GitHub Desktop.
libged
In file included from /usr/include/w32api/winsock.h:36:0,
from /home/rcallahan/brlcad-7.24.0/src/libpkg/pkg.c:50:
/usr/include/w32api/psdk_inc/_fd_types.h:100:2: error: #warning "fd_set and associated macros have been defined in sys/types. This can cause runtime problems with W32 sockets" [-Werror=cpp]
#warning "fd_set and associated macros have been defined in sys/types. \
^
In file included from /home/rcallahan/brlcad-7.24.0/src/libpkg/pkg.c:50:0:
/usr/include/w32api/winsock.h:299:34: error: conflicting types for ‘select’
WINSOCK_API_LINKAGE int WSAAPI select(int nfds,fd_set *readfds,fd_set *writefds,fd_set *exceptfds,const PTIMEVAL timeout);
^
In file included from /usr/include/cygwin/sys_time.h:13:0,
from /usr/include/sys/time.h:61,
from /home/rcallahan/brlcad-7.24.0/src/libpkg/pkg.c:39:
/usr/include/sys/select.h:31:5: note: previous declaration of ‘select’ was here
int select __P ((int __n, fd_set *__readfds, fd_set *__writefds,
^
In file included from /usr/include/sys/un.h:15:0,
from /home/rcallahan/brlcad-7.24.0/src/libpkg/pkg.c:72:
/usr/include/cygwin/socket.h:31:8: error: redefinition of ‘struct sockaddr’
struct sockaddr {
^
In file included from /usr/include/w32api/winsock.h:37:0,
from /home/rcallahan/brlcad-7.24.0/src/libpkg/pkg.c:50:
/usr/include/w32api/psdk_inc/_ip_types.h:70:8: note: originally defined here
struct sockaddr {
^
In file included from /usr/include/sys/un.h:15:0,
from /home/rcallahan/brlcad-7.24.0/src/libpkg/pkg.c:72:
/usr/include/cygwin/socket.h:62:8: error: redefinition of ‘struct linger’
struct linger {
^
In file included from /usr/include/w32api/winsock.h:37:0,
from /home/rcallahan/brlcad-7.24.0/src/libpkg/pkg.c:50:
/usr/include/w32api/psdk_inc/_ip_types.h:63:8: note: originally defined here
struct linger {
^
/home/rcallahan/brlcad-7.24.0/src/libpkg/pkg.c: In function ‘_pkg_permserver_impl’:
/home/rcallahan/brlcad-7.24.0/src/libpkg/pkg.c:575:9: error: cast from pointer to integer of different size [-Werror=pointer-to-int-cast]
return (int)PKC_ERROR;
^
/home/rcallahan/brlcad-7.24.0/src/libpkg/pkg.c:588:13: error: cast from pointer to integer of different size [-Werror=pointer-to-int-cast]
return (int)PKC_ERROR;
^
/home/rcallahan/brlcad-7.24.0/src/libpkg/pkg.c:593:68: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
if ((pkg_listenfd = socket(AF_INET, SOCK_STREAM, IPPROTO_TCP)) == INVALID_SOCKET) {
^
/home/rcallahan/brlcad-7.24.0/src/libpkg/pkg.c:595:9: error: cast from pointer to integer of different size [-Werror=pointer-to-int-cast]
return (int)PKC_ERROR;
^
/home/rcallahan/brlcad-7.24.0/src/libpkg/pkg.c:605:9: error: cast from pointer to integer of different size [-Werror=pointer-to-int-cast]
return (int)PKC_ERROR;
^
/home/rcallahan/brlcad-7.24.0/src/libpkg/pkg.c:615:9: error: cast from pointer to integer of different size [-Werror=pointer-to-int-cast]
return (int)(PKC_ERROR);
^
/home/rcallahan/brlcad-7.24.0/src/libpkg/pkg.c: In function ‘pkg_getclient’:
/home/rcallahan/brlcad-7.24.0/src/libpkg/pkg.c:761:2: error: implicit declaration of function ‘ioctl’ [-Werror=implicit-function-declaration]
if (ioctl(fd, FIONBIO, &onoff) < 0)
^
/home/rcallahan/brlcad-7.24.0/src/libpkg/pkg.c:776:26: error: passing argument 2 of ‘accept’ from incompatible pointer type [-Werror]
s2 = accept(fd, (struct sockaddr *)NULL, NULL);
^
In file included from /home/rcallahan/brlcad-7.24.0/src/libpkg/pkg.c:50:0:
/usr/include/w32api/winsock.h:277:37: note: expected ‘struct sockaddr *’ but argument is of type ‘struct sockaddr *’
WINSOCK_API_LINKAGE SOCKET WSAAPI accept(SOCKET s,struct sockaddr *addr,int *addrlen);
^
/home/rcallahan/brlcad-7.24.0/src/libpkg/pkg.c: In function ‘_pkg_checkin’:
/home/rcallahan/brlcad-7.24.0/src/libpkg/pkg.c:916:5: error: passing argument 5 of ‘select’ from incompatible pointer type [-Werror]
i = select(pc->pkc_fd+1, &bits, (fd_set *)0, (fd_set *)0, &tv);
^
In file included from /home/rcallahan/brlcad-7.24.0/src/libpkg/pkg.c:50:0:
/usr/include/w32api/winsock.h:299:34: note: expected ‘PTIMEVAL’ but argument is of type ‘struct timeval *’
WINSOCK_API_LINKAGE int WSAAPI select(int nfds,fd_set *readfds,fd_set *writefds,fd_set *exceptfds,const PTIMEVAL timeout);
^
cc1: all warnings being treated as errors
make[2]: *** [src/libpkg/CMakeFiles/libpkg.dir/pkg.c.o] Error 1
make[1]: *** [src/libpkg/CMakeFiles/libpkg.dir/all] Error 2
make: *** [all] Error 2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment