You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Recreate the bug
Got this error after cmake --build .
[24/28] Building C object test/CMakeFiles/oqs_test_tlssig.dir/oqs_test_tlssig.c.obj
FAILED: test/CMakeFiles/oqs_test_tlssig.dir/oqs_test_tlssig.c.obj
C:\msys64\mingw64\bin\cc.exe -DNDEBUG -ID:/Project/openssl-3.2.1/include -ID:/Project/liboqs-compiled/include -ID:/Project/liboqs-compiled/include/oqs -std=gnu11 -Wunused-function -MD -MT test/CMakeFiles/oqs_test_tlssig.dir/oqs_test_tlssig.c.obj -MF test\CMakeFiles\oqs_test_tlssig.dir\oqs_test_tlssig.c.obj.d -o test/CMakeFiles/oqs_test_tlssig.dir/oqs_test_tlssig.c.obj -c D:/Me/Study_Uni/HK4_Nam_2/slide_mmh/Labs/Project/oqs-provider/test/oqs_test_tlssig.c
D:/Project/oqs-provider/test/oqs_test_tlssig.c: In function 'test_oqs_tlssig':
D:/oqs-provider/test/oqs_test_tlssig.c:43:9: error: too many arguments to function 'mkdir'
43 | if (mkdir(certsdir, 0700)) {
| ^~~~~
In file included from C:/msys64/mingw64/include/sys/stat.h:14,
from D:/Project/oqs-provider/test/oqs_test_tlssig.c:13:
C:/msys64/mingw64/include/io.h:282:15: note: declared here
282 | int __cdecl mkdir (const char *) __MINGW_ATTRIB_DEPRECATED_MSVC2005;
| ^~~~~
[26/28] Building C object test/CMakeFiles/oqs_test_tlssig.dir/tlstest_helpers.c.obj
ninja: build stopped: subcommand failed.
To Reproduce
Using Windows MSYS2 MINGW64 as administrator.
liboqs is built like this:
I figured it out that mkdir() function that is specified in io.h just takes one argument, so simply change to if(mkdir(certsdir)) as mention in this stackoverflow.
This will successfully build the oqsprovider, but the size of .dll file is significantly small (625kb) and openssl doesn't recognize it even when I have edit the openssl.cnf file
Thanks @HarryLee02 for the report. Unfortunately, I'm not exactly a "Windows connoisseur" -- would you be willing to do a PR? Or is there another (looks unrelated) problem with
but the size of .dll file is significantly small (625kb)
So are there symbols un-resolved in the resultant .dll?
Recreate the bug
Got this error after
cmake --build .
To Reproduce
Using Windows
MSYS2 MINGW64
as administrator.liboqs is built like this:
oqs-provider is built like this:
Environment (please complete the following information):
The text was updated successfully, but these errors were encountered: