Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 53080 - emerge of mod_php-4.3.6-r2.ebuild fails with access violation "ACCESS DENIED open_wr: /dev/random"
Summary: emerge of mod_php-4.3.6-r2.ebuild fails with access violation "ACCESS DENIED ...
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: PHP Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-06-05 12:25 UTC by Shaun Crampton
Modified: 2004-06-17 02:08 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 Shaun Crampton 2004-06-05 12:25:06 UTC
Tried to upgrade to mod_php 4.3.6. emerge fails with an access violation.

Reproducible: Always
Steps to Reproduce:
1. emerge mod_php
2.
3.

Actual Results:  
...SNIP
/bin/sh /var/tmp/portage/mod_php-4.3.6-r2/work/php-4.3.6/libtool --silent
--preserve-dup-deps --mode=compile gcc  -Imain/
-I/var/tmp/portage/mod_php-4.3.6-r2/work/php-4.3.6/main/ -DPHP_ATOM_INC
-I/var/tmp/portage/mod_php-4.3.6-r2/work/php-4.3.6/include
-I/var/tmp/portage/mod_php-4.3.6-r2/work/php-4.3.6/main 
-I/var/tmp/portage/mod_php-4.3.6-r2/work/php-4.3.6
-I/var/tmp/portage/mod_php-4.3.6-r2/work/php-4.3.6/Zend -I/usr/include/libxml2
-I/var/tmp/portage/mod_php-4.3.6-r2/work/php-4.3.6/ext/mbstring/mbregex
-I/var/tmp/portage/mod_php-4.3.6-r2/work/php-4.3.6/ext/mbstring/libmbfl
-I/var/tmp/portage/mod_php-4.3.6-r2/work/php-4.3.6/ext/mbstring/libmbfl/mbfl
-I/usr/include/mysql -I/usr/include/postgresql/pgsql -I/usr/include/pspell
-I/usr/qt/3/include
-I/var/tmp/portage/mod_php-4.3.6-r2/work/php-4.3.6/ext/xml/expat 
-I/var/tmp/portage/mod_php-4.3.6-r2/work/php-4.3.6/TSRM  -O3 -march=athlon-xp
-fomit-frame-pointer -pipe  -prefer-pic -c main/internal_functions.c -o
main/internal_functions.lo
ACCESS DENIED  open_wr:   /dev/random
/bin/sh /var/tmp/portage/mod_php-4.3.6-r2/work/php-4.3.6/libtool --silent
--preserve-dup-deps --mode=compile gcc  -Iext/pcntl/
-I/var/tmp/portage/mod_php-4.3.6-r2/work/php-4.3.6/ext/pcntl/ -DPHP_ATOM_INC
-I/var/tmp/portage/mod_php-4.3.6-r2/work/php-4.3.6/include
-I/var/tmp/portage/mod_php-4.3.6-r2/work/php-4.3.6/main
-I/var/tmp/portage/mod_php-4.3.6-r2/work/php-4.3.6
-I/var/tmp/portage/mod_php-4.3.6-r2/work/php-4.3.6/Zend -I/usr/include/libxml2
-I/var/tmp/portage/mod_php-4.3.6-r2/work/php-4.3.6/ext/mbstring/mbregex
-I/var/tmp/portage/mod_php-4.3.6-r2/work/php-4.3.6/ext/mbstring/libmbfl
-I/var/tmp/portage/mod_php-4.3.6-r2/work/php-4.3.6/ext/mbstring/libmbfl/mbfl
-I/usr/include/mysql -I/usr/include/postgresql/pgsql -I/usr/include/pspell
-I/usr/qt/3/include
-I/var/tmp/portage/mod_php-4.3.6-r2/work/php-4.3.6/ext/xml/expat 
-I/var/tmp/portage/mod_php-4.3.6-r2/work/php-4.3.6/TSRM  -O3 -march=athlon-xp
-fomit-frame-pointer -pipe  -prefer-pic -c
/var/tmp/portage/mod_php-4.3.6-r2/work/php-4.3.6/ext/pcntl/pcntl.c -o
ext/pcntl/pcntl.lo
SNIP...

then at the end:

Build complete.
(It is safe to ignore warnings about tempnam and tmpnam).

--------------------------- ACCESS VIOLATION SUMMARY ---------------------------
LOG FILE = "/tmp/sandbox-dev-php_-_mod_php-4.3.6-r2-17862.log"

open_wr:   /dev/random
--------------------------------------------------------------------------------
Comment 1 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2004-06-06 01:06:27 UTC
please include 'emerge info' output
Comment 2 Shaun Crampton 2004-06-06 03:33:54 UTC
Ddin't realise emrge had such a nice feature... here's the verbose version in case it helps.

Portage 2.0.50-r7 (default-x86-2004.0, gcc-3.3.3, glibc-2.3.3_pre20040420-r0, 2.6.5-gentoo-r1)
=================================================================
System uname: 2.6.5-gentoo-r1 i686 AMD Athlon(tm) XP 2000+
Gentoo Base System version 1.4.15
Autoconf: sys-devel/autoconf-2.59-r4
Automake: sys-devel/automake-1.8.5
ACCEPT_KEYWORDS="x86"
ACCEPT_LICENSE=""
ALSA_CARDS="emu10k1"
ANT_HOME="/usr/share/ant"
ARCH="x86"
AUTOCLEAN="yes"
BASH_ENV="/etc/portage/bashrc"
CC="gcc"
CFLAGS="-O3 -march=athlon-xp -fomit-frame-pointer -pipe"
CHOST="i686-pc-linux-gnu"
CLASSPATH="."
CLEAN_DELAY="5"
COLORTERM=""
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CVS_RSH="ssh"
CXX="g++"
CXXFLAGS="-O3 -march=athlon-xp -fomit-frame-pointer -pipe"
DESKTOP_SESSION="default"
DISPLAY=":0.0"
DISTDIR="/usr/portage/distfiles"
EDITOR="/bin/nano"
FEATURES="autoaddcvs ccache prelink sandbox"
FETCHCOMMAND="/usr/bin/wget -T 15 ${URI} -P ${DISTDIR}"
GDK_USE_XFT="1"
GENTOO_MIRRORS="http://gentoo.oregonstate.edu http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
GLIBC_SSP_CHECKED="1"
GRP_STAGE23_USE="ipv6 pam tcpd readline nls ssl gpm perl python berkdb acl ncurses"
GS_LIB="/home/shaun/.fonts"
GTK2_RC_FILES="/etc/gtk-2.0/gtkrc:/home/shaun/.gtkrc-2.0:/home/shaun/.kde3.2/share/config/gtkrc"
GTK_RC_FILES="/etc/gtk/gtkrc:/home/shaun/.gtkrc:/home/shaun/.kde3.2/share/config/gtkrc"
G_BROKEN_FILENAMES="1"
HOME="/root"
HOSTNAME="smc72"
INFODIR="/usr/share/info:/usr/X11R6/info"
INFOPATH="/usr/share/info:/usr/share/gcc-data/i686-pc-linux-gnu/3.3/info"
INPUTRC="/etc/inputrc"
JAVAC="/opt/sun-jdk-1.5.0_beta1/bin/javac"
JAVA_HOME="/opt/sun-jdk-1.5.0_beta1"
JDK_HOME="/opt/sun-jdk-1.5.0_beta1"
KDEDIR="/usr/kde/3.2"
KDEDIRS="/usr"
KDE_FULL_SESSION="true"
KDE_MULTIHEAD="false"
KONSOLE_DCOP="DCOPRef(konsole-8308,konsole)"
KONSOLE_DCOP_SESSION="DCOPRef(konsole-8308,session-1)"
LESS="-R"
LESSOPEN="|lesspipe.sh %s"
LINGUAS="en en_GB"
LOGNAME="shaun"
LS_COLORS="no=00:fi=00:di=01;34:ln=01;36:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=01;05;37;41:mi=01;05;37;41:ex=01;32:*.cmd=01;32:*.exe=01;32:*.com=01;32:*.btm=01;32:*.bat=01;32:*.sh=01;32:*.csh=01;32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.gz=01;31:*.bz2=01;31:*.bz=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.rar=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.mng=01;35:*.xcf=01;35:*.pcx=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.avi=01;35:*.mkv=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.mov=01;35:*.qt=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.fli=01;35:*.gl=01;35:*.dl=01;35:"
MAKEOPTS="-j2"
MANPATH="/usr/share/man:/usr/local/share/man:/usr/share/gcc-data/i686-pc-linux-gnu/3.3/man:/usr/X11R6/man:/usr/share/man:/usr/local/share/man:/usr/share/gcc-data/i686-pc-linux-gnu/3.3/man:/usr/X11R6/man::/opt/sun-jdk-1.5.0_beta1/man:/usr/qt/3/man:/usr/qt/3/doc/man:/opt/sun-jdk-1.5.0_beta1/man:/usr/qt/3/man:/usr/qt/3/doc/man"
NOCOLOR="false"
PAGER="/usr/bin/less"
PATH="/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/opt/bin:/usr/i686-pc-linux-gnu/gcc-bin/3.3:/usr/X11R6/bin:/opt/sun-jdk-1.5.0_beta1/bin:/opt/sun-jdk-1.5.0_beta1/jre/bin:/opt/sun-jdk-1.5.0_beta1/jre/javaws:/usr/qt/3/bin:/usr/kde/3.2/sbin:/usr/kde/3.2/bin:/usr/share/karamba/bin"
PKGDIR="/usr/portage/packages"
PORTAGE_BINHOST_CHUNKSIZE="3000"
PORTAGE_CACHEDIR="/var/cache/edb/dep/"
PORTAGE_CALLER="emerge"
PORTAGE_GID="250"
PORTAGE_MASTER_PID="8399"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PRELINK_PATH=""
PRELINK_PATH_MASK=""
PS1="\[\033[01;31m\]\h \[\033[01;34m\]\W \$ \[\033[00m\]"
PWD="/home/shaun"
QMAKESPEC="linux-g++"
QTDIR="/usr/qt/3"
RESUMECOMMAND="/usr/bin/wget -c -T 15 ${URI} -P ${DISTDIR}"
RPMDIR="/usr/portage/rpm"
RSYNC_RETRIES="3"
RSYNC_TIMEOUT="180"
SANE_CONFIG_DIR="/etc/sane.d"
SESSION_MANAGER="local/smc72:/tmp/.ICE-unix/7970"
SHLVL="3"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
TERM="xterm"
USE="3dnow X aalib aim alsa apm arts avi berkdb cdr crypt cups dvd encode esd foomaticdb gdbm gif gpm gtk2 imlib jabber java jpeg kde ldap libg++ libwww linguas_en linguas_en_GB mad mikmod mmx motif mozilla mpeg msn mysql ncurses nls oggvorbis opengl oss pam pdflib perl png postgres ppds python qt quicktime readline scanner sdl slang spell ssl svga tcltk tcpd truetype usb video_cards_radeon x86 xml xml2 xmms xv yahoo zlib"
USER="shaun"
USERLAND="GNU"
USE_EXPAND="VIDEO_CARDS INPUT_DEVICES LINGUAS"
VIDEO_CARDS="radeon"
WINDOWID="50331653"
XARGS="xargs -r"
XCURSOR_SIZE=""
XCURSOR_THEME="default"
XDM_MANAGED="/var/run/xdmctl/xdmctl-:0,maysd,mayfn,sched,method=classic"
XINITRC="/etc/X11/xinit/xinitrc"
_="/usr/bin/emerge"
ftp_proxy="http://wwwcache.cam.ac.uk:8080"
http_proxy="http://wwwcache.cam.ac.uk:8080"
no_proxy="localhost 127.0.0.1 *.cam.ac.uk"
Comment 3 Shaun Crampton 2004-06-06 04:46:01 UTC
In fact on trying to remerge 4.3.6-r1 or 4.3.7 i get the same result.
Comment 4 Shaun Crampton 2004-06-06 05:37:48 UTC
Just tried it with USE="-java" emerge mod_php and it worked... didn't realise php had any realtion to java.
Comment 5 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2004-06-07 00:14:36 UTC
early on in the emerge mod_php process, during the configure, it would have displayed the access violation (in addition to doing it at the end), could you include that error capture and a few lines from before it?

jdk-1.5 is NOT supported at this time with php.
Comment 6 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2004-06-07 00:18:41 UTC
btw
'emerge -pv mod_php' will show you all the USE flags that mod_php uses (there are a LOT of them).
Comment 7 Shaun Crampton 2004-06-07 11:10:07 UTC
Thanks... I already posted the offending lines above -- seems it was just my use of java 1.5 that was the problem. Sorry folks. If i'd have realised php relied on java in the first place I wouldn't have posted the bug.
Comment 8 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2004-06-17 02:08:27 UTC
closing this since we don't support java 1.5 yet.