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 Delivered-To: mailing list cygwin AT cygwin DOT com Date: Wed, 12 Dec 2001 07:17:31 +0100 From: "Gerrit P. Haase" X-Mailer: The Bat! (v1.53t) Business Reply-To: "Gerrit P. Haase @ cygwin" Organization: Esse keine toten Tiere X-Priority: 3 (Normal) Message-ID: <127290985915.20011212071731@familiehaase.de> To: "Ryan T. Sammartino" CC: Cygwin List Subject: Re: php-4.1.0 on Cygwin In-Reply-To: <20011212000452.GA15535@localhost> References: <20011212000452 DOT GA15535 AT localhost> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Sender: 320081107336-0001 AT t-dialin DOT net Hallo Ryan, Am 2001-12-12 um 01:04 schriebst du: > I am attempting to build php-4.1.0 on Cygwin. So far I have had to make > the following changes to get things to compile. I am almost certain > that this is the Wrong Way(TM) to solve this problem, so if anyone could > suggest the Right Way(TM) before I send these patches to the PHP guys, > I'd appreciate it. Also, read on about _imp__ craziness... > +/* Hack for Cygwin. Without this, timezone is a function */ This hack is ok. > ---cut here--- > Now I get to a link stage, and I get: > /bin/sh /home/ryans/src/php-4.1.0/cygwin-build/libtool --silent --mode=link gcc -I. -I/home/ryans/src/php-4.1.0/ -I/home/ryans/src/php-4.1.0/cygwin-build/main -I/home/ryans/src/php-4.1.0 > -I/home/ryans/src/php-4.1.0/cygwin-build/Zend -I/home/ryans/src/php-4.1.0/ext/mysql/libmysql -I/home/ryans/src/php-4.1.0/ext/xml/expat -I/home/ryans/src/php-4.1.0/main > -I/home/ryans/src/php-4.1.0/Zend -I/home/ryans/src/php-4.1.0/TSRM -I/home/ryans/src/php-4.1.0/cygwin-build/TSRM -g -O2 -o php -export-dynamic stub.lo libphp4.la > Warning: resolving _stdscr by linking to __imp__stdscr (auto-import) > ./.libs/libphp4.a(xml.o): In function `zm_info_xml': > /home/ryans/src/php-4.1.0/ext/xml/xml.c:237: undefined reference to `_imp__php_XML_ExpatVersion' > ./.libs/libphp4.a(xml.o): In function `xml_parser_dtor': > /home/ryans/src/php-4.1.0/ext/xml/xml.c:304: undefined reference to `_imp__php_XML_ParserFree' > ./.libs/libphp4.a(xml.o): In function `zif_xml_parser_create': > /home/ryans/src/php-4.1.0/ext/xml/xml.c:1080: undefined reference to `_imp__php_XML_ParserCreate' > /home/ryans/src/php-4.1.0/ext/xml/xml.c:1084: undefined reference to `_imp__php_XML_SetUserData' > *** snip > so my question is, where does that _imp__ come from? Something to do > with DLLs I can guess, but I'm a DLL dummy on Winblows. How do I either > get rid of that _imp__ or how do I properly add it to the php_XML_* > functions? There is a lib missing? Have you linked against libexpat? Ciao, Gerrit P. Haase mailto:gp AT familiehaase DOT de -- =^..^= -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/