Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 4 Jan 2014 19:46:22 GMT
From:      Tom Russo <russo@bogodyn.org>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/185473: emulators/wine-devel compilation failure
Message-ID:  <201401041946.s04JkM4E083449@oldred.freebsd.org>
Resent-Message-ID: <201401041950.s04Jo0DV056587@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         185473
>Category:       ports
>Synopsis:       emulators/wine-devel compilation failure
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Jan 04 19:50:00 UTC 2014
>Closed-Date:
>Last-Modified:
>Originator:     Tom Russo
>Release:        9.2-STABLE
>Organization:
>Environment:
FreeBSD bogodyn.org 9.2-STABLE FreeBSD 9.2-STABLE #0 r259033: Fri Dec  6 12:35:22 MST 2013     russo@bogodyn.org:/usr/obj/usr/src/sys/BOGODYN  i386
>Description:
Trying to update wine-devel from 1.7.9 to 1.7.10, got the following compilation error:

socket.c: In function 'is_sockaddr_bound':
socket.c:1476:35: error: invalid operands to binary || (have 'int' and 'union ipx_net')


The offending line is in socket.c in wine-1.7.10/dlls/ws2_32:

            return ipx->sipx_port || ipx->sipx_network || memcmp(&ipx->sipx_node, &emptyAddr.sipx_node, sizeof(emptyAddr.sipx_node));

ipx->sipx_network is not an int, it's a union ipx_net, as seen in /usr/include/netipx/ipx.h:

struct ipx_addr {
        union ipx_net   x_net;
        union ipx_host  x_host;
        u_short         x_port;
};

struct sockaddr_ipx {
        u_char          sipx_len;
        u_char          sipx_family;
        struct ipx_addr sipx_addr;
        char            sipx_zero[2];
};

ipx on line 1476 is of type sockaddr_ipx *, and sipx_network is #defined at the top of socket.h as sipx_addr.x_net

>How-To-Repeat:
Try to build wine-devel 1.7.10 on FreeBSD 9.2.

>Fix:


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201401041946.s04JkM4E083449>