pear v1.8.1 build issues with php v4.4.9

Greg Larkin glarkin at FreeBSD.org
Fri May 8 03:11:44 UTC 2009


-----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-----


More information about the freebsd-ports mailing list