Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:28681 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 76498 invoked by uid 1010); 5 Apr 2007 05:29:30 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 76482 invoked from network); 5 Apr 2007 05:29:30 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 5 Apr 2007 05:29:30 -0000 Authentication-Results: pb1.pair.com smtp.mail=rasmus@lerdorf.com; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=rasmus@lerdorf.com; sender-id=unknown Received-SPF: error (pb1.pair.com: domain lerdorf.com from 204.11.219.139 cause and error) X-PHP-List-Original-Sender: rasmus@lerdorf.com X-Host-Fingerprint: 204.11.219.139 mail.lerdorf.com Linux 2.5 (sometimes 2.4) (4) Received: from [204.11.219.139] ([204.11.219.139:46916] helo=lerdorf.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 95/21-57574-83984164 for ; Thu, 05 Apr 2007 01:29:29 -0400 Received: from [192.168.200.104] (c-67-169-43-97.hsd1.ca.comcast.net [67.169.43.97]) (authenticated bits=0) by lerdorf.com (8.13.8/8.13.8/Debian-3) with ESMTP id l355TPmg017824 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Wed, 4 Apr 2007 22:29:25 -0700 Message-ID: <46148933.7030709@lerdorf.com> Date: Wed, 04 Apr 2007 22:29:23 -0700 User-Agent: Thunderbird 1.5.0.10 (Macintosh/20070221) MIME-Version: 1.0 To: Matt Wilmas CC: internals@lists.php.net References: <007b01c77735$89410420$0201a8c0@pc1> In-Reply-To: <007b01c77735$89410420$0201a8c0@pc1> X-Enigmail-Version: 0.94.2.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV 0.90.1/3017/Wed Apr 4 20:50:56 2007 on colo X-Virus-Status: Clean Subject: Re: [PHP-DEV] Build failure From: rasmus@lerdorf.com (Rasmus Lerdorf) Matt Wilmas wrote: > Hi, > > Maybe just a Windows problem if it wasn't noticed yet, but I was compiling > the latest 5.2 snapshot and got: > > main.obj : error LNK2019: unresolved external symbol _php_flock referenced > in function _php_log_err > Release_TS\php5ts.dll : fatal error LNK1120: 1 unresolved externals > > Caused by this recent commit, http://news.php.net/php.cvs/43683, and I > commented the php_flock line as a workaround. The Windows 5.2 snapshots > haven't been updated because of this either, of course. I see no reason for that lock at all as I commented when this was committed, but Ilia never replied. This is a single write operation now since those fprintf's are now one, so that part of the fix is good, but the lock call is not needed since single writes in append mode are atomic, even on Windows. So, your work around is fine and should actually be committed. -Rasmus