delorie.com/archives/browse.cgi | search |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sources.redhat.com/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs> |
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" <news DOT Andreas AT gmx DOT net> |
To: | "Jason Tishler" <jason AT tishler DOT net>, <cygwin AT cygwin DOT com> |
Subject: | AW: PHP Apache module with PostgreSQL support |
Date: | Wed, 18 Sep 2002 23:04:03 +0200 |
Message-ID: | <IOEFIOCBAFPGBCJCLFMEGEKOCDAA.news.Andreas@gmx.net> |
MIME-Version: | 1.0 |
X-Priority: | 3 (Normal) |
X-MSMail-Priority: | Normal |
X-MimeOLE: | Produced By Microsoft MimeOLE V6.00.2600.0000 |
In-Reply-To: | <20020918200019.GC1764@tishler.net> |
Importance: | Normal |
> > 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] \ > ^^^^^^^^ > > The above seems important. > > > /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' > > The above implies that you need -lcrypt. > > > ../../../.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' > > ... > > The above implies that you need more -l options. Thanks! I did: ../../../CYGIN-PATCHES/mkdll.sh libsapi.la \ -L ../../../.libs -lphp4 -lpq -lcrypt \ /usr/bin/cyghttpd.dll The error about crypt doesn't appear any more just lines complaining undefined references to the xml extension. 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 -lcrypt /usr/bin/cyghttpd.dll Creating library file: libsapi.dll.a ../../../.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' ../../../.libs/libphp4.a(xml.lo): In function 'xml_parser_dtor': /usr/src/php-4.2.0-1/ext/xml/xml.c:300: undefined reference to '_imp__php_XML_ParserFree'... ../../../.libs/libphp4.a(xml.lo): In function 'zif_xml_parser_create': /usr/src/php-4.2.0-1/ext/xml/xml.c:1042: undefined reference to '_imp__php_XML_ParserCreate' ... ../../../.libs/libphp4.a(xml.lo): In function 'zif_xml_get_current_byte_index': /usr/src/php-4.2.0-1/ext/xml/xml.c:1464: undefined reference to '_imp__php_XML_GetCurrentByteIndex' collect2: ld returned 1 exit status It won't work with the flag -lxml. What flag should I specify instead? 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/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |