Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm 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 Message-ID: <42C0AF23.1080706@familiehaase.de> Date: Tue, 28 Jun 2005 04:00:03 +0200 From: "Gerrit P. Haase" User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.8) Gecko/20050511 MIME-Version: 1.0 To: oxenreid AT state DOT net CC: cygwin AT cygwin DOT com Subject: Re: Build/Compile problems with ApachPHP on Cygwin MS-XP References: In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Chris Oxenreider wrote: > Hi, > > I have been trying to compile Apache and PHP on XP. I have been using > the instructions on http://httpd.apache.org/docs/cygwin.html. I have > freshly re-installed my cygwin on XP as of 2005-06-17 which should be > the latest Cygwin (from Kernel.org). My ld version is "GNU ld version > 2.16.91 20050608". I have verified that it understands ' > --enable-auto-import ' from the help section. I have also run in to > this problem when attempting to compile PHP 4.0.2 - 5.x as well. > > The configure command I used is (apache): > > LDFLAGS_SHLIB="--enable-auto-import" ./configure --enable-shared=max \ > --enable-module=most --with-layout=Cygwin > > > > When I attempt to compile apache the make process throws the errors: > > <=== src/modules > gcc -c -I./os/cygwin -I./include -DCYGWIN -DUSE_HSREGEX -DSHARED_CORE > `./apa > ci` modules.c > gcc -c -I./os/cygwin -I./include -DCYGWIN -DUSE_HSREGEX -DSHARED_CORE > `./apa > ci` buildmark.c > dllwrap --enable-auto-import -o libhttpd.dll buildmark.o modules.o > modules/stand > ard/libstandard.a main/libmain.a ./os/cygwin/libos.a ap/libap.a > regex/libregex.a > -lcrypt -lgdbm > dllwrap: no export definition file provided. > Creating one, but that may not be what you want > Info: resolving _optarg by linking to __imp__optarg (auto-import) > Info: resolving _optarg by linking to __imp__optarg (auto-import) > Info: resolving _optarg by linking to __imp__optarg (auto-import) > gcc -I./os/cygwin -I./include -DCYGWIN -DUSE_HSREGEX -DSHARED_CORE > `./apaci` > \ > -o libhttpd.ep -DSHARED_CORE_TIESTATIC main/http_main.c \ > -L. -lhttpd -lcrypt -lgdbm -lexpat > gcc -I./os/cygwin -I./include -DCYGWIN -DUSE_HSREGEX -DSHARED_CORE > `./apaci` > \ > -o httpd -DSHARED_CORE_BOOTSTRAP main/http_main.c \ > ap/libap.a -lcrypt -lgdbm -lexpat libhttpd.dll > > > and > > gcc -DCYGWIN -DUSE_HSREGEX -DSHARED_CORE `../apaci` -o logresolve > -L../os/cygwin -L../ap logresolve.o -lm -lap -los -lcrypt -lgdbm -lexpat > gcc -c -I../os/cygwin -I../include -DCYGWIN -DUSE_HSREGEX > -DSHARED_CORE `../apaci` ab.c > gcc -DCYGWIN -DUSE_HSREGEX -DSHARED_CORE `../apaci` -o ab > -L../os/cygwin -L. > ../ap ab.o -lm -lap -los -lcrypt -lgdbm -lexpat > Info: resolving _optind by linking to __imp__optind (auto-import) > Info: resolving _optarg by linking to __imp__optarg (auto-import) > sed apxs \ > -e 's%@TARGET@%httpd%g' \ > -e 's%@CC@%gcc%g' \ > -e 's%@CFLAGS@% -DCYGWIN -DUSE_HSREGEX -DSHARED_CORE `../apaci`%g' \ > -e 's%@CFLAGS_SHLIB@%-DSHARED_MODULE%g' \ > -e 's%@LD_SHLIB@%dllwrap%g' \ > -e 's%@LDFLAGS_MOD_SHLIB@%--export-all%g' \ > -e 's%@LIBS_SHLIB@%%g' && chmod a+x apxs > gcc -c -I../os/cygwin -I../include -DCYGWIN -DUSE_HSREGEX > -DSHARED_CORE `../ > apaci` checkgid.c > I see no errors, and I see no warnings. > Subsequent executions of make give these errors: > > ===> src/modules/standard > gcc --shared -o mod_env.dll mod_env.lo ../../libhttpd.dll -lcrypt -lgdbm > -lexpat > > mod_env.lo:mod_env.c:(.text+0x2e0): undefined reference to `_ap_pstrcat' > collect2: ld returned 1 exit status > make[4]: *** [mod_env.dll] Error 1 > make[3]: *** [all] Error 1 > make[2]: *** [subdirs] Error 1 > make[2]: Leaving directory `/home/foo/working/phpstuff/apache_1.3.33/s > rc' > make[1]: *** [build-std] Error 2 > make[1]: Leaving directory `/home/foo/working/phpstuff/apache_1.3.33' > make: *** [build] Error 2 Have you applied the Cygwin specific patch as it was used to build apache 1.3.33 for the Cygwin releaseof Apache: http://cygwin.com/packages/apache/ ? Rebuilding from source with the Cygwin Apache source package should work. > Using google to search for this problem only gave me some answers from > 2002 and 2004 about ld and auto import. No recent information is > available (or at least indexed). I receive similar issues when > attempting to compile PHP V 4.2.0 - 5.x. You help is greatly > appreciated. Thanks! Gerrit -- =^..^= -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/