X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-2.3 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Message-ID: <4A97E3B9.8090406@timehorse.com> Date: Fri, 28 Aug 2009 10:03:37 -0400 From: "Jeffrey C. Jacobs" Reply-To: darklord AT timehorse DOT com User-Agent: Thunderbird 2.0.0.23 (Macintosh/20090812) MIME-Version: 1.0 To: cygwin AT cygwin DOT com Subject: Trying to make a proper CYGWIN build for Apache 2.2.13 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com I've hacked the Apache 2.2.6 source to make it match Apache 2.2.13, updated the patch file and am trying now to build using the template of the 2.2.6 patch. When I build Apache using the updated apache2-2.2.13-1.sh script, I can get through most phases of the build but when I get to the the final link step for httpd2, I get: /usr/lib/libcygwin.a(libcmain.o):(.text+0xab): undefined reference to `_WinMain AT 16' Any thoughts on what I should change? I'm a bit surprised as, of course, Windows binaries set their entry point to WinMain (mangled as _WinMain) where as unix binaries as well as command-line binaries use main, and since Apache hasn't any GUI elements, shouldn't the linker expect _main and not _WinMain? Since this is so fundamental in the build process, I find it highly unlikely that Apache has changed so much from 2.2.6 to 2.2.13 that it broke the CYGWIN build in this way, but one never knows and certainly if there's a fix I'll add it to the patch since I hope if I can get this working, I can contribute it to the project as an official release. Jeffrey. -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple