Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:9703 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 8228 invoked by uid 1010); 7 May 2004 11:58:26 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 8203 invoked from network); 7 May 2004 11:58:26 -0000 Received: from unknown (HELO khan.acc.umu.se) (130.239.18.139) by pb1.pair.com with SMTP; 7 May 2004 11:58:26 -0000 Received: from localhost (localhost [127.0.0.1]) by amavisd-new (Postfix) with ESMTP id DF51CD22E for ; Fri, 7 May 2004 13:58:25 +0200 (MEST) Received: from shaka.acc.umu.se (shaka.acc.umu.se [130.239.18.148]) by khan.acc.umu.se (Postfix) with ESMTP id DF473D2A6 for ; Fri, 7 May 2004 13:58:24 +0200 (MEST) Received: by shaka.acc.umu.se (Postfix, from userid 23488) id AAB4BF; Fri, 7 May 2004 13:58:24 +0200 (MEST) Date: Fri, 7 May 2004 13:58:24 +0200 To: internals@lists.php.net Message-ID: <20040507115824.GT9782@shaka.acc.umu.se> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.1i X-Virus-Scanned: by amavisd-new at acc.umu.se Subject: compile issues on Solaris From: guru@acc.umu.se (Daniel Fahlgren) Hello I'm having compile issues with PHP5 on Solaris. I tried both Solaris 8 and 9, both giving me the same error. The problem is in the file ext/standard/proc_open.c And the error message from gcc is: In file included from /Home/staff/fahlgren/php-test/php5-200405071030/Zend/zend.h:244, from /Home/staff/fahlgren/php-test/php5-200405071030/main/php.h:34, from /Home/staff/fahlgren/php-test/php5-200405071030/ext/standard/proc_open.c:23: /Home/staff/fahlgren/php-test/php5-200405071030/Zend/zend_hash.h:39: parse error before `*' /Home/staff/fahlgren/php-test/php5-200405071030/Zend/zend_hash.h:39: parse error before `uint' /Home/staff/fahlgren/php-test/php5-200405071030/Zend/zend_hash.h:39: `ulong' declared as function returning a function [...] more errors due to the first ones. I found that in order to get ulong and uint on Solaris you have to include sys/types.h Then it compiles and gives a functional binary. It must beincluded before the "#define _XOPEN_SOURCE", otherwise it still won't compile. This problem is still in the latest cvs snapshot (from May 07, 2004 10:30 GMT as you can tell by the path). When I compiled RC2 I think I had to include sys/termios.h as well in order to get some constant defined, but that seems to have been fixed now. / Daniel Fahlgren -- I live the way I type; fast, with a lot of mistakes Daniel Fahlgren http://www.acc.umu.se/~guru/ sysadm@{acc,cs,math}.umu.se 070-3406400 ordf@acc