http://bugs.winehq.org/show_bug.cgi?id=13690
Dylan Smith dylan.ah.smith@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |dylan.ah.smith@gmail.com
--- Comment #3 from Dylan Smith dylan.ah.smith@gmail.com 2008-09-06 11:52:38 --- I was able to compile dbghelp.dll with the following steps. 1. Download mingw-libgnurx-2.5.1-src.tar.gz from http://sourceforge.net/project/showfiles.php?group_id=2435&package_id=73...
I haven't looked at the source code for the package, but the idea is we want some package that implements the regex functions used.
2. Untar, configure, build, and install. Modify the commands based on how your system is setup. tar -xf mingw-libgnurx-2.5.1-src.tar.gz cd mingw-libgnurx-2.5.1 ./configure --prefix=/usr/local/i386-mingw32 --host=i386-mingw32 make sudo make install
3. Reconfigure your wine cross compile build, and make sure that it finds regex.h
4. Compiling dbghelp.dll will still give you an error on the linking command, but should be able to compile the object files (e.g. making source.o & symbol.o didn't work before).
So what still needs to be done is to make sure libregex.a is used for linking, so either add regex to the IMPORTS at the top of the Makefile.
This needs to be done because regex is normally a part of the GNU C library, but it isn't a part of mingw.
5. Run make in dlls/dbghelp and it should compile dbghelp.dll.
I don't know what the we should do to avoid this issue, but hopefully I have at least identified the problem for you and shown you a workaround.
It seems like we need to either avoid using regex functions from the GNU Library, add an implementation of these to the ports, or warn of the missing regex on the build then use precompiler conditions to avoid using functions in regex.h and give a runtime error/warning explaining the problem.
I hope that helps.