http://bugs.winehq.org/show_bug.cgi?id=5138
Summary: Unresolved external to strncmpW Product: Wine Version: CVS Platform: PC OS/Version: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: wine-binary AssignedTo: wine-bugs@winehq.org ReportedBy: david.ronis@mcgill.ca
I've been following wine via CVS for years. Recently, the builds started failing. First, and this is probably not be relevant, I get a warning about freetype2 not being found; specifically:
*** Warning: Freetype or Fontforge is missing. *** Fonts will not be built. Dialog text may be invisible or unaligned.
This is not correct, I've got freetype-2.1.10 installed from a build-tree where prefix=/usr
In any event, after make depend, make dies as:
make[2]: Entering directory `/home/ronis/Project/notar/wine/dlls/shlwapi' ../../tools/winegcc/winegcc -B../../tools/winebuild -shared ./shlwapi.spec assoc.o clist.o istream.o msgbox.o ordinal.o path.o reg.o regstream.o shlwapi_main.o stopwatch.o string.o thread.o url.o wsprintf.o shlwapi.res -Wl,--rpath,$ORIGIN/`../../tools/relpath /usr/local/lib/wine /usr/local/lib` -o shlwapi.dll.so -L../../dlls -loleaut32 -lole32 -luser32 -lgdi32 -ladvapi32 -lkernel32 -lntdll -Wb,-doleaut32 -L../../libs -lwine -luuid -L../../libs/unicode -lwine_unicode -L../../libs/port -lwine_port string.o(.text+0x10b3): In function `StrStrW': /home/ronis/Project/notar/wine/dlls/shlwapi/string.c:531: undefined reference to `strncmpW' collect2: ld returned 1 exit status winegcc: /usr/bin/gcc failed.
I've checked and it appears that this is defined in wine/include/unicode.h as static inline and string.c does include unicode.h. If strncmpW is defined as static inline, can it really be used as an argument to the function (if that is what is at line 531 in string .c)? The line in qustion reads:
return SHLWAPI_StrStrHelperW(lpszStr, lpszSearch, strncmpW);
One thing that has changed here is that I've started using gcc-4.1.0. Other than that, I'm running slackware-current.