Closed walter-weinmann closed 7 years ago
Basho compiles and tests 16 different unix versions. Windows cygwin is not one of those versions. I have not seen a Windows comment / issue in my five years working with Basho. Hence we have no sensitivity or experience to potential issues there.
That said, everything "syslog" within eleveldb is optional. You can remove or comment out all things "syslog" without issue. Basho's leveldb has some syslog usage also. It too would need to be removed. syslog is only used for information and error reporting that falls outside leveldb's typical LOG scenarios.
I am guessing that cygwin actually supports syslog. This problem might be better addressed by researching the location of the syslog.h file within the cygwin environment, then manually adding that path to the include file search list.
Thank you very much for the response.
I'm very flexible with the development environment on Windows - what would you recommend instead of Cygwin?
It has been 10 years since I did any Windows work, longer since using cygwin. My best suggestion is to use search terms of "cygwin" and "syslog" via Google or such. One result was:
http://kb.kaminskiengineering.com/node/382
My opinion is that you would be better off getting cygwin happy with syslog than trying a different solution. But keep in mind I am guessing, not speaking from experience.
The leveldb code heavily uses Unix pthread, posix_fadvise, and memory mapped files. You need a robust library such as cygwin. Writing a Unix/Windows conversion library yourself is possible (been there, done that), but will require a ton of work. Hence you are better off finding existing solutions via the search engines.
Another alternative would be to create your own "syslog.h" file. It would need to contain an inline function or #define for the syslog() function ... that does nothing.
There may be others in the Riak community that have experience with Windows builds. You should repost your problem and goals to the riak mailing list. Here are the instructions:
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com
I'm running Windows 10 x64 with Cygwin x64.
make is.
gcc is:
Running make inside the eleveldb directory (from Cygwin shell) gives:
How can I fix it?