From owner-freebsd-questions@FreeBSD.ORG Tue Jan 15 23:37:37 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B14F316A420 for ; Tue, 15 Jan 2008 23:37:37 +0000 (UTC) (envelope-from nick.rout@gmail.com) Received: from wa-out-1112.google.com (wa-out-1112.google.com [209.85.146.178]) by mx1.freebsd.org (Postfix) with ESMTP id 859B913C455 for ; Tue, 15 Jan 2008 23:37:37 +0000 (UTC) (envelope-from nick.rout@gmail.com) Received: by wa-out-1112.google.com with SMTP id k17so64465waf.3 for ; Tue, 15 Jan 2008 15:37:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; bh=wCy9MgtKVZEUedvvfBxzI8YEF6LDEQEFKc97HFnZB2g=; b=uw+qicMnDj8yakOK8gHN14/TVtY6+YvtmSJfRegbRi6deFRluRvrSzE3SBrTS/uagBLiPfM2IsrZ9X4wzndvNbAem7/n0AZZrvzjZ4ShNPWSyss0e64+dSyhP95GEy7+Zf+lEoh+ptuE3FBaC9fMIDvZMGb7itwlFouyKLYkFps= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=q0e9ffifvxwXUXpyz1ilGK3DpM72efEmnTWOgR4yEQXSR1a7q4MMRvUegqf5MKn1oWPIRCkt8BV1VGtIhJy+UJYXXQQmb5HE0hZuP8IEfyxsI17FeSt7iKvXUo3f7Fgc4GpRscIkBmf0PpVGpe0tfnXX0NI6/Kfh0MpPCSaw4XM= Received: by 10.114.137.2 with SMTP id k2mr48628wad.104.1200438538844; Tue, 15 Jan 2008 15:08:58 -0800 (PST) Received: by 10.115.90.20 with HTTP; Tue, 15 Jan 2008 15:08:58 -0800 (PST) Message-ID: <52bd4a780801151508t723fe51dw2554bfa8c504a42d@mail.gmail.com> Date: Wed, 16 Jan 2008 12:08:58 +1300 From: "Nick Rout" To: freebsd-questions@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Subject: Trouble compiling php5-xml X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 Jan 2008 23:37:37 -0000 I am trying to compile php5-xml (as a dependency to rtgui). I get this error: cc -I. -I/usr/ports/textproc/php5-xml/work/php-5.2.5/ext/xml -DPHP_ATOM_INC -I/usr/ports/textproc/php5-xml/work/php-5.2.5/ext/xml/include -I/usr/ports/textproc/php5-xml/work/php-5.2.5/ext/xml/main -I/usr/ports/textproc/php5-xml/work/php-5.2.5/ext/xml -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/libxml2 -I/usr/local/include -DHAVE_CONFIG_H -O2 -fno-strict-aliasing -pipe -c /usr/ports/textproc/php5-xml/work/php-5.2.5/ext/xml/xml.c -fPIC -DPIC -o .libs/xml.o /usr/ports/textproc/php5-xml/work/php-5.2.5/ext/xml/xml.c:74: warning: parameter names (without types) in function declaration /usr/ports/textproc/php5-xml/work/php-5.2.5/ext/xml/xml.c:160: error: `xml' undeclared here (not in a function) /usr/ports/textproc/php5-xml/work/php-5.2.5/ext/xml/xml.c:160: error: initializer element is not constant /usr/ports/textproc/php5-xml/work/php-5.2.5/ext/xml/xml.c:160: error: (near initialization for `xml_module_entry.post_deactivate_func') /usr/ports/textproc/php5-xml/work/php-5.2.5/ext/xml/xml.c:161: error: initializer element is not constant /usr/ports/textproc/php5-xml/work/php-5.2.5/ext/xml/xml.c:161: error: (near initialization for `xml_module_entry.globals_id') /usr/ports/textproc/php5-xml/work/php-5.2.5/ext/xml/xml.c:162: warning: initialization makes integer from pointer without a cast /usr/ports/textproc/php5-xml/work/php-5.2.5/ext/xml/xml.c:163: warning: initialization makes integer from pointer without a cast /usr/ports/textproc/php5-xml/work/php-5.2.5/ext/xml/xml.c:164: warning: excess elements in struct initializer /usr/ports/textproc/php5-xml/work/php-5.2.5/ext/xml/xml.c:164: warning: (near initialization for `xml_module_entry') /usr/ports/textproc/php5-xml/work/php-5.2.5/ext/xml/xml.c:164: warning: excess elements in struct initializer /usr/ports/textproc/php5-xml/work/php-5.2.5/ext/xml/xml.c:164: warning: (near initialization for `xml_module_entry') /usr/ports/textproc/php5-xml/work/php-5.2.5/ext/xml/xml.c:165: warning: excess elements in struct initializer /usr/ports/textproc/php5-xml/work/php-5.2.5/ext/xml/xml.c:165: warning: (near initialization for `xml_module_entry') /usr/ports/textproc/php5-xml/work/php-5.2.5/ext/xml/xml.c: In function `PHP_GINIT_FUNCTION': /usr/ports/textproc/php5-xml/work/php-5.2.5/ext/xml/xml.c:187: error: invalid type argument of `->' *** Error code 1 Stop in /usr/ports/textproc/php5-xml/work/php-5.2.5/ext/xml. *** Error code 1 Stop in /usr/ports/textproc/php5-xml. *** Error code 1 Stop in /usr/ports/net/php5-xmlrpc. *** Error code 1 Stop in /usr/ports/net-p2p/rtgui. *** Error code 1 Stop in /usr/ports/net-p2p/rtgui. Can anyone help me in sorting this out? Cheers (new to the list by the way :-) ) Nick.