Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:4990 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 99158 invoked by uid 1010); 25 Oct 2003 16:23:38 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 99124 invoked from network); 25 Oct 2003 16:23:38 -0000 Received: from unknown (HELO molly.0x539.de) (217.28.101.185) by pb1.pair.com with SMTP; 25 Oct 2003 16:23:38 -0000 Received: from gate.zwonet.de ([217.28.101.165] helo=leetspeak.org) by molly.0x539.de with asmtp (Exim 4.14) id 1ADR9k-0003yS-54 for internals@lists.php.net; Sat, 25 Oct 2003 18:20:48 +0200 Message-ID: <3F9AA3BF.9080903@leetspeak.org> Date: Sat, 25 Oct 2003 18:24:31 +0200 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.5) Gecko/20030924 Thunderbird/0.3 X-Accept-Language: en-us, en MIME-Version: 1.0 To: internals@lists.php.net References: <5.1.0.14.2.20031024185803.04f70e88@127.0.0.1> <20031025155857.YVGJ18371.mta7-svc.business.ntl.com@php.net> <001f01c39b1a$34df24c0$a693e49d@Sfoxstu> <002a01c39b1c$4dd685c0$a693e49d@Sfoxstu> In-Reply-To: <002a01c39b1c$4dd685c0$a693e49d@Sfoxstu> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] PHP 5 Beta 2 RC1 From: cm@leetspeak.org (Michael Walter) For the ptrdiff_t error, you could just #include . Concerning ssize_t - that isn't a type defined anywhere in the C standard libary, so you have to typedef it by yourself. Alternatively, you could include and typedef SSIZE_T ssize_t; Steph wrote: > btw if you replace ssize_t nbytes = 0; with int nbytes = 0; in line 442 > of gd_jpeg.c - it builds AND works beautifully. > > Dunno why but > #if PHP_WIN32 && !defined(ssize_t) > typedef int ssize_t; > #endif > isn't working .. > > ----- Original Message ----- > From: "Steph" > To: "Sebastian Bergmann" ; > Sent: Saturday, October 25, 2003 5:05 PM > Subject: Re: [PHP-DEV] PHP 5 Beta 2 RC1 > > > >>Same issue with gd2 here. Are we supposed to have updated headers >>somewhere along the line? Edin? >> >>----- Original Message ----- >>From: "Sebastian Bergmann" >>To: >>Sent: Saturday, October 25, 2003 3:57 PM >>Subject: Re: [PHP-DEV] PHP 5 Beta 2 RC1 >> >> >> >>>Andi Gutmans wrote: >>> >>>>Please let me know both if it works for you and if it fails. >>> >>> Compiles fine on my GENTOO/Linux laptop: >>> >>> - gentoo-sources 2.4.20-r7 >>> - glibc 2.3.2-r6 >>> - gcc (GCC) 3.3.1 20030916 (Gentoo Linux 3.3.1-r4, propolice) >>> - autoconf 2.13, libtool 1.4.3, bison 1.875, flex 2.5.4 >>> >>> Compiles with 49 warnings (CLI/CGI SAPIs) on Windows 2000 with > > MSVC > >>6. >> >>> php4apache2.dll fails to build: >>> >>> php5\win32\time.h(27): error C2079: >>> 'it_interval' uses undefined struct 'timeval' >>> >>> php5\win32\time.h(28): error C2079: >>> 'it_value' uses undefined struct 'timeval' >>> >>> apache2\include\apr_network_io.h(250): error C2079: >>> 'sin' uses undefined struct 'sockaddr_in' >>> >>> Don't know what this is about, worked until recently and I haven't >>> changed my build environment since (at least not that I remember). >>> >>> php_gd2.dll fails to build: >>> >>> php5\ext\gd\libgd\gd_jpeg.c(442): error C2065: >>> 'ptrdiff_t': undeclared identifier >>> >>> php5\ext\gd\libgd\gd_jpeg.c(442): error C2146: >>> Syntax error: Missing ';' before identifier 'nbytes' >>> >>> php5\ext\gd\libgd\gd_jpeg.c(442): error C2065: >>> 'nbytes': undeclared identifier >>> >>>-- >>>Sebastian Bergmann >>>http://sebastian-bergmann.de/ >> >>http://phpOpenTracker.de/ >> >>>Das Buch zu PHP 5: >> >>http://professionelle-softwareentwicklung-mit-php5.de/ >> >>>-- >>>PHP Internals - PHP Runtime Development Mailing List >>>To unsubscribe, visit: http://www.php.net/unsub.php >> >>-- >>PHP Internals - PHP Runtime Development Mailing List >>To unsubscribe, visit: http://www.php.net/unsub.php >> > >