Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:9704 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 10336 invoked by uid 1010); 7 May 2004 13:00:30 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 10311 invoked from network); 7 May 2004 13:00:30 -0000 Received: from unknown (HELO mx.thebrainroom.net) (65.200.24.98) by pb1.pair.com with SMTP; 7 May 2004 13:00:30 -0000 Received: by mx.thebrainroom.net (Postfix, from userid 517) id D403614880BC; Fri, 7 May 2004 06:00:28 -0700 (PDT) Received: from tron (obsidian.thebrainroom.net [82.133.1.142]) (using TLSv1 with cipher RC4-MD5 (128/128 bits)) (No client certificate requested) by mx.thebrainroom.net (Postfix) with ESMTP id 57EAC148809B; Fri, 7 May 2004 06:00:26 -0700 (PDT) To: "'Daniel Fahlgren'" , Date: Fri, 7 May 2004 14:00:31 +0100 Organization: The Brain Room Ltd. MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook, Build 11.0.5510 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409 Thread-Index: AcQ0K40trYft04m4TsaJvezFVVwaTwAB0sqw In-Reply-To: <20040507115824.GT9782@shaka.acc.umu.se> Message-ID: <20040507130026.57EAC148809B@mx.thebrainroom.net> X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on jc.thebrainroom.net X-Spam-Status: No, hits=3.3 required=5.0 tests=MSGID_FROM_MTA_SHORT autolearn=no version=2.63 X-Spam-Level: *** X-TBR-Filter: Virus scanned and defanged Subject: RE: [PHP-DEV] compile issues on Solaris From: wez@thebrainroom.com ("Wez Furlong") References: <20040507115824.GT9782@shaka.acc.umu.se> This is a known issue (search bugs.php.net). Unfortunately, the workaround you (and the others) suggest will cause a similar problem on Linux systems :-/ We need to find a way to set those _XOPEN_SOURCE style defines up so that the build succeeds on your system. However, I don't have access to any Solaris boxen so I can't get stuck in to fix it. --Wez. > -----Original Message----- > From: Daniel Fahlgren [mailto:guru@acc.umu.se] > Sent: 07 May 2004 12:58 > To: internals@lists.php.net > Subject: [PHP-DEV] compile issues on Solaris > > 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:24 > 4, from > /Home/staff/fahlgren/php-test/php5-200405071030/main/php.h:34, from > /Home/staff/fahlgren/php-test/php5-200405071030/ext/standard/p > roc_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 > > -- > PHP Internals - PHP Runtime Development Mailing List To > unsubscribe, visit: http://www.php.net/unsub.php > >