Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 16 Aug 2011 20:07:03 +0300
From:      Jeff Tipton <jeff.t@mail.com>
To:        freebsd-questions@freebsd.org
Subject:   Re: devel/pear doesn't install (segfault)
Message-ID:  <4E4AA3B7.9070704@mail.com>
In-Reply-To: <4E4A8BB1.2030908@mail.com>
References:  <4E4A6C4C.302@mail.com> <4E4A8BB1.2030908@mail.com>

Next in thread | Previous in thread | Raw E-Mail | Index | Archive | Help
On 08/16/11 18:24, Jeff Tipton wrote:
> On 08/16/11 16:10, Jeff Tipton wrote:
>> devel/pear doesn't install (segfault)
>>
>> Hi all,
>>
>> When I try to install pear from ports on my server, it spits out a 
>> whole bunch of messages like:
>>
>> Preparing installer..................
>> PHP Deprecated:  Assigning the return value of new by reference is 
>> deprecated in /go-pear/PEAR/Config.php on line 650
>> (...)
>> PHP Deprecated:  Assigning the return value of new by reference is 
>> deprecated in /go-pear/PEAR/Registry.php on line 322
>> (...)
>> PHP Deprecated:  Assigning the return value of new by reference is 
>> deprecated in /go-pear/PEAR/Command.php on line 137
>> (...)
>> PHP Warning:  date(): It is not safe to rely on the system's timezone 
>> settings. You are *required* to use the date.timezone setting or the 
>> date_default_timezone_set() function. In case you used any of those 
>> methods and you are still getting this warning, you most likely 
>> misspelled the timezone identifier. We selected 'UTC' for 'UTC/0.0/no 
>> DST' instead in /go-pear/PEAR/Registry.php on line 1012
>> (...)
>>
>> And then ends up like this:
>>
>> PHP Deprecated:  Function set_magic_quotes_runtime() is deprecated in 
>> /go-pear/PEAR/DependencyDB.php on line 583
>> install ok: channel://pear.php.net/Console_Getopt-1.2.3
>> PHP Deprecated:  Function set_magic_quotes_runtime() is deprecated in 
>> /go-pear/PEAR/Registry.php on line 1140
>> PHP Deprecated:  Function set_magic_quotes_runtime() is deprecated in 
>> /go-pear/PEAR/Registry.php on line 1144
>> Segmentation fault (core dumped)
>> *** Error code 139
>>
>> Stop in /basejail/usr/ports/devel/pear.
>> *** Error code 1
>>
>> Stop in /basejail/usr/ports/devel/pear.
>> ** Command failed [exit code 1]: /usr/bin/script -qa 
>> /tmp/portinstall20110816-14452-1w1lpn0-0 env make reinstall
>> ** Fix the installation problem and try again.
>> ** Listing the failed packages (-:ignored / *:skipped / !:failed)
>>     ! devel/pear    (install error)
>>
>> First, beause the messages start with "PHP Deprecated", I thought 
>> it's about my php being outdated. Some extensions really were, so I 
>> upgraded them, but nothing changed.
>>
>> I found, on FreeBSD Forums, a thread about "PHP Deprecated" messages, 
>> and there the issue was to set open_basedir properly in php.ini. But 
>> mine was not set (commented out) -- so, default value (/tmp) which, 
>> as they say, doesn't cause problems.
>>
>> Then I tried to install pear on my FreeBSD 8.2 desktop, it again 
>> printed all the "PHP Deprecated" messages, but it installed and I 
>> even could do "pear upgrade PEAR".
>>
>> Then I tried to install pear from 7-stable packages on my server, 
>> pear installed but when I tried to upgrade PEAR:
>>
>> #pear upgrade PEAR
>> Error getting channel info from pear.php.net: No cached content 
>> available for "http://pear.php.net/rest/p/packages.xml"
>> Nothing to upgrade
>> Segmentation fault (core dumped)
>> #
>> The server is an ezjail on 7.4-RELEASE.
>>
>> Any ideas of how to get pear installed? Thanks.
>> _______________________________________________
>> freebsd-questions@freebsd.org mailing list
>> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
>> To unsubscribe, send any mail to 
>> "freebsd-questions-unsubscribe@freebsd.org"
> I just tried to recompile php5 with DEBUG enabled as someone told this 
> helped him here:
> http://lists.freebsd.org/pipermail/freebsd-ports/2006-July/033794.html
>
> Strange it seemed to him, but it also helped me. When I reinstalled 
> pear after this, it rebuilt textproc/php5-xml and asked me to 
> deinstall/reinstall that port first which it didn't do before. Now 
> pear seems to work (installed, upgraded via its channel). Hope it 
> won't trouble me anymore, don't know whether there is any issue with 
> pear's port.
> _______________________________________________
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to 
> "freebsd-questions-unsubscribe@freebsd.org"
No, it doesn't go much further... When i try "pear install 
horde/horde_role", it can't verify the downloaded package and complains 
that php must have been compiled with "--disable-tokenizer". But 
tokenizer is a separete package, and is installed on my system, and 
isn't mentioned in UPDATING as others that are no longer supplied as 
extension but as compiled in the core.

Tried to rebuild php without debug, and then "pear install 
horde/horde_role" complains that there is no XML extension, but it's 
there -- as a registered package, and in the 
/usr/local/etc/php/extensions.ini

# ls /var/db/pkg | grep xml
libxml2-2.7.8_1
php5-simplexml-5.3.6_1
php5-xml-5.3.6_1
php5-xmlreader-5.3.6_1
php5-xmlwriter-5.3.6_1
#

# cat /usr/local/etc/php/extensions.ini
extension=intl.so
extension=ldap.so
extension=pspell.so
extension=sqlite3.so
extension=tidy.so
extension=imagick.so
extension=calendar.so
extension=bz2.so
extension=sockets.so
extension=json.so
extension=mysqli.so
extension=hash.so
extension=filter.so
extension=mysql.so
extension=zlib.so
extension=gd.so
extension=dom.so
extension=xmlreader.so
extension=xmlwriter.so
extension=simplexml.so
extension=gettext.so
extension=pdo.so
extension=zip.so
extension=imap.so
extension=openssl.so
extension=posix.so
extension=pdo_sqlite.so
extension=ctype.so
extension=curl.so
extension=odbc.so
extension=fileinfo.so
extension=session.so
extension=mbstring.so
extension=tokenizer.so
extension=pdo_mysql.so
extension=iconv.so
extension=snmp.so
extension=xml.so
#



Want to link to this message? Use this URL: <http://docs.FreeBSD.org/cgi/mid.cgi?4E4AA3B7.9070704>