From owner-freebsd-ports@FreeBSD.ORG Fri May 8 03:11:44 2009 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 29F15106566B; Fri, 8 May 2009 03:11:44 +0000 (UTC) (envelope-from glarkin@FreeBSD.org) Received: from mail1.sourcehosting.net (113901-app1.sourcehosting.net [72.32.213.11]) by mx1.freebsd.org (Postfix) with ESMTP id 0342F8FC18; Fri, 8 May 2009 03:11:44 +0000 (UTC) (envelope-from glarkin@FreeBSD.org) Received: from mail1.sourcehosting.net ([74.205.51.45] helo=gregory-larkins-macbook-pro.local) by mail1.sourcehosting.net with esmtp (Exim 4.69 (FreeBSD)) (envelope-from ) id 1M2GUr-0006zw-ND; Thu, 07 May 2009 23:11:43 -0400 Message-ID: <4A03A2E9.9050201@FreeBSD.org> Date: Thu, 07 May 2009 23:11:37 -0400 From: Greg Larkin Organization: The FreeBSD Project User-Agent: Thunderbird 2.0.0.21 (Macintosh/20090302) MIME-Version: 1.0 To: Mark Powell References: <20090507142313.Q11492@rust.salford.ac.uk> In-Reply-To: <20090507142313.Q11492@rust.salford.ac.uk> X-Enigmail-Version: 0.95.7 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Spam-Score: -4.9 (----) Cc: freebsd-ports@freebsd.org, ale@FreeBSD.org, miwi@freebsd.org Subject: Re: pear v1.8.1 build issues with php v4.4.9 X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: glarkin@FreeBSD.org List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 08 May 2009 03:11:44 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Mark Powell wrote: > Hi, > I've narrowed down a problem when building pear v1.8.1 with php v4.4.9. > There is an XML parse error when the port tries to install Structure_Graph. > NB pear v1.7.2 builds ok with php v4.4.9. It's the update to pear > v1.8.1 that breaks it. Also, with php v5 pear v1.8.1 builds ok. > So it just seems to be the combination of pear v1.8.x and php v4. > Here's the relevant part of the build: > > ----- > Installing selected packages.................. > Installing bootstrap package: PEAR...................warning: pear/PEAR > requires package "pear/Archive_Tar" (recommended version 1.3.3) > warning: pear/PEAR requires package "pear/Structures_Graph" (recommended > version 1.0.2) > warning: pear/PEAR requires package "pear/Console_Getopt" (recommended > version 1.2.3) > install ok: channel://pear.php.net/PEAR-1.8.1 > PEAR: Optional feature webinstaller available (PEAR's web-based installer) > PEAR: Optional feature gtkinstaller available (PEAR's PHP-GTK-based > installer) > PEAR: Optional feature gtk2installer available (PEAR's PHP-GTK2-based > installer) > PEAR: To install optional features use "pear install pear/PEAR#featurename" > Installing bootstrap package: Structures_Graph.......downloading > Structures_Graph-1.0.2.tgz ... > Starting to download Structures_Graph-1.0.2.tgz (30,947 bytes) > .........done: 30,947 bytes > XML Error: 'not well-formed (invalid token)' on line '10' > Download of "pear/Structures_Graph" succeeded, but it is not a valid > package archive > Error: cannot download "pear/Structures_Graph" > Download failed > Installing local package: Archive_Tar-stable.........install ok: > channel://pear.php.net/Archive_Tar-1.3.3 > Installing local package: Console_Getopt-stable.......install ok: > channel://pear.php.net/Console_Getopt-1.2.3 > ===> Registering installation for pear-1.8.1 > ----- > > Even though the install of Structures_Graph fails, the port installation > succeeds. > Manually attempting the install of Structures_Graph unsurprisingly > gives the same error: > > ----- > # pear -V > PEAR Version: 1.8.1 > PHP Version: 4.4.9 > Zend Engine Version: 1.3.0 > Running on: FreeBSD webmail0 7.1-RELEASE-p5 FreeBSD 7.1-RELEASE-p5 #0: > Tue Apr 28 17:55:20 UTC 2009 xxx amd64 > # pear install Structures_Graph > downloading Structures_Graph-1.0.2.tgz ... > Starting to download Structures_Graph-1.0.2.tgz (30,947 bytes) > .........done: 30,947 bytes > XML Error: 'not well-formed (invalid token)' on line '10' > Download of "pear/Structures_Graph" succeeded, but it is not a valid > package archive > Error: cannot download "pear/Structures_Graph" > Download failed > install failed > ----- > > I see they changed to packages.xml v2.0 with pear v1.8.1. However, it's > supposed to also woth with php v4.4.0 of newer. > Is this a pear problem, rather than ports? > Many thanks for your time. > Hi Mark, I looked into this problem for a little today, and I think I know the reason for the failure, but I haven't found a solution yet. The package2.xml file contained in the Structures_Graph .tar distro has some non-ASCII characters on line 10. I removed those characters and re-rerolled the .tar file. I then tried to install the local copy of the .tar file instead of pulling it from php.net. Presumably, that fixed the error that you reported, but it failed in another way: - ---cut---cut---cut---cut---cut---cut--- # pear install /tmp/go-pear/download/Structures_Graph-1.0.2.tar Warning: sortpackagesforinstall(Structures/Graph.php): failed to open stream: No such file or directory in PEAR/Downloader.php on line 1217 Warning: sortpackagesforinstall(Structures/Graph.php): failed to open stream: No such file or directory in /usr/local/share/pear/PEAR/Downloader.php on line 1217 Fatal error: sortpackagesforinstall(): Failed opening required 'Structures/Graph.php' (include_path='/usr/local/share/pear') in /usr/local/share/pear/PEAR/Downloader.php on line 1217 - ---cut---cut---cut---cut---cut---cut--- I haven't had time to chase that down, but perhaps it gives you some idea on how to continue troubleshooting? Regards, Greg - -- Greg Larkin http://www.FreeBSD.org/ http://twitter.com/sourcehosting -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.10 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkoDoukACgkQ0sRouByUApC+RgCgmf+x51qe6Mj0kmedE8AHaMhX SigAmQEKfvDtfo0Ev9ZYzpxb0+YsTtpJ =VecN -----END PGP SIGNATURE-----