Hello everybody,




This is my first time trying to figure out if something is a regression , so I need to build an older version of wine.

The application involved was reported to work in the past on wine 1.9.20. As that was also an older version of the application it is not clear weather a change in wine or a change in the application broke support, so I want to run the current version on wine 1.9.20.




Sadly that build fails. The part from where the red text start ed appearing is attached below.

The system is a current installation of Archlinux.

Can anyone help me out here with what needs to be adjusted here.

This is my first time posting to this list, so if this is the wrong place or information is missing, please tell and I will adjust.




(following https://wiki.winehq.org/Regression_Testing#Preliminary_notes I went back to the winehq-packaged wine 2.0.4 version to test on debian buster, but that seems not far back enough sadly.)




Thanks!




...




In file included from /usr/include/pcap/socket.h:68,

                 from /usr/include/pcap/pcap.h:87,

                 from wpcap.c:21:

/usr/include/netdb.h:74: note: this is the location of the previous definition

   74 | # define NO_ADDRESS NO_DATA /* No address, look for MX record.  */

      |

In file included from ../../include/winsock2.h:47,

                 from wpcap.c:22:

../../include/winsock.h:1009:18: error: conflicting types for ‘accept’

1009 | SOCKET WINAPI WS(accept)(SOCKET,struct WS(sockaddr)*,int*);

      |                  ^~~~~~

../../include/winsock.h:136:19: note: in definition of macro ‘WS’

  136 | # define WS(x)    x

      |                   ^

In file included from /usr/include/pcap/socket.h:67,

                 from /usr/include/pcap/pcap.h:87,

                 from wpcap.c:21:

/usr/include/sys/socket.h:232:12: note: previous declaration of ‘accept’ was here

  232 | extern int accept (int __fd, __SOCKADDR_ARG __addr,

      |            ^~~~~~

In file included from ../../include/winsock2.h:47,

                 from wpcap.c:22:

../../include/winsock.h:1010:15: error: conflicting types for ‘bind’

1010 | int WINAPI WS(bind)(SOCKET,const struct WS(sockaddr)*,int);

      |               ^~~~

../../include/winsock.h:136:19: note: in definition of macro ‘WS’

  136 | # define WS(x)    x

      |                   ^

In file included from /usr/include/pcap/socket.h:67,

                 from /usr/include/pcap/pcap.h:87,

                 from wpcap.c:21:

/usr/include/sys/socket.h:112:12: note: previous declaration of ‘bind’ was here

  112 | extern int bind (int __fd, __CONST_SOCKADDR_ARG __addr, socklen_t __len)

      |            ^~~~

In file included from ../../include/winsock2.h:47,

                 from wpcap.c:22:

../../include/winsock.h:1012:15: error: conflicting types for ‘connect’

1012 | int WINAPI WS(connect)(SOCKET,const struct WS(sockaddr)*,int);

      |               ^~~~~~~

../../include/winsock.h:136:19: note: in definition of macro ‘WS’

  136 | # define WS(x)    x

      |                   ^

In file included from /usr/include/pcap/socket.h:67,

                 from /usr/include/pcap/pcap.h:87,

                 from wpcap.c:21:

/usr/include/sys/socket.h:126:12: note: previous declaration of ‘connect’ was here

  126 | extern int connect (int __fd, __CONST_SOCKADDR_ARG __addr, socklen_t __len);

      |            ^~~~~~~

In file included from ../../include/winsock2.h:47,

                 from wpcap.c:22:

../../include/winsock.h:1013:31: error: conflicting types for ‘gethostbyaddr’

1013 | struct WS(hostent)* WINAPI WS(gethostbyaddr)(const char*,int,int);

      |                               ^~~~~~~~~~~~~

../../include/winsock.h:136:19: note: in definition of macro ‘WS’

  136 | # define WS(x)    x

      |                   ^

In file included from /usr/include/pcap/socket.h:68,

                 from /usr/include/pcap/pcap.h:87,

                 from wpcap.c:21:

/usr/include/netdb.h:135:24: note: previous declaration of ‘gethostbyaddr’ was here

  135 | extern struct hostent *gethostbyaddr (const void *__addr, __socklen_t __len,

      |                        ^~~~~~~~~~~~~

In file included from ../../include/winsock2.h:47,

                 from wpcap.c:22:

../../include/winsock.h:1014:31: error: conflicting types for ‘gethostbyname’

1014 | struct WS(hostent)* WINAPI WS(gethostbyname)(const char*);

      |                               ^~~~~~~~~~~~~

../../include/winsock.h:136:19: note: in definition of macro ‘WS’

  136 | # define WS(x)    x

      |                   ^

In file included from /usr/include/pcap/socket.h:68,

                 from /usr/include/pcap/pcap.h:87,

                 from wpcap.c:21:

/usr/include/netdb.h:142:24: note: previous declaration of ‘gethostbyname’ was here

  142 | extern struct hostent *gethostbyname (const char *__name);

      |                        ^~~~~~~~~~~~~

In file included from ../../include/winsock2.h:47,

                 from wpcap.c:22:

../../include/winsock.h:1015:15: error: conflicting types for ‘getpeername’

1015 | int WINAPI WS(getpeername)(SOCKET,struct WS(sockaddr)*,int*);

      |               ^~~~~~~~~~~

../../include/winsock.h:136:19: note: in definition of macro ‘WS’

  136 | # define WS(x)    x

      |                   ^

In file included from /usr/include/pcap/socket.h:67,

                 from /usr/include/pcap/pcap.h:87,

                 from wpcap.c:21:

/usr/include/sys/socket.h:130:12: note: previous declaration of ‘getpeername’ was here

  130 | extern int getpeername (int __fd, __SOCKADDR_ARG __addr,

      |            ^~~~~~~~~~~

In file included from ../../include/winsock2.h:47,

                 from wpcap.c:22:

../../include/winsock.h:1016:32: error: conflicting types for ‘getprotobyname’

1016 | struct WS(protoent)* WINAPI WS(getprotobyname)(const char*);

      |                                ^~~~~~~~~~~~~~

../../include/winsock.h:136:19: note: in definition of macro ‘WS’

  136 | # define WS(x)    x

      |                   ^

In file included from /usr/include/pcap/socket.h:68,

                 from /usr/include/pcap/pcap.h:87,

                 from wpcap.c:21:

/usr/include/netdb.h:355:25: note: previous declaration of ‘getprotobyname’ was here

  355 | extern struct protoent *getprotobyname (const char *__name);

      |                         ^~~~~~~~~~~~~~

In file included from ../../include/winsock2.h:47,

                 from wpcap.c:22:

../../include/winsock.h:1017:32: error: conflicting types for ‘getprotobynumber’

1017 | struct WS(protoent)* WINAPI WS(getprotobynumber)(int);

      |                                ^~~~~~~~~~~~~~~~

../../include/winsock.h:136:19: note: in definition of macro ‘WS’

  136 | # define WS(x)    x

      |                   ^

In file included from /usr/include/pcap/socket.h:68,

                 from /usr/include/pcap/pcap.h:87,

                 from wpcap.c:21:

/usr/include/netdb.h:361:25: note: previous declaration of ‘getprotobynumber’ was here

  361 | extern struct protoent *getprotobynumber (int __proto);

      |                         ^~~~~~~~~~~~~~~~

In file included from ../../include/winsock2.h:47,

                 from wpcap.c:22:

../../include/winsock.h:1021:31: error: conflicting types for ‘getservbyname’

1021 | struct WS(servent)* WINAPI WS(getservbyname)(const char*,const char*);

      |                               ^~~~~~~~~~~~~

../../include/winsock.h:136:19: note: in definition of macro ‘WS’

  136 | # define WS(x)    x

      |                   ^

In file included from /usr/include/pcap/socket.h:68,

                 from /usr/include/pcap/pcap.h:87,

                 from wpcap.c:21:

/usr/include/netdb.h:288:24: note: previous declaration of ‘getservbyname’ was here

  288 | extern struct servent *getservbyname (const char *__name, const char *__proto);

      |                        ^~~~~~~~~~~~~

In file included from ../../include/winsock2.h:47,

                 from wpcap.c:22:

../../include/winsock.h:1022:31: error: conflicting types for ‘getservbyport’

1022 | struct WS(servent)* WINAPI WS(getservbyport)(int,const char*);

      |                               ^~~~~~~~~~~~~

../../include/winsock.h:136:19: note: in definition of macro ‘WS’

  136 | # define WS(x)    x

      |                   ^

In file included from /usr/include/pcap/socket.h:68,

                 from /usr/include/pcap/pcap.h:87,

                 from wpcap.c:21:

/usr/include/netdb.h:295:24: note: previous declaration of ‘getservbyport’ was here

  295 | extern struct servent *getservbyport (int __port, const char *__proto);

      |                        ^~~~~~~~~~~~~

In file included from ../../include/winsock2.h:47,

                 from wpcap.c:22:

../../include/winsock.h:1023:15: error: conflicting types for ‘getsockname’

1023 | int WINAPI WS(getsockname)(SOCKET,struct WS(sockaddr)*,int*);

      |               ^~~~~~~~~~~

../../include/winsock.h:136:19: note: in definition of macro ‘WS’

  136 | # define WS(x)    x

      |                   ^

In file included from /usr/include/pcap/socket.h:67,

                 from /usr/include/pcap/pcap.h:87,

                 from wpcap.c:21:

/usr/include/sys/socket.h:116:12: note: previous declaration of ‘getsockname’ was here

  116 | extern int getsockname (int __fd, __SOCKADDR_ARG __addr,

      |            ^~~~~~~~~~~

In file included from ../../include/winsock2.h:47,

                 from wpcap.c:22:

../../include/winsock.h:1024:15: error: conflicting types for ‘getsockopt’

1024 | int WINAPI WS(getsockopt)(SOCKET,int,int,char*,int*);

      |               ^~~~~~~~~~

../../include/winsock.h:136:19: note: in definition of macro ‘WS’

  136 | # define WS(x)    x

      |                   ^

In file included from /usr/include/pcap/socket.h:67,

                 from /usr/include/pcap/pcap.h:87,

                 from wpcap.c:21:

/usr/include/sys/socket.h:208:12: note: previous declaration of ‘getsockopt’ was here

  208 | extern int getsockopt (int __fd, int __level, int __optname,

      |            ^~~~~~~~~~

In file included from ../../include/winsock2.h:47,

                 from wpcap.c:22:

../../include/winsock.h:1025:17: error: conflicting types for ‘inet_addr’

1025 | ULONG WINAPI WS(inet_addr)(const char*);

      |                 ^~~~~~~~~

../../include/winsock.h:136:19: note: in definition of macro ‘WS’

  136 | # define WS(x)    x

      |                   ^

In file included from /usr/include/pcap/socket.h:70,

                 from /usr/include/pcap/pcap.h:87,

                 from wpcap.c:21:

/usr/include/arpa/inet.h:34:18: note: previous declaration of ‘inet_addr’ was here

   34 | extern in_addr_t inet_addr (const char *__cp) __THROW;

      |                  ^~~~~~~~~

In file included from ../../include/winsock2.h:47,

                 from wpcap.c:22:

../../include/winsock.h:1026:17: error: conflicting types for ‘inet_ntoa’

1026 | char* WINAPI WS(inet_ntoa)(struct WS(in_addr));

      |                 ^~~~~~~~~

../../include/winsock.h:136:19: note: in definition of macro ‘WS’

  136 | # define WS(x)    x

      |                   ^

In file included from /usr/include/pcap/socket.h:70,

                 from /usr/include/pcap/pcap.h:87,

                 from wpcap.c:21:

/usr/include/arpa/inet.h:53:14: note: previous declaration of ‘inet_ntoa’ was here

   53 | extern char *inet_ntoa (struct in_addr __in) __THROW;

      |              ^~~~~~~~~

In file included from ../../include/winsock2.h:47,

                 from wpcap.c:22:

../../include/winsock.h:1028:15: error: conflicting types for ‘listen’

1028 | int WINAPI WS(listen)(SOCKET,int);

      |               ^~~~~~

../../include/winsock.h:136:19: note: in definition of macro ‘WS’

  136 | # define WS(x)    x

      |                   ^

In file included from /usr/include/pcap/socket.h:67,

                 from /usr/include/pcap/pcap.h:87,

                 from wpcap.c:21:

/usr/include/sys/socket.h:222:12: note: previous declaration of ‘listen’ was here

  222 | extern int listen (int __fd, int __n) __THROW;

      |            ^~~~~~

In file included from ../../include/winsock2.h:47,

                 from wpcap.c:22:

../../include/winsock.h:1029:15: error: conflicting types for ‘recv’

1029 | int WINAPI WS(recv)(SOCKET,char*,int,int);

      |               ^~~~

../../include/winsock.h:136:19: note: in definition of macro ‘WS’

  136 | # define WS(x)    x

      |                   ^

In file included from /usr/include/pcap/socket.h:67,

                 from /usr/include/pcap/pcap.h:87,

                 from wpcap.c:21:

/usr/include/sys/socket.h:145:16: note: previous declaration of ‘recv’ was here

  145 | extern ssize_t recv (int __fd, void *__buf, size_t __n, int __flags);

      |                ^~~~

In file included from ../../include/winsock2.h:47,

                 from wpcap.c:22:

../../include/winsock.h:1030:15: error: conflicting types for ‘recvfrom’

1030 | int WINAPI WS(recvfrom)(SOCKET,char*,int,int,struct WS(sockaddr)*,int*);

      |               ^~~~~~~~

../../include/winsock.h:136:19: note: in definition of macro ‘WS’

  136 | # define WS(x)    x

      |                   ^

In file included from /usr/include/pcap/socket.h:67,

                 from /usr/include/pcap/pcap.h:87,

                 from wpcap.c:21:

/usr/include/sys/socket.h:163:16: note: previous declaration of ‘recvfrom’ was here

  163 | extern ssize_t recvfrom (int __fd, void *__restrict __buf, size_t __n,

      |                ^~~~~~~~

In file included from ../../include/winsock2.h:47,

                 from wpcap.c:22:

../../include/winsock.h:1031:15: error: conflicting types for ‘send’

1031 | int WINAPI WS(send)(SOCKET,const char*,int,int);

      |               ^~~~

../../include/winsock.h:136:19: note: in definition of macro ‘WS’

  136 | # define WS(x)    x

      |                   ^

In file included from /usr/include/pcap/socket.h:67,

                 from /usr/include/pcap/pcap.h:87,

                 from wpcap.c:21:

/usr/include/sys/socket.h:138:16: note: previous declaration of ‘send’ was here

  138 | extern ssize_t send (int __fd, const void *__buf, size_t __n, int __flags);

      |                ^~~~

In file included from ../../include/winsock2.h:47,

                 from wpcap.c:22:

../../include/winsock.h:1032:15: error: conflicting types for ‘sendto’

1032 | int WINAPI WS(sendto)(SOCKET,const char*,int,int,const struct WS(sockaddr)*,int);

      |               ^~~~~~

../../include/winsock.h:136:19: note: in definition of macro ‘WS’

  136 | # define WS(x)    x

      |                   ^

In file included from /usr/include/pcap/socket.h:67,

                 from /usr/include/pcap/pcap.h:87,

                 from wpcap.c:21:

/usr/include/sys/socket.h:152:16: note: previous declaration of ‘sendto’ was here

  152 | extern ssize_t sendto (int __fd, const void *__buf, size_t __n,

      |                ^~~~~~

In file included from ../../include/winsock2.h:47,

                 from wpcap.c:22:

../../include/winsock.h:1033:15: error: conflicting types for ‘setsockopt’

1033 | int WINAPI WS(setsockopt)(SOCKET,int,int,const char*,int);

      |               ^~~~~~~~~~

../../include/winsock.h:136:19: note: in definition of macro ‘WS’

  136 | # define WS(x)    x

      |                   ^

In file included from /usr/include/pcap/socket.h:67,

                 from /usr/include/pcap/pcap.h:87,

                 from wpcap.c:21:

/usr/include/sys/socket.h:215:12: note: previous declaration of ‘setsockopt’ was here

  215 | extern int setsockopt (int __fd, int __level, int __optname,

      |            ^~~~~~~~~~

In file included from ../../include/winsock2.h:47,

                 from wpcap.c:22:

../../include/winsock.h:1034:15: error: conflicting types for ‘shutdown’

1034 | int WINAPI WS(shutdown)(SOCKET,int);

      |               ^~~~~~~~

../../include/winsock.h:136:19: note: in definition of macro ‘WS’

  136 | # define WS(x)    x

      |                   ^

In file included from /usr/include/pcap/socket.h:67,

                 from /usr/include/pcap/pcap.h:87,

                 from wpcap.c:21:

/usr/include/sys/socket.h:250:12: note: previous declaration of ‘shutdown’ was here

  250 | extern int shutdown (int __fd, int __how) __THROW;

      |            ^~~~~~~~

In file included from ../../include/winsock2.h:47,

                 from wpcap.c:22:

../../include/winsock.h:1035:18: error: conflicting types for ‘socket’

1035 | SOCKET WINAPI WS(socket)(int,int,int);

      |                  ^~~~~~

../../include/winsock.h:136:19: note: in definition of macro ‘WS’

  136 | # define WS(x)    x

      |                   ^

In file included from /usr/include/pcap/socket.h:67,

                 from /usr/include/pcap/pcap.h:87,

                 from wpcap.c:21:

/usr/include/sys/socket.h:102:12: note: previous declaration of ‘socket’ was here

  102 | extern int socket (int __domain, int __type, int __protocol) __THROW;

      |            ^~~~~~

In file included from ../../include/winsock2.h:50,

                 from wpcap.c:22:

../../include/ws2def.h:58:19: error: redefinition of ‘struct sockaddr_storage’

   58 | typedef struct WS(sockaddr_storage) {

      |                   ^~~~~~~~~~~~~~~~

../../include/ws2def.h:27:18: note: in definition of macro ‘WS’

   27 | #define WS(x)    x

      |                  ^

In file included from /usr/include/sys/socket.h:33,

                 from /usr/include/pcap/socket.h:67,

                 from /usr/include/pcap/pcap.h:87,

                 from wpcap.c:21:

/usr/include/bits/socket.h:191:8: note: originally defined here

  191 | struct sockaddr_storage

      |        ^~~~~~~~~~~~~~~~

wpcap.c: In function ‘wine_pcap_lookupdev’:

wpcap.c:183:5: warning: ‘pcap_lookupdev’ is deprecated: use 'pcap_findalldevs' and use the first device [-Wdeprecated-declarations]

  183 |     return pcap_lookupdev(errbuf);

      |     ^~~~~~

In file included from wpcap.c:21:

/usr/include/pcap/pcap.h:328:16: note: declared here

  328 | PCAP_API char *pcap_lookupdev(char *)

      |                ^~~~~~~~~~~~~~

wpcap.c: At top level:

wpcap.c:234: warning: "PCAP_OPENFLAG_PROMISCUOUS" redefined

  234 | #define PCAP_OPENFLAG_PROMISCUOUS 1

      |

In file included from wpcap.c:21:

/usr/include/pcap/pcap.h:714: note: this is the location of the previous definition

  714 | #define PCAP_OPENFLAG_PROMISCUOUS  0x00000001

      |

make[1]: *** [Makefile:169: wpcap.o] Error 1

make[1]: Leaving directory '/home/a/wine-1.9.20/dlls/wpcap'

make: *** [Makefile:18511: dlls/wpcap] Error 2




Compilation failed, aborting install.