[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
Win32 stuff
- To: OpenLDAP Devel <openldap-devel@OpenLDAP.org>
- Subject: Win32 stuff
- From: Howard Chu <hyc@symas.com>
- Date: Mon, 10 Oct 2005 18:45:32 -0700
- User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9a1) Gecko/20050925 SeaMonkey/1.1a
So, MinGW gdb is pretty fragile, doesn't work that well. I've had to go
back to compiling with MSVC to use the Microsoft debugger. The MSVC
command line interface is typically Microsoft, but you can wrap it in
something more practical. There's a sourceforge project "cccl" which
provides a shell script wrapper for the Microsoft compiler and linker.
It's totally inadequate as-is but I've tweaked it enough to get past
configure; further coaxing is needed to get all the way through a build
but it eventually works well enough to get working source-level debugging.
The worst problem going this route was hitting an internal linker error
(which, naturally, is documented nowhere) building the slapd and slurpd
.EXEs. Eventually I found this was due to the slapdmsg.res file produced
by the GNU toolchain; replacing it with one produced by the Microsoft
tool fixed it. (For posterity: "LINK:
error: Internal error during ZeroPad".)
--
-- Howard Chu
Chief Architect, Symas Corp. http://www.symas.com
Director, Highland Sun http://highlandsun.com/hyc
OpenLDAP Core Team http://www.openldap.org/project/