scap-workbench icon indicating copy to clipboard operation
scap-workbench copied to clipboard

Windows Release Guide suspicious instruction

Open jan-cerny opened this issue 7 years ago • 4 comments

https://github.com/OpenSCAP/scap-workbench/wiki/Windows-build-and-installer-guide

Section 2. Compile SCAP Workbench suggests the following:

In case you get an error regarding something like #include_next<stdlib.h>, change this line to #include<stdlib.h> in the file cstdlib

I know it helps, but I find weird to edit compilers header files. I think headers should not be touched by user.

I think we might miss some definition on compiler flag.

jan-cerny avatar Dec 07 '17 08:12 jan-cerny

This is indeed a weird instruction. Could you try to clean, configure and build again, passing additional -DENABLE_PRECOMPILED_HEADERS=OFF to cmake in the configure phase?

matejak avatar Dec 08 '17 12:12 matejak

Changing #include_next to #include was the last measure used after some time trying to resolve compilation problem. -DENABLE_PRECOMPILED_HEADERS=OFF is a good try.

yuumasato avatar Dec 08 '17 12:12 yuumasato

I agree that that note is really confusing.

I really wish the wiki had all the info. This is about an upstream issue in cstdlib, in the version used by mingw32 on fedora. This has more info: https://stackoverflow.com/questions/45245923/mingw-include-c-cstdlib-stdlib-h-no-such-file-or-directory

It could very well be that this has been fixed and we can remove this whole note.

mpreisler avatar Dec 08 '17 17:12 mpreisler

I have made updates to this on the wiki. Just need someone to validate the changes.

redhatrises avatar Jun 25 '18 20:06 redhatrises