I am working on a test for _fseeki64 and _ftelli64.
brutalcomputer@brutalcomputer-laptop:~/wine-git/dlls/msvcrt/tests$ vim file.c brutalcomputer@brutalcomputer-laptop:~/wine-git/dlls/msvcrt/tests$ make crosstest i586-mingw32msvc-gcc -c -I. -I. -I../../../include -I../../../include -I../../../include/msvcrt -I./.. -DWINE_STRICT_PROTOTYPES -DWINE_CROSSTEST -Wall -g -O2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=0 -o file.cross.o file.c file.c: In function ‘create_io_inherit_block’: file.c:942: warning: dereferencing type-punned pointer will break strict-aliasing rules ../../../tools/winegcc/winegcc -b i586-mingw32msvc -B../../../tools/winebuild --sysroot=../../.. --lib-suffix=.cross.a cpp.cross.o data.cross.o dir.cross.o environ.cross.o file.cross.o headers.cross.o heap.cross.o locale.cross.o misc.cross.o printf.cross.o scanf.cross.o signal.cross.o string.cross.o time.cross.o testlist.cross.o -o msvcrt_crosstest.exe file.cross.o: In function `func_file': /home/brutalcomputer/wine-git/dlls/msvcrt/tests/file.c:1474: undefined reference to `__ftelli64' collect2: ld returned 1 exit status winegcc: i586-mingw32msvc-gcc failed make: *** [msvcrt_crosstest.exe] Error 2 brutalcomputer@brutalcomputer-laptop:~/wine-git/dlls/msvcrt/tests$
of course make test works perfectly.
My guess is that mingw doesn't support _ftelli64 and _fseeki64. What should I do in this situation?