Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 98901 - snmp related access violoations when installing dev-php/PEAR-PEAR-1.3.5-r1
Summary: snmp related access violoations when installing dev-php/PEAR-PEAR-1.3.5-r1
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High major
Assignee: PHP Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-07-13 10:13 UTC by Ed Davison
Modified: 2005-07-14 07:47 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ed Davison 2005-07-13 10:13:10 UTC
I have just tried to install PEAR-PEAR-1.3.5-r1 and I get access violation
errors relating to net-snmp.

Reproducible: Always
Steps to Reproduce:
1. Add =dev-php/PEAR-PEAR-1.3.5-r1 to /etc/portage/package.unmask
2. add =dev-php/PEAR-PEAR-1.3.5-r1 ~x86 to /etc/portage/package.keywords
3. emerge PEAR-PEAR

Actual Results:  
Errors:

emerge PEAR-PEAR -a

These are the packages that I would merge, in order:

Calculating dependencies ...done!
[ebuild  N    ] dev-php/PEAR-PEAR-1.3.5-r1  
[ebuild  N    ] dev-php/PEAR-Archive_Tar-1.3.1  
[ebuild  N    ] dev-php/PEAR-Console_Getopt-1.2  
[ebuild  N    ] dev-php/PEAR-XML_RPC-1.3.1  

Do you want me to merge these packages? [Yes/No] 
>>> emerge (1 of 4) dev-php/PEAR-PEAR-1.3.5-r1 to /
>>> md5 files   ;-) PEAR-PEAR-1.3.5-r1.ebuild
>>> md5 files   ;-) PEAR-PEAR-1.3.5.ebuild
>>> md5 files   ;-) files/digest-PEAR-PEAR-1.3.5
>>> md5 files   ;-) files/digest-PEAR-PEAR-1.3.5-r1
>>> md5 src_uri ;-) Archive_Tar-1.2.tgz
>>> md5 src_uri ;-) Console_Getopt-1.2.tgz
>>> md5 src_uri ;-) XML_RPC-1.3.1.tgz
>>> md5 src_uri ;-) PEAR-1.3.5.tgz
>>> Unpacking source...
>>> Unpacking Archive_Tar-1.2.tgz to /var/tmp/portage/PEAR-PEAR-1.3.5-r1/work
tar: A lone zero block at 163
>>> Unpacking Console_Getopt-1.2.tgz to /var/tmp/portage/PEAR-PEAR-1.3.5-r1/work
tar: A lone zero block at 27
>>> Unpacking XML_RPC-1.3.1.tgz to /var/tmp/portage/PEAR-PEAR-1.3.5-r1/work
tar: A lone zero block at 236
>>> Unpacking PEAR-1.3.5.tgz to /var/tmp/portage/PEAR-PEAR-1.3.5-r1/work
tar: A lone zero block at 1088
>>> Source unpacked.
>>> Test phase [not enabled]: dev-php/PEAR-PEAR-1.3.5-r1

>>> Install PEAR-PEAR-1.3.5-r1 into /var/tmp/portage/PEAR-PEAR-1.3.5-r1/image/
category dev-php
>>> dobin: making pear executable...
ACCESS DENIED   rename:    /var/lib/net-snmp/snmpapp.conf
No log handling enabled - turning on stderr logging
Cannot rename /var/lib/net-snmp/snmpapp.conf to /var/lib/net-snmp/snmpapp.0.conf
ACCESS DENIED   unlink:    /var/lib/net-snmp/snmpapp.conf
Cannot unlink /var/lib/net-snmp/snmpapp.conf
ACCESS DENIED   open_wr:   /var/lib/net-snmp/snmpapp.conf
read_config_store open failure on /var/lib/net-snmp/snmpapp.conf
ACCESS DENIED   open_wr:   /var/lib/net-snmp/snmpapp.conf
read_config_store open failure on /var/lib/net-snmp/snmpapp.conf
ACCESS DENIED   open_wr:   /var/lib/net-snmp/snmpapp.conf
read_config_store open failure on /var/lib/net-snmp/snmpapp.conf
ACCESS DENIED   rename:    /var/lib/net-snmp/snmpapp.conf
No log handling enabled - turning on stderr logging
Cannot rename /var/lib/net-snmp/snmpapp.conf to /var/lib/net-snmp/snmpapp.0.conf
ACCESS DENIED   unlink:    /var/lib/net-snmp/snmpapp.conf
Cannot unlink /var/lib/net-snmp/snmpapp.conf
ACCESS DENIED   open_wr:   /var/lib/net-snmp/snmpapp.conf
read_config_store open failure on /var/lib/net-snmp/snmpapp.conf
ACCESS DENIED   open_wr:   /var/lib/net-snmp/snmpapp.conf
read_config_store open failure on /var/lib/net-snmp/snmpapp.conf
ACCESS DENIED   open_wr:   /var/lib/net-snmp/snmpapp.conf
read_config_store open failure on /var/lib/net-snmp/snmpapp.conf
ACCESS DENIED   rename:    /var/lib/net-snmp/snmpapp.conf
No log handling enabled - turning on stderr logging
Cannot rename /var/lib/net-snmp/snmpapp.conf to /var/lib/net-snmp/snmpapp.0.conf
ACCESS DENIED   unlink:    /var/lib/net-snmp/snmpapp.conf
Cannot unlink /var/lib/net-snmp/snmpapp.conf
ACCESS DENIED   open_wr:   /var/lib/net-snmp/snmpapp.conf
read_config_store open failure on /var/lib/net-snmp/snmpapp.conf
ACCESS DENIED   open_wr:   /var/lib/net-snmp/snmpapp.conf
read_config_store open failure on /var/lib/net-snmp/snmpapp.conf
ACCESS DENIED   open_wr:   /var/lib/net-snmp/snmpapp.conf
read_config_store open failure on /var/lib/net-snmp/snmpapp.conf
ACCESS DENIED   rename:    /var/lib/net-snmp/snmpapp.conf
No log handling enabled - turning on stderr logging
Cannot rename /var/lib/net-snmp/snmpapp.conf to /var/lib/net-snmp/snmpapp.0.conf
ACCESS DENIED   unlink:    /var/lib/net-snmp/snmpapp.conf
Cannot unlink /var/lib/net-snmp/snmpapp.conf
ACCESS DENIED   open_wr:   /var/lib/net-snmp/snmpapp.conf
read_config_store open failure on /var/lib/net-snmp/snmpapp.conf
ACCESS DENIED   open_wr:   /var/lib/net-snmp/snmpapp.conf
read_config_store open failure on /var/lib/net-snmp/snmpapp.conf
ACCESS DENIED   open_wr:   /var/lib/net-snmp/snmpapp.conf
read_config_store open failure on /var/lib/net-snmp/snmpapp.conf
install ok: PEAR 1.3.5
ACCESS DENIED   rename:    /var/lib/net-snmp/snmpapp.conf
No log handling enabled - turning on stderr logging
Cannot rename /var/lib/net-snmp/snmpapp.conf to /var/lib/net-snmp/snmpapp.0.conf
ACCESS DENIED   unlink:    /var/lib/net-snmp/snmpapp.conf
Cannot unlink /var/lib/net-snmp/snmpapp.conf
ACCESS DENIED   open_wr:   /var/lib/net-snmp/snmpapp.conf
read_config_store open failure on /var/lib/net-snmp/snmpapp.conf
ACCESS DENIED   open_wr:   /var/lib/net-snmp/snmpapp.conf
read_config_store open failure on /var/lib/net-snmp/snmpapp.conf
ACCESS DENIED   open_wr:   /var/lib/net-snmp/snmpapp.conf
read_config_store open failure on /var/lib/net-snmp/snmpapp.conf
man:
>>> Completed installing PEAR-PEAR-1.3.5-r1 into
/var/tmp/portage/PEAR-PEAR-1.3.5-r1/image/

--------------------------- ACCESS VIOLATION SUMMARY ---------------------------
LOG FILE = "/tmp/sandbox-dev-php_-_PEAR-PEAR-1.3.5-r1-19496.log"

rename:    /var/lib/net-snmp/snmpapp.conf
unlink:    /var/lib/net-snmp/snmpapp.conf
open_wr:   /var/lib/net-snmp/snmpapp.conf
open_wr:   /var/lib/net-snmp/snmpapp.conf
open_wr:   /var/lib/net-snmp/snmpapp.conf
rename:    /var/lib/net-snmp/snmpapp.conf
unlink:    /var/lib/net-snmp/snmpapp.conf
open_wr:   /var/lib/net-snmp/snmpapp.conf
open_wr:   /var/lib/net-snmp/snmpapp.conf
open_wr:   /var/lib/net-snmp/snmpapp.conf
rename:    /var/lib/net-snmp/snmpapp.conf
unlink:    /var/lib/net-snmp/snmpapp.conf
open_wr:   /var/lib/net-snmp/snmpapp.conf
open_wr:   /var/lib/net-snmp/snmpapp.conf
open_wr:   /var/lib/net-snmp/snmpapp.conf
rename:    /var/lib/net-snmp/snmpapp.conf
unlink:    /var/lib/net-snmp/snmpapp.conf
open_wr:   /var/lib/net-snmp/snmpapp.conf
open_wr:   /var/lib/net-snmp/snmpapp.conf
open_wr:   /var/lib/net-snmp/snmpapp.conf
rename:    /var/lib/net-snmp/snmpapp.conf
unlink:    /var/lib/net-snmp/snmpapp.conf
open_wr:   /var/lib/net-snmp/snmpapp.conf
open_wr:   /var/lib/net-snmp/snmpapp.conf
open_wr:   /var/lib/net-snmp/snmpapp.conf
--------------------------------------------------------------------------------


Expected Results:  
install

emerge info
Portage 2.0.51.22-r1 (default-linux/x86/2005.0/2.4, gcc-3.3.5-20050130,
glibc-2.3.4.20041102-r1, 2.4.25_pre7-gss-r3 i686)
=================================================================
System uname: 2.4.25_pre7-gss-r3 i686 Intel(R) XEON(TM) CPU 1.80GHz
Gentoo Base System version 1.6.12
distcc 2.11.1 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled]
dev-lang/python:     2.2.3-r6, 2.3.5
sys-apps/sandbox:    1.2.10
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.5
sys-devel/binutils:  2.15.92.0.2-r10
sys-devel/libtool:   1.5.18-r1
virtual/os-headers:  2.4.19, 2.4.22-r1
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O3 -mcpu=i686 -funroll-loops -pipe -g"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config
/usr/kde/3.1/share/config /usr/kde/3.2/share/config /usr/kde/3/share/config
/usr/lib/mozilla/defaults/pref /usr/share/config
/usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/
/usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/
/usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O3 -mcpu=i686 -funroll-loops -pipe -g"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distcc distlocks nostrip sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org
http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 X alsa apache2 apm arts avi berkdb bitmap-fonts bonobo cdr crypt cups
curl eds emboss encode esd evo fam flac foomaticdb fortran gd gdbm gif gnome
gphoto2 gpm gstreamer gtk gtk2 gtkhtml guile imagemagick imlib innodb java jpeg
junit kerberos krb4 ldap libg++ libwww mad mikmod motif mozilla mp3 mpeg mysql
ncurses nls odbc ogg oggvorbis opengl oss pam pda pdflib perl png postgres
python qt quicktime radeon readline ruby samba sasl scanner sdl slang snmp spell
ssl svga tcltk tcpd tetex tiff truetype truetype-fonts type1-fonts vorbis xine
xml xml2 xmms xv zlib video_cards_radeon userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2005-07-13 10:24:59 UTC
Are you really sure that you don't have any eclasses in your portage overlay?
Comment 2 Ed Davison 2005-07-13 10:48:34 UTC
I would say it is doubtful since I do not know what an eclass is or how I would
put one into an overlay.

If you tell me how to check I will be glad to do so.
Comment 3 Sebastian Bergmann (RETIRED) gentoo-dev 2005-07-13 13:09:48 UTC
I cannot reproduce this with

  > USE=snmp emerge =dev-php/php-5.1.0_beta-r2
  > emerge =dev-php/PEAR-PEAR-1.3.5-r1

The above worked fine for me on x86.
Comment 4 Ed Davison 2005-07-13 13:15:58 UTC
I suppose that I should state that I my php version is 4.3.11 and net-snmp is
5.1.1.  I am not interested in upgrading to a Beta of PHP as this is a
production webserver.

Another solution needs to be found to get this to install other than the
necessity to install beta PHP.
Comment 5 Jakub Moc (RETIRED) gentoo-dev 2005-07-13 17:03:42 UTC
(In reply to comment #4)
> I suppose that I should state that I my php version is 4.3.11 and net-snmp is
> 5.1.1.  I am not interested in upgrading to a Beta of PHP as this is a
> production webserver.

Then I can't see why are you installing a package.masked PEAR-PEAR-1.3.5-r1
which is specifically for php5...
Comment 6 Ed Davison 2005-07-14 07:00:02 UTC
That would be my fault then for not fully understanding my problem.  Further
investigation shows that I do have pear installed but the PEAR.php file is not
in the default PHP include path.  It actually is at /usr/lib/php/php/PEAR.php
instead of /usr/lib/php/PEAR.php.  So, my forum search showed that PEAR had been
split off from PHP and I did not understand at the time that this only happened
in > PHP 5 not in PHP 4.  I have other problems now and need to address them
since I do have PEAR installed.

But, the question still remains why PEAR-PEAR will try to install without trying
to install PHP5 and why it needs snmp stuff.
Comment 7 Jakub Moc (RETIRED) gentoo-dev 2005-07-14 07:47:05 UTC
(In reply to comment #6)
> That would be my fault then for not fully understanding my problem.

Seems so. Only package masked versions of php-5 are missing pear and require
PEAR-PEAR to be installed separately (if you need it). Search the other bugs for
more detailed explanation.

> investigation shows that I do have pear installed but the PEAR.php file is not
> in the default PHP include path.  It actually is at /usr/lib/php/php/PEAR.php
> instead of /usr/lib/php/PEAR.php.

Dupe of Bug 88763.

> But, the question still remains why PEAR-PEAR will try to install without trying
> to install PHP5 

You are not supposed to mix hardmasked and stable packages in PHP that override
each other. 

> and why it needs snmp stuff.

Because you have snmp in your use flags.

Closing this bug as INVALID.