[Bug 13690] failed to crosscompile dbghelp.dll (dogfood)

wine-bugs at winehq.org wine-bugs at winehq.org
Sat Sep 6 11:52:38 CDT 2008


http://bugs.winehq.org/show_bug.cgi?id=13690


Dylan Smith <dylan.ah.smith at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |dylan.ah.smith at gmail.com




--- Comment #3 from Dylan Smith <dylan.ah.smith at 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=73286

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.


-- 
Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
Do not reply to this email, post in Bugzilla using the
above URL to reply.
------- You are receiving this mail because: -------
You are watching all bug changes.



More information about the wine-bugs mailing list