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 From: "Andreas" To: Subject: Re: PHP Apache module with PostgreSQL support Date: Wed, 18 Sep 2002 21:38:12 +0200 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 In-Reply-To: <20020918122303.GD1648@tishler.net> Importance: Normal > > It doesn't work that way: > > ../../../CYGIN-PATCHES/mkdll.sh libsapi.la \ > > -L ../../../.libs -lphp4 \ > > /usr/bin/cyghttpd.dll /usr/bin/pq.dll [8] > ^^^^^^^^^^^^^^^ > > One should *not* link against DLLs directly -- one should link against > the corresponding import libraries instead. Use "-lpq" instead of > "/usr/bin/pq.dll" above. BTW, the "/usr/bin/cyghttpd.dll" is suspect > too. I read this in (/usr/doc/Cygwin/)php-4.2.0-1.README: ../../../CYGIN-PATCHES/mkdll.sh libsapi.la \ -L ../../../.libs -lphp4 \ [addional -lfoobar ld flags] \ /usr/bin/cyghttpd.dll I tried: ../../../CYGIN-PATCHES/mkdll.sh libsapi.la \ -L ../../../.libs -lphp4 -lpq \ /usr/bin/cyghttpd.dll output: gcc -shared -o cygsapi.dll -Wl,--out-implib=libsapi.dll.a -Wl,--export-all-symbols -Wl,--wh ole-archive libsapi.al -Wl,--no-whole-archive -L ../../../.libs -lphp4 -lpq /usr/bin/cyghttpd.dll Creating library file: libsapi.dll.a ../../../.libs/libphp4.a(crypt.lo): In function 'zif_crypt': /usr/src/php-4.2.0-1/ext/standard/crypt.c:161: undefined reference to 'crypt' ../../../.libs/libphp4.a(xml.lo): In function 'zm_info_xml': /usr/src/php-4.2.0-1/ext/xml/xml.c:236: undefined reference to '_imp__php_XML_ExpatVersion' ... ... ... collect2: ld returned 1 exit status How can I perform that step? Andreas -- 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/