Skip to content

CMake problem #749

@averinoing

Description

@averinoing

[ 1%] Building C object libnfc/CMakeFiles/nfc.dir/__/contrib/win32/stdlib.c.obj
In file included from C:\dev\libnfc-1.8.0\contrib\win32\stdlib.c:35:
C:/dev/libnfc-1.8.0/contrib/windows.h:47:13: warning: "ETIMEDOUT" redefined
47 | # define ETIMEDOUT WSAETIMEDOUT
| ^~~~~~~~~
In file included from C:/mingw64/lib/gcc/x86_64-w64-mingw32/14.2.0/include/mm_malloc.h:29,
from C:/mingw64/lib/gcc/x86_64-w64-mingw32/14.2.0/include/xmmintrin.h:34,
from C:/mingw64/lib/gcc/x86_64-w64-mingw32/14.2.0/include/emmintrin.h:31,
from C:/mingw64/x86_64-w64-mingw32/include/winnt.h:2430,
from C:/mingw64/x86_64-w64-mingw32/include/minwindef.h:163,
from C:/mingw64/x86_64-w64-mingw32/include/windef.h:9,
from C:/mingw64/x86_64-w64-mingw32/include/windows.h:69,
from C:/dev/libnfc-1.8.0/contrib/windows.h:36:
C:/mingw64/x86_64-w64-mingw32/include/errno.h:223:9: note: this is the location of the previous definition
223 | #define ETIMEDOUT 138
| ^~~~~~~~~
C:/dev/libnfc-1.8.0/contrib/windows.h:48:13: warning: "ENOTSUP" redefined
48 | # define ENOTSUP WSAEOPNOTSUPP
| ^~~~~~~
C:/mingw64/x86_64-w64-mingw32/include/errno.h:76:9: note: this is the location of the previous definition
76 | #define ENOTSUP 129
| ^~~~~~~
C:/dev/libnfc-1.8.0/contrib/windows.h:49:13: warning: "ECONNABORTED" redefined
49 | # define ECONNABORTED WSAECONNABORTED
| ^~~~~~~~~~~~
C:/mingw64/x86_64-w64-mingw32/include/errno.h:102:9: note: this is the location of the previous definition
102 | #define ECONNABORTED 106
| ^~~~~~~~~~~~
C:\dev\libnfc-1.8.0\contrib\win32\stdlib.c: In function 'setenv':
C:\dev\libnfc-1.8.0\contrib\win32\stdlib.c:43:12: error: passing argument 1 of 'strcpy' from incompatible pointer type [-Wincompatible-pointer-types]
43 | strcpy(str, name);
| ^~~
| |
| char **
In file included from C:/mingw64/x86_64-w64-mingw32/include/guiddef.h:154,
from C:/mingw64/x86_64-w64-mingw32/include/winnt.h:648:
C:/mingw64/x86_64-w64-mingw32/include/string.h:61:45: note: expected 'char * restrict' but argument is of type 'char **'
61 | char * __cdecl strcpy(char * restrict _Dest,const char * restrict _Source);
| ~~~~~~~~~~~~~~~~~~~~^~~~~
C:\dev\libnfc-1.8.0\contrib\win32\stdlib.c:44:12: error: passing argument 1 of 'strcat' from incompatible pointer type [-Wincompatible-pointer-types]
44 | strcat(str, "=");
| ^~~
| |
| char **
C:/mingw64/x86_64-w64-mingw32/include/string.h:62:45: note: expected 'char * restrict' but argument is of type 'char **'
62 | char * __cdecl strcat(char * restrict _Dest,const char * restrict _Source);
| ~~~~~~~~~~~~~~~~~~~~^~~~~
C:\dev\libnfc-1.8.0\contrib\win32\stdlib.c:45:12: error: passing argument 1 of 'strcat' from incompatible pointer type [-Wincompatible-pointer-types]
45 | strcat(str, value);
| ^~~
| |
| char **
C:/mingw64/x86_64-w64-mingw32/include/string.h:62:45: note: expected 'char * restrict' but argument is of type 'char **'
62 | char * __cdecl strcat(char * restrict _Dest,const char * restrict _Source);
| ~~~~~~~~~~~~~~~~~~~~^~~~~
C:\dev\libnfc-1.8.0\contrib\win32\stdlib.c:46:19: error: passing argument 1 of 'putenv' from incompatible pointer type [-Wincompatible-pointer-types]
46 | return putenv(str);
| ^~~
| |
| char **
In file included from C:/mingw64/lib/gcc/x86_64-w64-mingw32/14.2.0/include/mm_malloc.h:27:
C:/mingw64/x86_64-w64-mingw32/include/stdlib.h:715:34: note: expected 'const char *' but argument is of type 'char **'
715 | int __cdecl putenv(const char *_EnvString) __MINGW_ATTRIB_DEPRECATED_MSVC2005;
| ~~~~~~~~~~~~^~~~~~~~~~
C:\dev\libnfc-1.8.0\contrib\win32\stdlib.c: In function 'unsetenv':
C:\dev\libnfc-1.8.0\contrib\win32\stdlib.c:54:10: error: passing argument 1 of 'strcpy' from incompatible pointer type [-Wincompatible-pointer-types]
54 | strcpy(str, name);
| ^~~
| |
| char **
C:/mingw64/x86_64-w64-mingw32/include/string.h:61:45: note: expected 'char * restrict' but argument is of type 'char **'
61 | char * __cdecl strcpy(char * restrict _Dest,const char * restrict _Source);
| ~~~~~~~~~~~~~~~~~~~~^~~~~
C:\dev\libnfc-1.8.0\contrib\win32\stdlib.c:55:10: error: passing argument 1 of 'strcat' from incompatible pointer type [-Wincompatible-pointer-types]
55 | strcat(str, "=");
| ^~~
| |
| char **
C:/mingw64/x86_64-w64-mingw32/include/string.h:62:45: note: expected 'char * restrict' but argument is of type 'char **'
62 | char * __cdecl strcat(char * restrict _Dest,const char * restrict _Source);
| ~~~~~~~~~~~~~~~~~~~~^~~~~
C:\dev\libnfc-1.8.0\contrib\win32\stdlib.c:56:10: error: passing argument 1 of 'putenv' from incompatible pointer type [-Wincompatible-pointer-types]
56 | putenv(str);
| ^~~
| |
| char **
C:/mingw64/x86_64-w64-mingw32/include/stdlib.h:715:34: note: expected 'const char *' but argument is of type 'char **'
715 | int __cdecl putenv(const char *_EnvString) MINGW_ATTRIB_DEPRECATED_MSVC2005;
| ~~~~~~~~~~~~^~~~~~~~~~
mingw32-make[2]: *** [libnfc\CMakeFiles\nfc.dir\build.make:319: libnfc/CMakeFiles/nfc.dir/
/contrib/win32/stdlib.c.obj] Error 1
mingw32-make[1]: *** [CMakeFiles\Makefile2:320: libnfc/CMakeFiles/nfc.dir/all] Error 2
mingw32-make: *** [Makefile:155: all] Error 2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions