Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:34031 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 27742 invoked by uid 1010); 14 Dec 2007 09:39:43 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 27727 invoked from network); 14 Dec 2007 09:39:43 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 14 Dec 2007 09:39:43 -0000 Authentication-Results: pb1.pair.com smtp.mail=steph@zend.com; spf=permerror; sender-id=softfail Authentication-Results: pb1.pair.com header.from=steph@zend.com; sender-id=softfail Received-SPF: error (pb1.pair.com: domain zend.com from 64.97.136.145 cause and error) X-PHP-List-Original-Sender: steph@zend.com X-Host-Fingerprint: 64.97.136.145 smtpout0145.sc1.he.tucows.com Solaris 8 (1) Received: from [64.97.136.145] ([64.97.136.145:52547] helo=n066.sc1.he.tucows.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 80/32-09457-D5F42674 for ; Fri, 14 Dec 2007 04:39:43 -0500 Received: from sc1-out03.emaildefenseservice.com (64.97.139.2) by n066.sc1.he.tucows.com (7.2.069.1) id 4761B41300009369 for internals@lists.php.net; Fri, 14 Dec 2007 09:39:38 +0000 X-SpamScore: 2 X-Spamcatcher-Summary: 2,0,0,a5f09e513ddd9dc7,18363d503a9caa2a,steph@zend.com,-,RULES_HIT:152:355:379:539:540:541:542:543:567:945:988:989:1000:1155:1156:1260:1308:1309:1313:1314:1345:1437:1515:1516:1518:1534:1538:1575:1587:1594:1676:1711:1730:1747:1764:1766:1792:2073:2075:2078:2198:2199:2393:2559:2562:2731:3352:3622:3690:3865:3866:3867:3868:3869:3870:3871:3872:3873:3874:4250:5007:6119:6261:7281,0,RBL:none,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk, SPF:,MSBL:none,DNSBL:none X-Spamcatcher-Explanation: Received: from foxbox (unknown [64.97.206.40]) (Authenticated sender: steph.fox) by sc1-out03.emaildefenseservice.com (Postfix) with ESMTP for ; Fri, 14 Dec 2007 09:39:37 +0000 (UTC) Message-ID: <07d801c83e35$54df0570$e6dfc350@foxbox> Reply-To: "Steph Fox" To: "internals" Date: Fri, 14 Dec 2007 09:40:13 -0000 Organization: Zend Technologies MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_NextPart_000_07D5_01C83E35.53C90190" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.2180 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 Subject: Extension dependencies in win32 build From: steph@zend.com ("Steph Fox") ------=_NextPart_000_07D5_01C83E35.53C90190 Content-Type: text/plain; format=flowed; charset="utf-8"; reply-type=original Content-Transfer-Encoding: 7bit Hi all, Having spent a few hours tussling with the load-order bogey, I found what I think is a bit of a gap in the win32 build process. There are no configure warnings at all when there's a missing extension dependency... only a bailout if you try to build a dependency as shared for a static extension. The need to bail out would depend on how full-on the 'dependency' in question is, and I'd guess that can be variable. Trivial patch attached, would've saved me a lot of brain-ache if it had been in CVS yesterday but see what you think. - Steph ------=_NextPart_000_07D5_01C83E35.53C90190 Content-Type: text/plain; format=flowed; name="win32_dependencies.txt"; reply-type=original Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="win32_dependencies.txt" Index: win32/build/confutils.js=0A= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=0A= RCS file: /repository/php-src/win32/build/confutils.js,v=0A= retrieving revision 1.60.2.1.2.8.2.1=0A= diff -u -r1.60.2.1.2.8.2.1 confutils.js=0A= --- win32/build/confutils.js 14 Nov 2007 19:38:57 -0000 1.60.2.1.2.8.2.1=0A= +++ win32/build/confutils.js 14 Dec 2007 09:22:54 -0000=0A= @@ -1009,7 +1009,15 @@=0A= ADD_FLAG("LDFLAGS_" + EXT, "/libpath:$(BUILD_DIR)");=0A= ADD_FLAG("LIBS_" + EXT, "php_" + dependson + ".lib");=0A= ADD_FLAG("DEPS_" + EXT, "$(BUILD_DIR)\\php_" + dependson + ".lib");=0A= - }=0A= + } else {=0A= + if (dep_present =3D=3D "no") {=0A= + if (ext_shared) {=0A= + WARNING(extname + " has a missing dependency: " + dependson);=0A= + } else {=0A= + ERROR("Cannot build " + extname + "; " + dependson + " not = enabled");=0A= + }=0A= + }=0A= + } // dependency is statically built-in to PHP=0A= }=0A= =0A= function EXTENSION(extname, file_list, shared, cflags, dllname, obj_dir)=0A= ------=_NextPart_000_07D5_01C83E35.53C90190--