* using log directory 'd:/Rcompile/CRANpkg/local/3.6/epanet2toolkit.Rcheck' * using R version 3.6.3 (2020-02-29) * using platform: x86_64-w64-mingw32 (64-bit) * using session charset: ISO8859-1 * checking for file 'epanet2toolkit/DESCRIPTION' ... OK * checking extension type ... Package * this is package 'epanet2toolkit' version '0.5.1' * checking package namespace information ... OK * checking package dependencies ... OK * checking if this is a source package ... OK * checking if there is a namespace ... OK * checking for hidden files and directories ... OK * checking for portable file names ... OK * checking whether package 'epanet2toolkit' can be installed ... ERROR Installation failed. See 'd:/Rcompile/CRANpkg/local/3.6/epanet2toolkit.Rcheck/00install.out' for details. * DONE The installation logfile: * installing *source* package 'epanet2toolkit' ... ** package 'epanet2toolkit' successfully unpacked and MD5 sums checked ** using staged installation ** libs *** arch - i386 make[1]: Entering directory `/cygdrive/d/temp/RtmpgVKBOF/R.INSTALL119c0980440e/epanet2toolkit/src-i386' d:/Compiler/gcc-4.9.3/mingw_32/bin/gcc -I"D:/RCompile/recent/R-3.6.3/include" -DNDEBUG -I"d:/Compiler/gcc-4.9.3/local330/include" -O3 -Wall -std=gnu99 -mtune=core2 -c Repanet2.c -o Repanet2.o d:/Compiler/gcc-4.9.3/mingw_32/bin/gcc -I"D:/RCompile/recent/R-3.6.3/include" -DNDEBUG -I"d:/Compiler/gcc-4.9.3/local330/include" -O3 -Wall -std=gnu99 -mtune=core2 -c cstr_helper.c -o cstr_helper.o d:/Compiler/gcc-4.9.3/mingw_32/bin/gcc -I"D:/RCompile/recent/R-3.6.3/include" -DNDEBUG -I"d:/Compiler/gcc-4.9.3/local330/include" -O3 -Wall -std=gnu99 -mtune=core2 -c epanet.c -o epanet.o d:/Compiler/gcc-4.9.3/mingw_32/bin/gcc -I"D:/RCompile/recent/R-3.6.3/include" -DNDEBUG -I"d:/Compiler/gcc-4.9.3/local330/include" -O3 -Wall -std=gnu99 -mtune=core2 -c epanet2.c -o epanet2.o d:/Compiler/gcc-4.9.3/mingw_32/bin/gcc -I"D:/RCompile/recent/R-3.6.3/include" -DNDEBUG -I"d:/Compiler/gcc-4.9.3/local330/include" -O3 -Wall -std=gnu99 -mtune=core2 -c errormanager.c -o errormanager.o d:/Compiler/gcc-4.9.3/mingw_32/bin/gcc -I"D:/RCompile/recent/R-3.6.3/include" -DNDEBUG -I"d:/Compiler/gcc-4.9.3/local330/include" -O3 -Wall -std=gnu99 -mtune=core2 -c filemanager.c -o filemanager.o filemanager.c: In function 'gets_file': filemanager.c:136:11: warning: variable 'res' set but not used [-Wunused-but-set-variable] char* res; ^ filemanager.c: In function '_get_temp_filename': filemanager.c:209:5: warning: implicit declaration of function 'mkstemp' [-Wimplicit-function-declaration] error = mkstemp(*tempname); ^ d:/Compiler/gcc-4.9.3/mingw_32/bin/gcc -I"D:/RCompile/recent/R-3.6.3/include" -DNDEBUG -I"d:/Compiler/gcc-4.9.3/local330/include" -O3 -Wall -std=gnu99 -mtune=core2 -c genmmd.c -o genmmd.o d:/Compiler/gcc-4.9.3/mingw_32/bin/gcc -I"D:/RCompile/recent/R-3.6.3/include" -DNDEBUG -I"d:/Compiler/gcc-4.9.3/local330/include" -O3 -Wall -std=gnu99 -mtune=core2 -c hash.c -o hash.o d:/Compiler/gcc-4.9.3/mingw_32/bin/gcc -I"D:/RCompile/recent/R-3.6.3/include" -DNDEBUG -I"d:/Compiler/gcc-4.9.3/local330/include" -O3 -Wall -std=gnu99 -mtune=core2 -c hydcoeffs.c -o hydcoeffs.o d:/Compiler/gcc-4.9.3/mingw_32/bin/gcc -I"D:/RCompile/recent/R-3.6.3/include" -DNDEBUG -I"d:/Compiler/gcc-4.9.3/local330/include" -O3 -Wall -std=gnu99 -mtune=core2 -c hydraul.c -o hydraul.o d:/Compiler/gcc-4.9.3/mingw_32/bin/gcc -I"D:/RCompile/recent/R-3.6.3/include" -DNDEBUG -I"d:/Compiler/gcc-4.9.3/local330/include" -O3 -Wall -std=gnu99 -mtune=core2 -c hydsolver.c -o hydsolver.o d:/Compiler/gcc-4.9.3/mingw_32/bin/gcc -I"D:/RCompile/recent/R-3.6.3/include" -DNDEBUG -I"d:/Compiler/gcc-4.9.3/local330/include" -O3 -Wall -std=gnu99 -mtune=core2 -c hydstatus.c -o hydstatus.o d:/Compiler/gcc-4.9.3/mingw_32/bin/gcc -I"D:/RCompile/recent/R-3.6.3/include" -DNDEBUG -I"d:/Compiler/gcc-4.9.3/local330/include" -O3 -Wall -std=gnu99 -mtune=core2 -c init.c -o init.o d:/Compiler/gcc-4.9.3/mingw_32/bin/gcc -I"D:/RCompile/recent/R-3.6.3/include" -DNDEBUG -I"d:/Compiler/gcc-4.9.3/local330/include" -O3 -Wall -std=gnu99 -mtune=core2 -c inpfile.c -o inpfile.o d:/Compiler/gcc-4.9.3/mingw_32/bin/gcc -I"D:/RCompile/recent/R-3.6.3/include" -DNDEBUG -I"d:/Compiler/gcc-4.9.3/local330/include" -O3 -Wall -std=gnu99 -mtune=core2 -c input1.c -o input1.o d:/Compiler/gcc-4.9.3/mingw_32/bin/gcc -I"D:/RCompile/recent/R-3.6.3/include" -DNDEBUG -I"d:/Compiler/gcc-4.9.3/local330/include" -O3 -Wall -std=gnu99 -mtune=core2 -c input2.c -o input2.o d:/Compiler/gcc-4.9.3/mingw_32/bin/gcc -I"D:/RCompile/recent/R-3.6.3/include" -DNDEBUG -I"d:/Compiler/gcc-4.9.3/local330/include" -O3 -Wall -std=gnu99 -mtune=core2 -c input3.c -o input3.o d:/Compiler/gcc-4.9.3/mingw_32/bin/gcc -I"D:/RCompile/recent/R-3.6.3/include" -DNDEBUG -I"d:/Compiler/gcc-4.9.3/local330/include" -O3 -Wall -std=gnu99 -mtune=core2 -c mempool.c -o mempool.o d:/Compiler/gcc-4.9.3/mingw_32/bin/gcc -I"D:/RCompile/recent/R-3.6.3/include" -DNDEBUG -I"d:/Compiler/gcc-4.9.3/local330/include" -O3 -Wall -std=gnu99 -mtune=core2 -c output.c -o output.o d:/Compiler/gcc-4.9.3/mingw_32/bin/gcc -I"D:/RCompile/recent/R-3.6.3/include" -DNDEBUG -I"d:/Compiler/gcc-4.9.3/local330/include" -O3 -Wall -std=gnu99 -mtune=core2 -c project.c -o project.o project.c: In function 'openhydfile': project.c:146:16: warning: variable 'res' set but not used [-Wunused-but-set-variable] size_t res; ^ d:/Compiler/gcc-4.9.3/mingw_32/bin/gcc -I"D:/RCompile/recent/R-3.6.3/include" -DNDEBUG -I"d:/Compiler/gcc-4.9.3/local330/include" -O3 -Wall -std=gnu99 -mtune=core2 -c quality.c -o quality.o d:/Compiler/gcc-4.9.3/mingw_32/bin/gcc -I"D:/RCompile/recent/R-3.6.3/include" -DNDEBUG -I"d:/Compiler/gcc-4.9.3/local330/include" -O3 -Wall -std=gnu99 -mtune=core2 -c qualreact.c -o qualreact.o d:/Compiler/gcc-4.9.3/mingw_32/bin/gcc -I"D:/RCompile/recent/R-3.6.3/include" -DNDEBUG -I"d:/Compiler/gcc-4.9.3/local330/include" -O3 -Wall -std=gnu99 -mtune=core2 -c qualroute.c -o qualroute.o d:/Compiler/gcc-4.9.3/mingw_32/bin/gcc -I"D:/RCompile/recent/R-3.6.3/include" -DNDEBUG -I"d:/Compiler/gcc-4.9.3/local330/include" -O3 -Wall -std=gnu99 -mtune=core2 -c report.c -o report.o report.c: In function 'writeresults': report.c:579:16: warning: variable 'res' set but not used [-Wunused-but-set-variable] size_t res; ^ d:/Compiler/gcc-4.9.3/mingw_32/bin/gcc -I"D:/RCompile/recent/R-3.6.3/include" -DNDEBUG -I"d:/Compiler/gcc-4.9.3/local330/include" -O3 -Wall -std=gnu99 -mtune=core2 -c rules.c -o rules.o d:/Compiler/gcc-4.9.3/mingw_32/bin/gcc -I"D:/RCompile/recent/R-3.6.3/include" -DNDEBUG -I"d:/Compiler/gcc-4.9.3/local330/include" -O3 -Wall -std=gnu99 -mtune=core2 -c smatrix.c -o smatrix.o d:/Compiler/gcc-4.9.3/mingw_32/bin/gcc -I"D:/RCompile/recent/R-3.6.3/include" -DNDEBUG -I"d:/Compiler/gcc-4.9.3/local330/include" -O3 -Wall -std=gnu99 -mtune=core2 -c toolkit.c -o toolkit.o d:/Compiler/gcc-4.9.3/mingw_32/bin/gcc -shared -s -static-libgcc -o epanet2toolkit.dll tmp.def Repanet2.o cstr_helper.o epanet.o epanet2.o errormanager.o filemanager.o genmmd.o hash.o hydcoeffs.o hydraul.o hydsolver.o hydstatus.o init.o inpfile.o input1.o input2.o input3.o mempool.o output.o project.o quality.o qualreact.o qualroute.o report.o rules.o smatrix.o toolkit.o -Ld:/Compiler/gcc-4.9.3/local330/lib/i386 -Ld:/Compiler/gcc-4.9.3/local330/lib -LD:/RCompile/recent/R-3.6.3/bin/i386 -lR filemanager.o:filemanager.c:(.text+0xf6): undefined reference to `mkstemp' filemanager.o:filemanager.c:(.text+0x263): undefined reference to `mkstemp' collect2.exe: error: ld returned 1 exit status make[1]: Leaving directory `/cygdrive/d/temp/RtmpgVKBOF/R.INSTALL119c0980440e/epanet2toolkit/src-i386' make[1]: Entering directory `/cygdrive/d/temp/RtmpgVKBOF/R.INSTALL119c0980440e/epanet2toolkit/src-i386' make[1]: Leaving directory `/cygdrive/d/temp/RtmpgVKBOF/R.INSTALL119c0980440e/epanet2toolkit/src-i386' no DLL was created ERROR: compilation failed for package 'epanet2toolkit' * removing 'd:/Rcompile/CRANpkg/lib/3.6/epanet2toolkit' * restoring previous 'd:/Rcompile/CRANpkg/lib/3.6/epanet2toolkit'