What | Removed | Added |
---|---|---|
CC | fstrba@suse.com |
The related mingw64 package https://build.opensuse.org/package/show/windows:mingw:win64/mingw64-libneon does not have this issue. The differences between building both packages is that the mingw32 package fails to detect HAVE_SOCKLEN_T, which works with mingw64. mingw32: config.h /* Define to 1 if the system has the type `socklen_t'. */ /* #undef HAVE_SOCKLEN_T */ ... /* Define if socklen_t is not available */ #define socklen_t int mingw64:config.h /* Define to 1 if the system has the type `socklen_t'. */ #define HAVE_SOCKLEN_T 1 ... /* Define if socklen_t is not available */ /* #undef socklen_t */ Inspecting the log created by configure returns some differences: mingw32:config.log configure:5957: checking for socklen_t configure:5957: i686-w64-mingw32-gcc -c -DHAVE_SSPI -O2 -g -pipe -Wall -fexceptions --param=ssp-buffer-size=4 -mms-bitfields -D_LARGEFILE64_SOURCE -DNE_LFS conftest.c >&5 In file included from /usr/i686-w64-mingw32/sys-root/mingw/include/windows.h:76, from /usr/i686-w64-mingw32/sys-root/mingw/include/winsock2.h:23, from /usr/i686-w64-mingw32/sys-root/mingw/include/ws2tcpip.h:17, from conftest.c:72: /usr/i686-w64-mingw32/sys-root/mingw/include/winreg.h:200:59: error: unknown type name 'PVALENTA' 200 | WINADVAPI LONG WINAPI RegQueryMultipleValuesA(HKEY hKey,PVALENTA val_list,DWORD num_vals,LPSTR lpValueBuf,LPDWORD ldwTotsize); | ^~~~~~~~ /usr/i686-w64-mingw32/sys-root/mingw/include/winreg.h:201:59: error: unknown type name 'PVALENTW' 201 | WINADVAPI LONG WINAPI RegQueryMultipleValuesW(HKEY hKey,PVALENTW val_list,DWORD num_vals,LPWSTR lpValueBuf,LPDWORD ldwTotsize); | ^~~~~~~~ configure:5957: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "neon" | #define PACKAGE_TARNAME "neon" | #define PACKAGE_VERSION "0.30.1" | #define PACKAGE_STRING "neon 0.30.1" | #define PACKAGE_BUGREPORT "neon@lists.manyfish.co.uk" | #define PACKAGE_URL "" | #define _GNU_SOURCE 1 | #define NEON_IS_LIBRARY 1 | #define NEON_VERSION "0.30.1" | #define NE_VERSION_MAJOR (0) | #define NE_VERSION_MINOR (30) | #define NE_VERSION_PATCH (1) | #define STDC_HEADERS 1 | #define HAVE_SYS_TYPES_H 1 | #define HAVE_SYS_STAT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_MEMORY_H 1 | #define HAVE_STRINGS_H 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_UNISTD_H 1 | #define __EXTENSIONS__ 1 | #define _ALL_SOURCE 1 | #define _GNU_SOURCE 1 | #define _POSIX_PTHREAD_SEMANTICS 1 | #define _TANDEM_SOURCE 1 | #define SIZEOF_INT 4 | #define SIZEOF_LONG 4 | #define SIZEOF_LONG_LONG 8 | #define HAVE_ERRNO_H 1 | #define HAVE_STDARG_H 1 | #define HAVE_STRING_H 1 | #define HAVE_STDLIB_H 1 | #define SIZEOF_SIZE_T 4 | #define NE_FMT_SIZE_T "u" | #define SIZEOF_OFF_T 4 | #define NE_FMT_OFF_T "ld" | #define SIZEOF_SSIZE_T 4 | #define NE_FMT_SSIZE_T "d" | #define HAVE_DECL_STRERROR_R 0 | #define HAVE_SNPRINTF 1 | #define HAVE_VSNPRINTF 1 | #define HAVE_SYS_TIME_H 1 | #define HAVE_LIMITS_H 1 | #define HAVE_LIBINTL_H 1 | #define HAVE_SIGNAL_H 1 | #define HAVE_FCNTL_H 1 | #define HAVE_TIMEZONE 1 | #define SIZEOF_OFF64_T 8 | #define NE_FMT_OFF64_T "lld" | #define HAVE_STRTOLL 1 | #define HAVE_LSEEK64 1 | #define NE_HAVE_LFS 1 | #define NE_FMT_NE_OFF_T NE_FMT_OFF64_T | #define HAVE_STRCASECMP 1 | #define HAVE_SIGNAL 1 | #define HAVE_SETVBUF 1 | #define HAVE_DECL_H_ERRNO 0 | #define in_addr_t unsigned int | /* end confdefs.h. */ | | #ifdef HAVE_SYS_TYPES_H | # include <sys/types.h> | #endif | #ifdef HAVE_SYS_SOCKET_H | # include <sys/socket.h> | #endif | #ifdef _WIN32 | # define WINVER WindowsXP | # include <ws2tcpip.h> | #endif | | | int | main () | { | if (sizeof (socklen_t)) | return 0; | ; | return 0; | } configure:5957: result: no compared with the mingw64 variant mingw64:config.log configure:5957: checking for socklen_t configure:5957: x86_64-w64-mingw32-gcc -c -DHAVE_SSPI -O2 -g -pipe -Wall -fexceptions --param=ssp-buffer-size=4 -mms-bitfields -D_LARGEFILE64_SOURCE -DNE_LFS conftest.c >&5 configure:5957: $? = 0 configure:5957: x86_64-w64-mingw32-gcc -c -DHAVE_SSPI -O2 -g -pipe -Wall -fexceptions --param=ssp-buffer-size=4 -mms-bitfields -D_LARGEFILE64_SOURCE -DNE_LFS conftest.c >&5 conftest.c: In function 'main': conftest.c:78:24: error: expected expression before ')' token 78 | if (sizeof ((socklen_t))) | ^ configure:5957: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "neon" | #define PACKAGE_TARNAME "neon" | #define PACKAGE_VERSION "0.30.1" | #define PACKAGE_STRING "neon 0.30.1" | #define PACKAGE_BUGREPORT "neon@lists.manyfish.co.uk" | #define PACKAGE_URL "" | #define _GNU_SOURCE 1 | #define NEON_IS_LIBRARY 1 | #define NEON_VERSION "0.30.1" | #define NE_VERSION_MAJOR (0) | #define NE_VERSION_MINOR (30) | #define NE_VERSION_PATCH (1) | #define STDC_HEADERS 1 | #define HAVE_SYS_TYPES_H 1 | #define HAVE_SYS_STAT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_MEMORY_H 1 | #define HAVE_STRINGS_H 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_UNISTD_H 1 | #define __EXTENSIONS__ 1 | #define _ALL_SOURCE 1 | #define _GNU_SOURCE 1 | #define _POSIX_PTHREAD_SEMANTICS 1 | #define _TANDEM_SOURCE 1 | #define SIZEOF_INT 4 | #define SIZEOF_LONG 4 | #define SIZEOF_LONG_LONG 8 | #define HAVE_ERRNO_H 1 | #define HAVE_STDARG_H 1 | #define HAVE_STRING_H 1 | #define HAVE_STDLIB_H 1 | #define SIZEOF_SIZE_T 8 | #define NE_FMT_SIZE_T "ull" | #define SIZEOF_OFF_T 4 | #define NE_FMT_OFF_T "lld" | #define SIZEOF_SSIZE_T 8 | #define NE_FMT_SSIZE_T "lld" | #define HAVE_DECL_STRERROR_R 0 | #define HAVE_SNPRINTF 1 | #define HAVE_VSNPRINTF 1 | #define HAVE_SYS_TIME_H 1 | #define HAVE_LIMITS_H 1 | #define HAVE_LIBINTL_H 1 | #define HAVE_SIGNAL_H 1 | #define HAVE_FCNTL_H 1 | #define HAVE_TIMEZONE 1 | #define SIZEOF_OFF64_T 8 | #define NE_FMT_OFF64_T "lld" | #define HAVE_STRTOLL 1 | #define HAVE_LSEEK64 1 | #define NE_HAVE_LFS 1 | #define NE_FMT_NE_OFF_T NE_FMT_OFF64_T | #define HAVE_STRCASECMP 1 | #define HAVE_SIGNAL 1 | #define HAVE_SETVBUF 1 | #define HAVE_DECL_H_ERRNO 0 | #define in_addr_t unsigned int | /* end confdefs.h. */ | | #ifdef HAVE_SYS_TYPES_H | # include <sys/types.h> | #endif | #ifdef HAVE_SYS_SOCKET_H | # include <sys/socket.h> | #endif | #ifdef _WIN32 | # include <ws2tcpip.h> | #endif | | | int | main () | { | if (sizeof ((socklen_t))) | return 0; | ; | return 0; | } configure:5957: result: yes The difference is that in the following line /usr/i686-w64-mingw32/sys-root/mingw/include/winreg.h:200:59: error: unknown type name 'PVALENTA' 200 | WINADVAPI LONG WINAPI RegQueryMultipleValuesA(HKEY hKey,PVALENTA val_list,DWORD num_vals,LPSTR lpValueBuf,LPDWORD ldwTotsize the type 'PVALENTA' is unknown, which indicates that this is an issue in the mingw32-headers packages, which is not in the mingw64-headers package