http://bugs.winehq.org/show_bug.cgi?id=32369
Bug #: 32369 Summary: dlls/ntdll/file.c fails to link with older glibc due to missing fallocate64() Product: Wine Version: 1.5.18 Platform: x86-64 OS/Version: Linux Status: NEW Keywords: regression Severity: normal Priority: P2 Component: ntdll AssignedTo: wine-bugs@winehq.org ReportedBy: dmitry@baikal.ru CC: hans@meelstraat.net Classification: Unclassified Regression SHA1: c019083240e70b52fb119dad469bb8c6cfda4ade
../../tools/winegcc/winegcc -m32 -B../../tools/winebuild --sysroot=../.. -fasynchronous-unwind-tables -shared ./ntdll.spec actctx.o atom.o cdrom.o critsection.o debugbuffer.o debugtools.o directory.o env.o error.o exception.o file.o handletable.o heap.o large_int.o loader.o loadorder.o misc.o nt.o om.o path.o printf.o process.o reg.o relay.o resource.o rtl.o rtlbitmap.o rtlstr.o sec.o serial.o server.o signal_arm.o signal_i386.o signal_powerpc.o signal_sparc.o signal_x86_64.o string.o sync.o tape.o thread.o threadpool.o time.o version.o virtual.o wcstring.o version.res -nodefaultlibs -Wl,--image-base,0x7bc00000 -o ntdll.dll.so -lwinecrt0 ../../libs/port/libwine_port.a -lpthread file.o: In function `NtSetInformationFile': /home/dmitry/wine/dlls/ntdll/file.c:2264: undefined reference to `fallocate64' collect2: ld returned 1 exit status winegcc: gcc failed --- commit c019083240e70b52fb119dad469bb8c6cfda4ade Author: Hans Leidekker hans@codeweavers.com Date: Tue Dec 4 10:40:16 2012 +0100
kernel32: Implement SetFileValidData. --- Adding '#undef _FILE_OFFSET_BITS' after '#include "config.h" to dlls/ntdll/file.c is a workaround. Probably configure needs to add '#define _FILE_OFFSET_BITS 64' when detecting the presence of various optional libc exports (in case it was detected to be required).