When compiling under Cygwin with the latest code from git (as of August 10, 2020), I get:
Fileinfo.cc:279:14: error: ‘symlink’ was not declared in this scope
Full session:
$ ./bootstrap.sh
it seems like everything went fine. now try
./configure && make
$ ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking for g++... g++
checking whether the C++ compiler works... yes
checking for C++ compiler default output file name... a.exe
checking for suffix of executables... .exe
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking whether make supports the include directive... yes (GNU style)
checking dependency style of g++... gcc3
checking whether make sets $(MAKE)... (cached) yes
checking how to run the C++ preprocessor... g++ -E
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for ANSI C header files... yes
no
checking whether to enable assertions... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking nettle/sha.h usability... yes
checking nettle/sha.h presence... yes
checking for nettle/sha.h... yes
checking for main in -lnettle... yes
checking for stat... yes
checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... no
configure: checking for c++ 11, disable with --disable-cppstandardcheck
checking whether g++ supports C++11 features with -std=c++11... yes
checking check for fallthrough support... yes
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating config.h
config.status: executing depfiles commands
$ make
make all-am
make[1]: Entering directory '/home/▒▒▒/build/rdfind'
g++ -std=c++11 -DHAVE_CONFIG_H -I. -g -O2 -MT rdfind.o -MD -MP -MF .deps/rdfind.Tpo -c -o rdfind.o rdfind.cc
mv -f .deps/rdfind.Tpo .deps/rdfind.Po
g++ -std=c++11 -DHAVE_CONFIG_H -I. -g -O2 -MT Checksum.o -MD -MP -MF .deps/Checksum.Tpo -c -o Checksum.o Checksum.cc
mv -f .deps/Checksum.Tpo .deps/Checksum.Po
g++ -std=c++11 -DHAVE_CONFIG_H -I. -g -O2 -MT Dirlist.o -MD -MP -MF .deps/Dirlist.Tpo -c -o Dirlist.o Dirlist.cc
mv -f .deps/Dirlist.Tpo .deps/Dirlist.Po
g++ -std=c++11 -DHAVE_CONFIG_H -I. -g -O2 -MT Fileinfo.o -MD -MP -MF .deps/Fileinfo.Tpo -c -o Fileinfo.o Fileinfo.cc
Fileinfo.cc: In lambda function:
Fileinfo.cc:279:14: error: ‘symlink’ was not declared in this scope
279 | return symlink(target.c_str(), filename.c_str());
| ^~~~~~~
Fileinfo.cc: In instantiation of ‘int {anonymous}::transactional_operation(const string&, const Func&) [with Func = Fileinfo::makesymlink(const Fileinfo&)::<lambda(const string&)>; std::string = std::basic_string<char>]’:
Fileinfo.cc:280:6: required from here
Fileinfo.cc:249:20: error: void value not ignored as it ought to be
249 | const int ret = f(filename);
| ~^~~~~~~~~~
make[1]: *** [Makefile:657: Fileinfo.o] Error 1
make[1]: Leaving directory '/home/▒▒▒/build/rdfind'
make: *** [Makefile:536: all] Error 2
When compiling under Cygwin with the latest code from git (as of August 10, 2020), I get:
Full session: