Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 48422

Summary: Fail to emerge mod_php at install stage
Product: Gentoo Linux Reporter: LuisMi Garcia <ktecho>
Component: [OLD] ServerAssignee: PHP Bugs <php-bugs>
Status: RESOLVED DUPLICATE    
Severity: critical CC: ktecho
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description LuisMi Garcia 2004-04-19 19:23:29 UTC
I cannot emerge mod_php because when it ends compiling, it don't install correctly, bu emerge doesn't finish and the system starts behaving very bad and then it starts locking. Ctrl+C at the console I do the emerge doesn't solve that.

This is the step where it keeps locked (after compiling, but not still in the install part of the emerge I think, but install from the package):

Build complete.
(It is safe to ignore warnings about tempnam and tmpnam).
>>> Install mod_php-4.3.6 into /var/tmp/portage/mod_php-4.3.6/image/ category dev-php
Installing PHP SAPI module:       apache2handler
/usr/lib/apache2/build/libtool --mode=install cp libphp4.la /var/tmp/portage/mod_php-4.3.6/image//usr/lib/apache2/modules/
cp .libs/libphp4.so /var/tmp/portage/mod_php-4.3.6/image//usr/lib/apache2/modules/libphp4.so
cp .libs/libphp4.lai /var/tmp/portage/mod_php-4.3.6/image//usr/lib/apache2/modules/libphp4.la
Installing PHP CLI binary:        /var/tmp/portage/mod_php-4.3.6/image//usr/bin/
Installing PHP CLI man page:      /var/tmp/portage/mod_php-4.3.6/image//usr/share/man/man1/
Installing shared extensions:     /var/tmp/portage/mod_php-4.3.6/image//usr/lib/php/extensions/no-debug-non-zts-20020429/
Installing PEAR environment:      /var/tmp/portage/mod_php-4.3.6/image//usr/lib/php/
[PEAR] Archive_Tar    - installed: 1.1
[PEAR] Console_Getopt - installed: 1.2
[PEAR] PEAR           - installed: 1.3.1
Wrote PEAR system config file at: /var/tmp/portage/mod_php-4.3.6/image///etc/pear.conf
You may want to add: /usr/lib/php to your php.ini include_path
[PEAR] DB             - installed: 1.6.2
[PEAR] HTTP           - installed: 1.2.2
[PEAR] Mail           - installed: 1.1.3
[PEAR] Net_SMTP       - installed: 1.2.3

And this is what I get when I do "ps ax" [stripped] while the system is still responsive but starting to lock:

8965 pts/1    S+     0:00 /usr/bin/python -O /usr/bin/emerge mod_php
2210 ?        R      0:05 kdeinit: konsole
2211 pts/2    Ss     0:00 /bin/bash
2346 pts/2    S      0:00 su
2457 pts/2    S      0:00 bash
25051 pts/1    S+     0:00 [mod_php-4.3.6] sandbox /usr/sbin/ebuild.sh install
25052 pts/1    S+     0:00 /bin/bash /usr/sbin/ebuild.sh install
25087 pts/1    S+     0:00 make INSTALL_ROOT=/var/tmp/portage/mod_php-4.3.6/image/ install
25447 pts/1    S+     0:00 /bin/sh -c if /var/tmp/portage/mod_php-4.3.6/work/php-4.3.6/build/shtool mkdir -p /var/tmp/portage/mod_php-4.3.6/image//usr/lib/php; then  make -s install-pear-installer install-pear-packages;  else  cat /var/tmp/portage/mod_php-4.3.6/work/php-4.3.6/pear/install-pear.txt;  exit 5;  fi
25465 pts/1    S+     0:00 make -s install-pear-installer install-pear-packages
25469 pts/1    D+     0:00 /var/tmp/portage/mod_php-4.3.6/work/php-4.3.6/sapi/cli/php -n -dshort_open_tag 0 -dsafe_mode 0 /var/tmp/portage/mod_php-4.3.6/work/php-4.3.6/pear/install-pear.php -d /usr/lib/php -b /usr/bin /var/tmp/portage/mod_php-4.3.6/work/php-4.3.6/pear/packages/DB-1.6.2.tar /var/tmp/portage/mod_php-4.3.6/work/php-4.3.6/pear/packages/HTTP-1.2.2.tar /var/tmp/portage/mod_php-4.3.6/work/php-4.3.6/pear/packages/Mail-1.1.3.tar /var/tmp/portage/mod_php-4.3.6/work/php-4.3.6/pear/packages/Net_SMTP-1.2.3.tar /var/tmp/portage/mod_php-4.3.6/work/php-4.3.6/pear/packages/Net_Socket-1.0.1.tar /var/tmp/portage/mod_php-4.3.6/work/php-4.3.6/pear/packages/XML_Parser-1.0.1.tar /var/tmp/portage/mod_php-4.3.6/work/php-4.3.6/pear/packages/XML_RPC-1.1.0.tar
25939 pts/2    R+     0:00 ps ax
bash-2.05b#

Reproducible: Always
Steps to Reproduce:
1.   emerge mod_php
2.   emerge get stucked
3.   my computer starts locking and I have to reboot

Actual Results:  
mod_php is not finished installing (performing aditional steps to compile (not
the install from emerge) ), so I haven't mod_php and I have my computer locked.

Expected Results:  
mod_php installing and my computer being responsive.

bash-2.05b# emerge info
Portage 2.0.50-r6 (default-x86-2004.0, gcc-3.3.3, glibc-2.3.3_pre20040207-r0,
2.6.5-Speedy2)
=================================================================
System uname: 2.6.5-Speedy2 i686 AMD Athlon(tm)
Gentoo Base System version 1.4.9
distcc 2.13 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
Autoconf: sys-devel/autoconf-2.59-r3
Automake: sys-devel/automake-1.8.3
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-O2 -fomit-frame-pointer -march=athlon-xp -pipe -fforce-addr
-fomit-frame-pointer -falign-functions=4 -maccumulate-outgoing-args -fPIC -DPIC"
CHOST="i686-pc-linux-gnu"
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"
CXXFLAGS="-O2 -fomit-frame-pointer -march=athlon-xp -pipe -fforce-addr
-fomit-frame-pointer -falign-functions=4 -maccumulate-outgoing-args -fPIC -DPIC"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="http://gentoo.oregonstate.edu
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="3dnow X aalib acpi alsa apache2 arts avi berkdb cdr crypt cups encode esd
ffmpeg flash foomaticdb gdbm gif gphoto2 gpm gtk gtk2 imlib java jpeg kde libg++
libwww lirc mad mikmod mmx motif mpeg mysql ncurses nls oggvorbis opengl oss pam
pdflib perl png python qt quicktime readline samba sdl slang spell sse ssl svga
tcltk tcpd tiff truetype x86 xinerama xml2 xmms xosd xv xvid zlib"

bash-2.05b#
Comment 1 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2004-04-19 20:16:04 UTC
attach to the hung process with ptrace and post what it's up to.
Comment 2 LuisMi Garcia 2004-04-20 03:13:19 UTC
I don't know how to do that. Please, give me a tip.
Comment 3 LuisMi Garcia 2004-04-20 03:33:56 UTC
I CAN emerge 4.3.4. This is the first version I can emerge. 4.3.5 and 4.3.6 have different install methods (the lines that begins with [PEAR]) and I cannot emerge them.
Comment 4 LuisMi Garcia 2004-04-20 03:40:36 UTC
No, sorry. Only mod_php 4.3.4 emerged. php 4.3.4 fails with the same:

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


>>> Install php-4.3.4-r4 into /var/tmp/portage/php-4.3.4-r4/image/ category dev-php
Installing shared extensions:     /var/tmp/portage/php-4.3.4-r4/image//usr/lib/php/extensions/no-debug-non-zts-20020429/
Installing helper programs:       /var/tmp/portage/php-4.3.4-r4/image//usr/bin/
  program: phpize
  program: php-config
  program: phpextdist
make: `install-modules' is up to date.
make: `install-programs' is up to date.
make: `install-modules' is up to date.
make: `install-programs' is up to date.
make: `install-modules' is up to date.
make: `install-programs' is up to date.
Installing PHP CLI binary:        /var/tmp/portage/php-4.3.4-r4/image//usr/bin/
Installing PHP CLI man page:      /var/tmp/portage/php-4.3.4-r4/image//usr/share/man/man1/
make: `install-programs' is up to date.
Installing PEAR environment:      /var/tmp/portage/php-4.3.4-r4/image//usr/lib/php/
[PEAR] Archive_Tar    - installed: 1.1
[PEAR] Console_Getopt - installed: 1.0
[PEAR] PEAR           - installed: 1.3b3
Wrote PEAR system config file at: /var/tmp/portage/php-4.3.4-r4/image///etc/pear.conf
You may want to add: /usr/lib/php to your php.ini include_path
[PEAR] DB             - installed: 1.5.0RC2
[PEAR] HTTP           - installed: 1.2.1
[PEAR] Mail           - installed: 1.1.1
[PEAR] Net_SMTP       - installed: 1.2.3

and then stops there. Sometimes I can Ctrl+c a few times and I can see the shell. Other times the computer starts locking.
Comment 5 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2004-04-20 08:13:40 UTC
once it locks up, open a new shell, run ps, get the PID of the process that is hung, and do 'strace -p 25469' (you may need to emerge strace first).
Comment 6 Alexander Henry 2004-05-02 11:34:13 UTC
emerge mod_php



----------------------------------------------------------------------
Libraries have been installed in:
   /var/tmp/portage/mod_php-4.3.6_rc2/work/php-4.3.6RC2/modules

If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the `-LLIBDIR'
flag during linking and do at least one of the following:
   - add LIBDIR to the `LD_LIBRARY_PATH' environment variable
     during execution
   - add LIBDIR to the `LD_RUN_PATH' environment variable
     during linking
   - use the `-Wl,--rpath -Wl,LIBDIR' linker flag
   - have your system administrator add LIBDIR to `/etc/ld.so.conf'

See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------
/usr/lib/libcom_err.a(error.o)(.text+0x0): In function `com_right':
: multiple definition of `com_right'
/usr/lib/libkrb5.a(error.o)(.text+0x0): first defined here
/usr/lib/libcom_err.a(error.o)(.text+0x40): In function `initialize_error_table_r':
: multiple definition of `initialize_error_table_r'
/usr/lib/libkrb5.a(error.o)(.text+0x40): first defined here
/usr/lib/libcom_err.a(error.o)(.text+0xb0): In function `free_error_table':
: multiple definition of `free_error_table'
/usr/lib/libkrb5.a(error.o)(.text+0xb0): first defined here
/usr/lib/libcom_err.a(com_err.o)(.bss+0x0): multiple definition of `_et_list'
/usr/lib/libkrb5.a(com_err.o)(.bss+0x0): first defined here
/usr/lib/libcom_err.a(com_err.o)(.text+0x0): In function `com_err':
: multiple definition of `com_err'
/usr/lib/libkrb5.a(com_err.o)(.text+0x0): first defined here
/usr/lib/libcom_err.a(com_err.o)(.text+0x30): In function `error_message':
: multiple definition of `error_message'
/usr/lib/libkrb5.a(com_err.o)(.text+0x30): first defined here
/usr/lib/libcom_err.a(com_err.o)(.text+0xe0): In function `init_error_table':
: multiple definition of `init_error_table'
/usr/lib/libkrb5.a(com_err.o)(.text+0xe0): first defined here
/usr/lib/libcom_err.a(com_err.o)(.text+0x110): In function `com_err_va':
: multiple definition of `com_err_va'
/usr/lib/libkrb5.a(com_err.o)(.text+0x110): first defined here
/usr/lib/libcom_err.a(com_err.o)(.text+0x140): In function `set_com_err_hook':
: multiple definition of `set_com_err_hook'
/usr/lib/libkrb5.a(com_err.o)(.text+0x140): first defined here
/usr/lib/libcom_err.a(com_err.o)(.text+0x160): In function `reset_com_err_hook':
: multiple definition of `reset_com_err_hook'
/usr/lib/libkrb5.a(com_err.o)(.text+0x160): first defined here
/usr/lib/libcom_err.a(com_err.o)(.text+0x180): In function `error_table_name':
: multiple definition of `error_table_name'
/usr/lib/libkrb5.a(com_err.o)(.text+0x180): first defined here
/usr/lib/libcom_err.a(com_err.o)(.text+0x1d0): In function `add_to_error_table':
: multiple definition of `add_to_error_table'
/usr/lib/libkrb5.a(com_err.o)(.text+0x1d0): first defined here
collect2: ld returned 1 exit status
make: *** [libphp4.la] Error 1

!!! ERROR: dev-php/mod_php-4.3.6_rc2 failed.
!!! Function php-sapi_src_compile, Line 481, Exitcode 2
!!! compile problem




USE="-kerberos" solves this problem.
Comment 7 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2004-05-03 22:16:50 UTC

*** This bug has been marked as a duplicate of 46768 ***