Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:4991 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 23917 invoked by uid 1010); 25 Oct 2003 16:42:36 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 23893 invoked from network); 25 Oct 2003 16:42:35 -0000 Received: from unknown (HELO hermes.sunderland.ac.uk) (157.228.37.117) by pb1.pair.com with SMTP; 25 Oct 2003 16:42:35 -0000 Received: from Sfoxstu ([157.228.147.166]) by hermes.sunderland.ac.uk (iPlanet Messaging Server 5.2 Patch 1 (built Aug 19 2002)) with ESMTPA id <0HNB002LANU2JM@hermes.sunderland.ac.uk> for internals@lists.php.net; Sat, 25 Oct 2003 17:44:27 +0100 (BST) Date: Sat, 25 Oct 2003 17:45:47 +0000 To: Michael Walter , internals@lists.php.net Reply-to: Steph Message-ID: <003e01c39b1f$d30de320$a693e49d@Sfoxstu> MIME-version: 1.0 X-MIMEOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 X-Mailer: Microsoft Outlook Express 5.50.4522.1200 Content-type: text/plain; charset=iso-8859-1 Content-transfer-encoding: 7BIT X-Priority: 3 X-MSMail-priority: Normal 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> <3F9AA3BF.9080903@leetspeak.org> Subject: Re: [PHP-DEV] PHP 5 Beta 2 RC1 From: steph.fox@virgin.net (Steph) - or you _could_ just move the typedef from its current position at the beginning of the file to where it belongs (after the includes)! You also need to make it a sane typedef: #if PHP_WIN32 typedef SSIZE_T ssize_t; #endif works here. Sebastian? ----- Original Message ----- From: "Michael Walter" To: Sent: Saturday, October 25, 2003 4:24 PM Subject: Re: [PHP-DEV] PHP 5 Beta 2 RC1 > 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 > >> > > > > > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php