Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:49933 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 98709 invoked from network); 19 Oct 2010 15:59:16 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 19 Oct 2010 15:59:16 -0000 Authentication-Results: pb1.pair.com header.from=pierre.php@gmail.com; sender-id=pass; domainkeys=bad Authentication-Results: pb1.pair.com smtp.mail=pierre.php@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.212.42 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: pierre.php@gmail.com X-Host-Fingerprint: 209.85.212.42 mail-vw0-f42.google.com Received: from [209.85.212.42] ([209.85.212.42:44779] helo=mail-vw0-f42.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 17/3A-49897-350CDBC4 for ; Tue, 19 Oct 2010 11:59:16 -0400 Received: by vws9 with SMTP id 9so987747vws.29 for ; Tue, 19 Oct 2010 08:59:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=pRhX8jnjc6ntix4tFvgsxxhywYUOzB4yoHQjvpvDXVU=; b=DrE6MyqZkYd5voIiCAq3I1bnisvGHZKnX++LvdLgCXGx3N2u9J10roNoM5zt4Pbg29 tIpSC9YkE1ax8kPXld/BlQlvTAVE7JRG5teFmHhT8LLhEUxBoolmawuFj//64R7LuSCu CdtzSgK2PEEz427kxL+A6sI8VbCA+7LrEttJo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=TLKBqfJpGwwXlfqsqmSSbldJDm4l1m7AP9ZGLr33bbTt682+JAz+6MwMlLhmRWZ7w9 1QqIgTbKe1l2W5Y+IdskA4sEnqbxO1EagYNRvhZNxep7fhUY2N+7Jl/2+LjN8karvxp2 Runtkbjq3NwqJXt2uekSQHlA9pEjDfcpDQ6X4= MIME-Version: 1.0 Received: by 10.103.175.13 with SMTP id c13mr4938070mup.30.1287503952117; Tue, 19 Oct 2010 08:59:12 -0700 (PDT) Received: by 10.223.119.8 with HTTP; Tue, 19 Oct 2010 08:59:12 -0700 (PDT) In-Reply-To: References: Date: Tue, 19 Oct 2010 17:59:12 +0200 Message-ID: To: Michael Felt Cc: internals@lists.php.net Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] Re: ext/pcre/pcrelib/config.h:#define HAVE_STDINT_H 1 - bug in PHP or ext(ernal) package that needs to be contacted? From: pierre.php@gmail.com (Pierre Joye) hi, We do this in the bundled pcre library. Please check the exact logic there and try to see what is required to make it work on your box + compiler without breaking other platforms. It would rock if you could provide a patch+bug report :) Thanks! On Tue, Oct 19, 2010 at 3:36 PM, Michael Felt wrote: > p.s. my fix is: > /* Define to 1 if you have the header file. * / > #ifndef HAVE_STDINT_H > #define HAVE_STDINT_H 1 > #endif > */ > (added space to break end-of comment, and added end of comment below bloc= k) > > On Tue, Oct 19, 2010 at 3:32 PM, Michael Felt wrote: > >> Maybe a bug? with ext/* I wonder if it is internal, or something borrowe= d. >> >> The hardpart is to get a compiler old enough to not have stdint.h I >> suppose, but when that is the case the build fails and/or configure miss= es >> it. >> >> from /data/prj/php-5.2.14 >> >> # grep -n HAVE_STDINT_H */*/*/*.h >> ext/date/lib/timelib_structs.h:32:#elif defined(HAVE_STDINT_H) >> ext/pcre/pcrelib/config.h:108:#ifndef HAVE_STDINT_H >> ext/pcre/pcrelib/config.h:109:#define HAVE_STDINT_H 1 >> ext/pcre/pcrelib/pcre_internal.h:197:#elif HAVE_STDINT_H >> >> # ls -l ext/pcre/pcrelib/config.h >> -rw-r--r-- =A0 1 1005 =A0 =A0 1005 =A0 =A0 =A0 11704 Mar 29 2010 >> ext/pcre/pcrelib/config.h >> >> From the date I conclude configure has nothing to do with this, from the >> line numbers I wonder why they say >> #ifndef SOME_VARIABLE >> #define SOME_VARIABLE 1 >> >> There are consequences! pcre_internal.h believes this! So, my question i= s: >> whose error is it? PHP, or somewhere external? >> >> make returns: >> >> # make >> /bin/sh /data/prj/php-5.2.14/libtool --silent --preserve-dup-deps >> --mode=3Dcompile gcc -I/data/prj/php-5.2.14/ext/pcre/pcrelib -Iext/pcre/ >> -I/data/prj/php-5.2.14/ext/pcre/ -DPHP_ATOM_INC >> -I/data/prj/php-5.2.14/include -I/data/prj/php-5.2.14/main >> -I/data/prj/php-5.2.14 -I/data/prj/php-5.2.14/ext/date/lib >> -I/usr/local/include/libxml2 -I/usr/local/include >> -I/usr/local/include/freetype2 -I/usr/local/mysql/include >> -I/data/prj/php-5.2.14/TSRM -I/data/prj/php-5.2.14/Zend =A0 =A0-I/usr/in= clude >> -L/usr/local/ssl/lib -L/usr/local/mysql/lib -L/usr/local/lib =A0 -c >> /data/prj/php-5.2.14/ext/pcre/pcrelib/pcre_chartables.c -o >> ext/pcre/pcrelib/pcre_chartables.lo >> In file included from >> /data/prj/php-5.2.14/ext/pcre/pcrelib/pcre_chartables.c:25: >> /data/prj/php-5.2.14/ext/pcre/pcrelib/pcre_internal.h:198:20: stdint.h: = No >> such file or directory >> make: *** [ext/pcre/pcrelib/pcre_chartables.lo] Error 1 >> >> This is on AIX 4.3.3 and gcc. >> > --=20 Pierre @pierrejoye | http://blog.thepimp.net | http://www.libgd.org