preloader.o(.text+0x219): In function `wld_printf': /usr/local/src/wine/loader/preloader.c:338: undefined reference to `strlen' preloader.o(.text+0x260): In function `fatal_error': /usr/local/src/wine/loader/preloader.c:349: undefined reference to `strlen' collect2: ld returned 1 exit status make[1]: *** [wine-preloader] Error 1 make: *** [loader] Error 2
Here is offending patch: http://cvs.winehq.org/patch.py?id=12698
This part: Index: wine/loader/Makefile.in diff -u wine/loader/Makefile.in:1.15 wine/loader/Makefile.in:1.16 --- wine/loader/Makefile.in:1.15 Sun Jul 4 16:02:15 2004 +++ wine/loader/Makefile.in Sun Jul 4 16:02:15 2004 @@ -28,7 +28,7 @@ $(CC) -o $@ glibc.o $(LIBWINE) $(LIBPORT) $(LIBPTHREAD) $(EXTRALIBS) $(LDFLAGS)
wine-preloader: preloader.o Makefile.in - $(CC) -o $@ -static -nostartfiles -Wl,-Ttext=0x78000000 preloader.o $(LIBPORT) $(LDFLAGS) + $(CC) -o $@ -static -nostartfiles -nodefaultlibs -Wl,-Ttext=0x78000000 preloader.o $(LIBPORT) $(LDFLAGS)
wine-kthread: $(KTHREAD_OBJS) Makefile.in $(CC) -o $@ $(LDEXECFLAGS) $(KTHREAD_OBJS) $(LIBWINE) $(LIBPORT) $(EXTRALIBS) $(LDFLAGS)
Any ideas?