In cygwin(x64), I run the following command:
./configure --build=x86_64-pc-cygwin
make
then I get the error:
PThreads.cpp:22:16: error: '::asprintf' has not been declared
int size = ::asprintf(&buff_alloc, "%lu", pthread_self()); // thread id unsigned
I got info from:
https://ubuntuforums.org/showthread.php?t=279801
Then I know I should define _GNU_SOURCE first
By the way, If I didn't use --build=x86_64-pc-cygwin, the ./configure command will get error.
Something like
configure: error: cannot guess build type; you must specify oneI guess?
Last edit: Alexander Perepelkin 2017-10-10
I tried to build in cygwin just now and didn't experienced any errors.
It must be cygwin-specific.
Thanks for this report. It just seems to me that this definition of _GNU_SOURCE
should be put either into build script, or one of include/log4cpp/config*.h files
Autotools are updated with commit https://sourceforge.net/p/log4cpp/codegit/ci/99bf327fed032073cb6e3e5f5b19e4f8005a54b2/ , x86_64-pc-cygwin configuration is included.
Passing the option explicitly like you mentioned:
is not required anymore
This simple command should suffice: