Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:37188 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 83440 invoked from network); 22 Apr 2008 21:26:54 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 22 Apr 2008 21:26:54 -0000 Authentication-Results: pb1.pair.com header.from=jarismar_silva@adplabs.com.br; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=jarismar_silva@adplabs.com.br; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain adplabs.com.br designates 201.84.224.130 as permitted sender) X-PHP-List-Original-Sender: jarismar_silva@adplabs.com.br X-Host-Fingerprint: 201.84.224.130 mail.adplabs.com.br Linux 2.5 (sometimes 2.4) (4) Received: from [201.84.224.130] ([201.84.224.130:58835] helo=kafe.adplabs.com.br) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 3E/5E-09668-B185E084 for ; Tue, 22 Apr 2008 17:26:53 -0400 Received: from [10.159.1.169] (jarismar.adplabs.com.br [10.159.1.169]) by kafe.adplabs.com.br (Postfix) with ESMTP id B809F206D38; Tue, 22 Apr 2008 18:26:46 -0300 (BRT) Message-ID: <480E5828.9010201@adplabs.com.br> Date: Tue, 22 Apr 2008 18:27:04 -0300 User-Agent: Thunderbird 2.0.0.12 (Windows/20080213) MIME-Version: 1.0 To: RQuadling@GoogleMail.com, internals@lists.php.net References: <10845a340804220401j48f63d18v989a72706951a495@mail.gmail.com> <480DD36C.8090701@daylessday.org> <10845a340804220523ued5f4e3ge2c7e21e94f249bb@mail.gmail.com> In-Reply-To: <10845a340804220523ued5f4e3ge2c7e21e94f249bb@mail.gmail.com> Content-Type: multipart/alternative; boundary="------------020209030303070802070304" X-ADPLabs-MailScanner-Information: Please contact your ISP for more information X-ADPLabs-MailScanner: Found to be clean X-ADPLabs-MailScanner-From: jarismar_silva@adplabs.com.br X-Spam-Status: No Subject: Re: [PHP-DEV] Building PHP. Clean builds. Noisy redefines. From: jarismar_silva@adplabs.com.br (Jarismar Chaves da Silva) --------------020209030303070802070304 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Greetings, I'm also having some fun with php devel on windows and I just would like to report that along with _WIN32_WINNT there are few others macro redefinitions. Here is the warnings I saw on last compilation... I'm using the MSVC++ Express Edition, .Net 3 on XP Professional. c:\php-compile\php-5.2.6rc5\main\win95nt.h(75) : warning C4005: 'WINDOWS' : macro redefinition c:\php-compile\zlib-1.2.3-src\src\zlib\1.2.3\zlib-1.2.3\zconf.h(69) : see previous definition of 'WINDOWS' c:\php-compile\php-5.2.6rc5\ext\gd\gd.c(4746) : warning C4005: 'max' : macro redefinition c:\arquivos de programas\microsoft visual studio 9.0\vc\include\stdlib.h(849) : see previous definition of 'max' c:\php-compile\php-5.2.6rc5\ext\gd\gd.c(4747) : warning C4005: 'min' : macro redefinition c:\arquivos de programas\microsoft visual studio 9.0\vc\include\stdlib.h(850) : see previous definition of 'min' c:\php-compile\php-5.2.6rc5\ext\gd\libgd\gd.c(29) : warning C4005: 'fabsf' : macro redefinition c:\arquivos de programas\microsoft visual studio 9.0\vc\include\math.h(288) : see previous definition of 'fabsf' c:\php-compile\php-5.2.6rc5\ext\gd\libgd\gd.c(33) : warning C4005: 'floorf' : macro redefinition c:\arquivos de programas\microsoft visual studio 9.0\vc\include\math.h(301) : see previous definition of 'floorf' c:\php-compile\php-5.2.6rc5\main\win95nt.h(75) : warning C4005: 'WINDOWS' : macro redefinition c:\php-compile\zlib-1.2.3-src\src\zlib\1.2.3\zlib-1.2.3\zconf.h(69) : see previous definition of 'WINDOWS' c:\php-compile\php-5.2.6rc5\win32\glob.c(517) : warning C4090: 'function' : different 'const' qualifiers c:\arquivos de programas\microsoft visual studio 9.0\vc\include\crtdbg.h(628) : warning C4005: '_malloca' : macro redefinition c:\arquivos de programas\microsoft visual studio 9.0\vc\include\malloc.h(220) : see previous definition of '_malloca' c:\php-compile\php-5.2.6rc5\tsrm\readdir.h(10) : warning C4005: '_WIN32_WINNT' : macro redefinition c:\php-compile\php-5.2.6rc5\win32\time.c(27) : see previous definition of '_WIN32_WINNT' c:\php-compile\php-5.2.6rc5\ext\curl\interface.c(1099) : warning C4098: 'zif_curl_init' : 'void' function returning a value c:\php-compile\php-5.2.6rc5\ext\curl\interface.c(1099) : warning C4098: 'zif_curl_init' : 'void' function returning a value c:\php-compile\php-5.2.6rc5\ext\curl\interface.c(1099) : warning C4098: 'zif_curl_init' : 'void' function returning a value c:\php-compile\php-5.2.6rc5\ext\standard\scanf.c(397) : warning C4129: '%' : unrecognized character escape sequence c:\php-compile\php-5.2.6rc5\ext\standard\scanf.c(397) : warning C4129: '%' : unrecognized character escape sequence Thanks, Jaris. Richard Quadling wrote: > On 22/04/2008, Antony Dovgal wrote: > >> On 22.04.2008 15:01, Richard Quadling wrote: >> >> >>> Another warning is that some of the constants are redefined to a >>> different value from the ones that are part of the compiler. The >>> /TRSM/readdir.h, _WIN32_WINNT is redefined from 0x0600 in C:\Program >>> Files\Microsoft >>> >> SDKs\Windows\v6.1\include\sdkddkver.h(186). >> >>> This 1 #define causes a LOT of noise during compilation. I know I >>> could suppress all the warnings, but with so much noise, how does >>> anyone see the true warnings in the noise? >>> >>> By adding a #undef _WIN32_WINNT before #define _WIN32_WINNT 0x0400, >>> this removes the warning. It is more or less every .c compile. >>> >>> >> http://dev.daylessday.org/diff/readdir_winnt.diff >> Did I get you right ? >> >> -- >> Wbr, Antony Dovgal >> >> > > Yes on the patch. There are a few more like this. It is just a cosmetic issue. > > I am using Microsoft Visual C++ 2008 Express Edition with the Windows > Server 2008 and .NET 3.4 SDK. > > I'm NOT running Apache (so runtime version issues there don't apply), > and I am only playing/learning - this is going nowhere near my > live/dev servers. Just learning. > > > My next goal is to get a version of Linux so I can build and test my > suggestions on 2 platforms. Hopefully, my patches/suggestions will > have more support! > > Thank you. > > Richard. > > > -- *Jarismar Chaves da Silva, M.Sc.* *ADP**Labs** Brazil** *jarismar_silva@adplabs.com.br http://www.adp.com --------------020209030303070802070304--