Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 12 Jan 2012 09:54:19 -0000
From:      "Steven Hartland" <killing@multiplay.co.uk>
To:        "Andrea Venturoli" <ml@netfence.it>, <miwi@FreeBSD.org>, <ale@FreeBSD.org>, <freebsd-ports@FreeBSD.org>
Subject:   Re: Cannot install PEAR (again)
Message-ID:  <9B138D4932C541268379943E002A16DD@multiplay.co.uk>
References:  <4F0EA474.7000108@netfence.it>

next in thread | previous in thread | raw e-mail | index | archive | help
You most likely have php built without threaded support, which will cause
random crashes when used with extensions that are linked against threaded
libs.

Rebuilding php and all extensions with LINKTHR selected will likely fix your issue.

    Regards
    Steve
----- Original Message ----- 
From: "Andrea Venturoli" <ml@netfence.it>
To: <miwi@FreeBSD.org>; <ale@FreeBSD.org>; <freebsd-ports@FreeBSD.org>
Sent: Thursday, January 12, 2012 9:14 AM
Subject: Cannot install PEAR (again)


> Hello.
>
> I've had this problem in the past, but eventually always got out of it.
> I also see many other people reporting this, usually with some hint on how to work around it, but no real solution. I've tried 
> all the suggestion I found, but still it doesn't work and I would appreciate if I could sort this out once and for all.
>
> > #uname -a
>> FreeBSD xxxxx.xxxxxxxx.xx 7.3-RELEASE-p9 FreeBSD 7.3-RELEASE-p9 #3: Tue Jan  3 09:33:25 CET 2012 
>> root@xxxxx.xxxxxxxx.xx:/usr/obj/usr/src/sys/XXXXX  amd64
>> # pkg_info|grep php
>> php5-5.3.8          PHP Scripting Language
>> php5-ctype-5.3.8    The ctype shared extension for php
>> php5-dom-5.3.8      The dom shared extension for php
>> php5-filter-5.3.8   The filter shared extension for php
>> php5-gd-5.3.8       The gd shared extension for php
>> php5-gettext-5.3.8  The gettext shared extension for php
>> php5-hash-5.3.8     The hash shared extension for php
>> php5-iconv-5.3.8    The iconv shared extension for php
>> php5-imap-5.3.8     The imap shared extension for php
>> php5-json-5.3.8     The json shared extension for php
>> php5-mbstring-5.3.8 The mbstring shared extension for php
>> php5-mysql-5.3.8    The mysql shared extension for php
>> php5-openssl-5.3.8  The openssl shared extension for php
>> php5-pdo-5.3.8      The pdo shared extension for php
>> php5-pdo_pgsql-5.3.8 The pdo_pgsql shared extension for php
>> php5-session-5.3.8  The session shared extension for php
>> php5-simplexml-5.3.8 The simplexml shared extension for php
>> php5-xml-5.3.8      The xml shared extension for php
>> php5-zip-5.3.8      The zip shared extension for php
>> php5-zlib-5.3.8     The zlib shared extension for php
>> # cd /usr/ports/devel/pear/
>> # make install
>> ===>  License check disabled, port has not defined LICENSE
>> ===>  Extracting for pear-1.9.4_1
>> => SHA256 Checksum OK for pear-1.9.4.tar.bz2.
>> ===>  Patching for pear-1.9.4_1
>> ===>  Applying FreeBSD patches for pear-1.9.4_1
>> ===>  Configuring for pear-1.9.4_1
>> ===>  Installing for pear-1.9.4_1
>> ===>   pear-1.9.4_1 depends on file: /usr/local/include/php/main/php.h - found
>> ===>   pear-1.9.4_1 depends on file: /usr/local/lib/php/20090626-debug/xml.so - found
>> ===>   Generating temporary packing list
>> ===>  Checking if devel/pear already installed
>>
>> Bootstrapping Installer...................
>> Using previously install ... ok
>>
>> Extracting installer..................
>> PHP Deprecated:  Function set_magic_quotes_runtime() is deprecated in /usr/local/share/pear/PEAR/DependencyDB.php on line 554
>> PHP Deprecated:  Function set_magic_quotes_runtime() is deprecated in /usr/local/share/pear/PEAR/DependencyDB.php on line 558
>> Using previously installed installer ... ok
>>
>> Preparing installer..................
>> PHP Deprecated:  Assigning the return value of new by reference is deprecated in /usr/local/share/pear/PEAR/Command.php on line 
>> 137
>> PHP Deprecated:  Assigning the return value of new by reference is deprecated in /usr/local/share/pear/PEAR/Command.php on line 
>> 154
>> PHP Deprecated:  Assigning the return value of new by reference is deprecated in /usr/local/share/pear/PEAR/Frontend.php on 
>> line 91
>> PHP Deprecated:  Function set_magic_quotes_runtime() is deprecated in /usr/local/share/pear/PEAR/Config.php on line 1026
>> PHP Deprecated:  Function set_magic_quotes_runtime() is deprecated in /usr/local/share/pear/PEAR/Config.php on line 1033
>> PHP Deprecated:  Function set_magic_quotes_runtime() is deprecated in /usr/local/share/pear/PEAR/Registry.php on line 1179
>> PHP Deprecated:  Function set_magic_quotes_runtime() is deprecated in /usr/local/share/pear/PEAR/Registry.php on line 1183
>> PHP Deprecated:  Assigning the return value of new by reference is deprecated in /usr/local/share/pear/PEAR/ChannelFile.php on 
>> line 199
>> PHP Deprecated:  Assigning the return value of new by reference is deprecated in /usr/local/share/pear/PEAR/ChannelFile.php on 
>> line 1504
>> PHP Deprecated:  Assigning the return value of new by reference is deprecated in /usr/local/share/pear/PEAR/ChannelFile.php on 
>> line 1516
>> PHP Deprecated:  Assigning the return value of new by reference is deprecated in /usr/local/share/pear/PEAR/ChannelFile.php on 
>> line 1524
>> PHP Deprecated:  Assigning the return value of new by reference is deprecated in /usr/local/share/pear/PEAR/ChannelFile.php on 
>> line 1527
>> PHP Deprecated:  Assigning the return value of new by reference is deprecated in /usr/local/share/pear/PEAR/Common.php on line 
>> 492
>> PHP Deprecated:  Assigning the return value of new by reference is deprecated in /usr/local/share/pear/PEAR/Common.php on line 
>> 511
>> PHP Deprecated:  Assigning the return value of new by reference is deprecated in /usr/local/share/pear/PEAR/Common.php on line 
>> 530
>> PHP Deprecated:  Assigning the return value of new by reference is deprecated in /usr/local/share/pear/PEAR/Common.php on line 
>> 574
>> PHP Deprecated:  Assigning the return value of new by reference is deprecated in /usr/local/share/pear/PEAR/Common.php on line 
>> 607
>> PHP Deprecated:  Assigning the return value of new by reference is deprecated in /usr/local/share/pear/PEAR/Common.php on line 
>> 629
>> PHP Deprecated:  Function set_magic_quotes_runtime() is deprecated in /usr/local/share/pear/PEAR/Registry.php on line 1179
>> PHP Deprecated:  Function set_magic_quotes_runtime() is deprecated in /usr/local/share/pear/PEAR/Registry.php on line 1183
>> PHP Deprecated:  Function set_magic_quotes_runtime() is deprecated in /usr/local/share/pear/PEAR/Registry.php on line 1179
>> PHP Deprecated:  Function set_magic_quotes_runtime() is deprecated in /usr/local/share/pear/PEAR/Registry.php on line 1183
>> PHP Deprecated:  Function set_magic_quotes_runtime() is deprecated in /usr/local/share/pear/PEAR/Registry.php on line 1179
>> PHP Deprecated:  Function set_magic_quotes_runtime() is deprecated in /usr/local/share/pear/PEAR/Registry.php on line 1183
>> PHP Deprecated:  Function set_magic_quotes_runtime() is deprecated in /usr/local/share/pear/PEAR/Registry.php on line 1179
>> PHP Deprecated:  Function set_magic_quotes_runtime() is deprecated in /usr/local/share/pear/PEAR/Registry.php on line 1183
>> PHP Deprecated:  Function set_magic_quotes_runtime() is deprecated in /usr/local/share/pear/PEAR/Registry.php on line 1179
>> PHP Deprecated:  Function set_magic_quotes_runtime() is deprecated in /usr/local/share/pear/PEAR/Registry.php on line 1183
>> Updating channel "doc.php.net"
>> PHP Deprecated:  Assigning the return value of new by reference is deprecated in /usr/local/share/pear/PEAR/Downloader.php on 
>> line 243
>> PHP Deprecated:  Assigning the return value of new by reference is deprecated in /usr/local/share/pear/PEAR/Downloader.php on 
>> line 259
>> Channel "doc.php.net" is up to date
>> PHP Deprecated:  Function set_magic_quotes_runtime() is deprecated in /usr/local/share/pear/PEAR/Registry.php on line 1179
>> PHP Deprecated:  Function set_magic_quotes_runtime() is deprecated in /usr/local/share/pear/PEAR/Registry.php on line 1183
>> Updating channel "pear.horde.org"
>> Channel "pear.horde.org" is up to date
>> PHP Deprecated:  Function set_magic_quotes_runtime() is deprecated in /usr/local/share/pear/PEAR/Registry.php on line 1179
>> PHP Deprecated:  Function set_magic_quotes_runtime() is deprecated in /usr/local/share/pear/PEAR/Registry.php on line 1183
>> Updating channel "pear.php.net"
>> Channel "pear.php.net" is up to date
>> PHP Deprecated:  Function set_magic_quotes_runtime() is deprecated in /usr/local/share/pear/PEAR/Registry.php on line 1179
>> PHP Deprecated:  Function set_magic_quotes_runtime() is deprecated in /usr/local/share/pear/PEAR/Registry.php on line 1183
>> Updating channel "pecl.php.net"
>> Channel "pecl.php.net" is up to date
>>
>> Installing selected packages..................
>> PHP Deprecated:  Assigning the return value of new by reference is deprecated in /usr/local/share/pear/PEAR/Command/Install.php 
>> on line 331
>> PHP Deprecated:  Assigning the return value of new by reference is deprecated in /usr/local/share/pear/PEAR/Command/Install.php 
>> on line 343
>> PHP Deprecated:  Assigning the return value of new by reference is deprecated in /usr/local/share/pear/PEAR/Command/Install.php 
>> on line 1139
>> Package: PEAR-stable.............................. already installed ... ok
>> Package: Structures_Graph-stable.................. already installed ... ok
>> Package: Archive_Tar-stable....................... already installed ... ok
>> Package: Console_Getopt-stable.................... already installed ... ok
>> Segmentation fault (core dumped)
>> *** Error code 139
>>
>> Stop in /usr/ports/devel/pear.
>> # cd work/pear-1.9.4/
>> # gdb /usr/local/bin/php php.core
>> GNU gdb 6.1.1 [FreeBSD]
>> Copyright 2004 Free Software Foundation, Inc.
>> GDB is free software, covered by the GNU General Public License, and you are
>> welcome to change it and/or distribute copies of it under certain conditions.
>> Type "show copying" to see the conditions.
>> There is absolutely no warranty for GDB.  Type "show warranty" for details.
>> This GDB was configured as "amd64-marcel-freebsd"...
>> Core was generated by `php'.
>> Program terminated with signal 11, Segmentation fault.
>> Reading symbols from /lib/libcrypt.so.4...done.
>> Loaded symbols for /lib/libcrypt.so.4
>> Reading symbols from /usr/local/lib/libpcre.so.0...done.
>> Loaded symbols for /usr/local/lib/libpcre.so.0
>> Reading symbols from /lib/libm.so.5...done.
>> Loaded symbols for /lib/libm.so.5
>> Reading symbols from /usr/local/lib/libxml2.so.5...done.
>> Loaded symbols for /usr/local/lib/libxml2.so.5
>> Reading symbols from /lib/libz.so.4...done.
>> Loaded symbols for /lib/libz.so.4
>> Reading symbols from /usr/local/lib/libiconv.so.3...done.
>> Loaded symbols for /usr/local/lib/libiconv.so.3
>> Reading symbols from /lib/libc.so.7...done.
>> Loaded symbols for /lib/libc.so.7
>> Reading symbols from /usr/lib/libssl.so.5...done.
>> Loaded symbols for /usr/lib/libssl.so.5
>> Reading symbols from /lib/libcrypto.so.5...done.
>> Loaded symbols for /lib/libcrypto.so.5
>> Reading symbols from /usr/local/lib/nss_ldap.so.1...done.
>> Loaded symbols for /usr/local/lib/nss_ldap.so.1
>> Reading symbols from /usr/local/lib/libldap-2.3.so.2...done.
>> Loaded symbols for /usr/local/lib/libldap-2.3.so.2
>> Reading symbols from /usr/local/lib/liblber-2.3.so.2...done.
>> Loaded symbols for /usr/local/lib/liblber-2.3.so.2
>> Reading symbols from /usr/local/lib/libsasl2.so.2...done.
>> Loaded symbols for /usr/local/lib/libsasl2.so.2
>> Reading symbols from /usr/lib/libcom_err.so.4...done.
>> Loaded symbols for /usr/lib/libcom_err.so.4
>> Reading symbols from /libexec/ld-elf.so.1...done.
>> Loaded symbols for /libexec/ld-elf.so.1
>> #0  0x0000000802acc870 in ?? ()
>> (gdb) bt
>> #0  0x0000000802acc870 in ?? ()
>> #1  0x0000000800e12a05 in xmlFreeRMutex () from /usr/local/lib/libxml2.so.5
>> #2  0x0000000800e618ba in xmlDictCleanup () from /usr/local/lib/libxml2.so.5
>> #3  0x0000000800daae6f in xmlCleanupParser () from /usr/local/lib/libxml2.so.5
>> #4  0x000000000046d0e8 in php_libxml_shutdown () at /usr/ports/lang/php5/work/php-5.3.8/ext/libxml/libxml.c:581
>> #5  0x000000000046d603 in zm_shutdown_libxml (type=1, module_number=3) at 
>> /usr/ports/lang/php5/work/php-5.3.8/ext/libxml/libxml.c:653
>> #6  0x00000000006348c5 in module_destructor (module=0x801569270) at /usr/ports/lang/php5/work/php-5.3.8/Zend/zend_API.c:2116
>> #7  0x000000000063ca7d in zend_hash_apply_deleter (ht=0x9375a0, p=0x801575c90) at 
>> /usr/ports/lang/php5/work/php-5.3.8/Zend/zend_hash.c:814
>> #8  0x000000000063cbfc in zend_hash_graceful_reverse_destroy (ht=0x9375a0) at 
>> /usr/ports/lang/php5/work/php-5.3.8/Zend/zend_hash.c:850
>> #9  0x0000000000629953 in zend_shutdown () at /usr/ports/lang/php5/work/php-5.3.8/Zend/zend.c:831
>> #10 0x00000000005a7e6d in php_module_shutdown () at /usr/ports/lang/php5/work/php-5.3.8/main/main.c:2177
>> #11 0x000000000072654b in main (argc=3, argv=0x7fffffffe628) at /usr/ports/lang/php5/work/php-5.3.8/sapi/cli/php_cli.c:1381
>> (gdb)
>
> I've tried recompiling everything, recompiling PHP (and all extensions) with debug info; with 5.2 it helped disabling some 
> extensions, but 5.3 seems to be different.
> php.ini is almost identical to php.ini-production.
>
> Anything I could try?
>
>  bye & Thanks
> av.
> _______________________________________________
> freebsd-ports@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-ports
> To unsubscribe, send any mail to "freebsd-ports-unsubscribe@freebsd.org"
> 


================================================
This e.mail is private and confidential between Multiplay (UK) Ltd. and the person or entity to whom it is addressed. In the event of misdirection, the recipient is prohibited from using, copying, printing or otherwise disseminating it or any information contained in it. 

In the event of misdirection, illegible or incomplete transmission please telephone +44 845 868 1337
or return the E.mail to postmaster@multiplay.co.uk.




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?9B138D4932C541268379943E002A16DD>