Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 22912 - unable to upgrade mysql
Summary: unable to upgrade mysql
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High critical
Assignee: Gentoo Linux MySQL bugs team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-06-16 01:42 UTC by Veiko Kukk
Modified: 2003-08-11 03:42 UTC (History)
1 user (show)

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


Attachments
config.log (config.log,24.74 KB, text/plain)
2003-06-23 06:35 UTC, Veiko Kukk
Details
output of 'strace ps p $$' (strace_output.log,47.38 KB, application/octet-stream)
2003-06-25 03:48 UTC, Veiko Kukk
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Veiko Kukk 2003-06-16 01:42:22 UTC
variable portage # nice -n 19 emerge mysql -up

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

Calculating dependencies ...done!
[ebuild  N   ] sys-apps/sed-4.0.7
[ebuild    U ] dev-db/mysql-4.0.13-r3 [4.0.13]
[ebuild    U ] dev-perl/DBD-mysql-2.1027 [2.1013-r1]

variable portage # nice -n 19 emerge mysql -u --nodeps
Calculating dependencies ...done!
>>> emerge (1 of 1) dev-db/mysql-4.0.13-r3 to /
>>> md5 src_uri ;-) mysql-4.0.13.tar.gz
 *
 * If you're upgrading from MySQL-3.x, you must recompile the other
 * packages on your system that link with libmysqlclient after the
 * upgrade completes.  To obtain such a list of packages for your
 * system, you may use the: /usr/portage/dev-db/mysql/files/rebuilder.sh
 * script.
 *
>>> Unpacking source...
>>> Unpacking mysql-4.0.13.tar.gz to /var/tmp/portage/mysql-4.0.13-r3/work
patching file include/nisam.h
patching file scripts/mysql_install_db.sh
Hunk #1 succeeded at 325 (offset -2 lines).
patching file scripts/mysqld_safe.sh
Hunk #1 succeeded at 82 (offset 9 lines).
patching file mysys/default.c
Hunk #1 succeeded at 50 with fuzz 2 (offset 3 lines).
patching file libmysql_r/Makefile.in
Hunk #1 succeeded at 209 with fuzz 1.
Hunk #2 succeeded at 320 with fuzz 1.
>>> Source unpacked.
berkdb
readline
readline
ssl
configure: WARNING: If you wanted to set the --build type, don't use --host.
    If a cross compiler is detected then cross compile mode will be used.
checking build system type... i686-pc-linux
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking for a BSD-compatible install... /bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets ${MAKE}... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking whether build environment is sane... yes
checking whether make sets ${MAKE}... (cached) yes
checking for gawk... (cached) gawk
checking for i686-pc-linux-gnu-gcc... gcc
checking for C compiler default output... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking for i686-pc-linux-gnu-g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking how to run the C preprocessor... gcc -E
checking "C Compiler version"... "gcc gcc (GCC) 3.3 (Gentoo Linux 1.4, PVR 3.3)"
checking "C++ compiler version"... "g++ g++ (GCC) 3.3 (Gentoo Linux 1.4, PVR 3.3)"
checking for i686-pc-linux-gnu-ranlib... no
checking for ranlib... ranlib
checking for ld used by GCC... /usr/i686-pc-linux-gnu/bin/ld
checking if the linker (/usr/i686-pc-linux-gnu/bin/ld) is GNU ld... yes
checking for /usr/i686-pc-linux-gnu/bin/ld option to reload object files... -r
checking for BSD-compatible nm... nm
checking whether ln -s works... yes
checking how to recognise dependant libraries... pass_all
checking command to parse nm output... ok
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking for i686-pc-linux-gnu-ranlib... ranlib
checking for i686-pc-linux-gnu-strip... no
checking for strip... strip
checking for objdir... .libs
checking for gcc option to produce PIC... -fPIC
checking if gcc PIC flag -fPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.lo... yes
checking if gcc supports -fno-rtti -fno-exceptions... yes
checking whether the linker (/usr/i686-pc-linux-gnu/bin/ld) supports shared
libraries... yes
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking whether -lc should be explicitly linked in... no
creating libtool
checking for a BSD-compatible install... /bin/install -c
checking for bison... bison -y
checking for pdftex... no
checking for tex... no
checking "return type of sprintf"... "int"
checking for uname... /bin/uname
checking operating system... Linux
checking "if we should use 'skip-locking' as default for linux-gnu"... "yes"
checking for ln... /bin/ln
checking for ln... /bin/ln
checking for mv... /bin/mv
checking for rm... /bin/rm
checking for cp... /bin/cp
checking for sed... /usr/bin/sed
checking for cmp... /usr/bin/cmp
checking for chmod... /bin/chmod
checking for hostname... /bin/hostname
checking for gnutar... no
checking for gtar... no
checking for tar... tar
checking for perl... /usr/bin/perl
checking for ps... /bin/ps
checking "how to check if pid exists"... configure: error: Could not find the
right ps switches. Which OS is this ?. See the Installation chapter in the
Reference Manual.

!!! ERROR: dev-db/mysql-4.0.13-r3 failed.
!!! Function econf, Line 304, Exitcode 1
!!! econf failed

Reproducible: Always
Steps to Reproduce:

Actual Results:  
fails top configure, i'm using --nodeps option because i dont want sed-4.0.7 to
be installed, it won't work for me.


emerge info
Portage 2.0.48-r1 (default-x86-1.4, gcc-3.3, glibc-2.3.2-r1)
=================================================================
System uname: 2.5.70 i686 AMD Duron(tm) processor
GENTOO_MIRRORS="ftp://ftp.gentoo.linux.no/pub/gentoo
http://www.ibiblio.org/pub/Linux/distributions/gentoo"
CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config
/usr/kde/3/share/config /usr/X11R6/lib/X11/xkb /usr/kde/3.1/share/config
/usr/share/config"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
PORTDIR="/usr/portage"
DISTDIR="/usr/portage/distfiles"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR_OVERLAY=""
USE="x86 oss apm avi crypt cups encode gif jpeg kde libg++ mikmod mpeg nls
pdflib png quicktime truetype xml2 xmms xv zlib gtkhtml gdbm berkdb slang
readline arts bonobo guile X sdl gpm tcpd pam libwww ssl python imlib oggvorbis
gnome gtk qt motif opengl -svga -spell -ldap 3dnow apache2 cdr cjk dvd esd flash
gphoto2 imap java lcms maildir mbox mmx mozilla mysql ncurses perl postgres ruby
samba sasl sse tcltk tetex tiff usb"
COMPILER="gcc3"
CHOST="i686-pc-linux-gnu"
CFLAGS="-march=athlon-xp -O3 -pipe -mfpmath=sse,387 -mmmx -msse -m3dnow"
CXXFLAGS="-march=athlon-xp -O3 -pipe -mfpmath=sse,387 -mmmx -msse -m3dnow
-Wno-deprecated"
ACCEPT_KEYWORDS="x86 ~x86"
MAKEOPTS="-j2"
AUTOCLEAN="yes"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
FEATURES="sandbox ccache fixpackages"
Comment 1 Patrick Kursawe (RETIRED) gentoo-dev 2003-06-17 00:41:28 UTC
Is your /proc mounted? I got errors like this one when trying to compile something in a chroot environment where I forgot to mount /proc
Comment 2 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2003-06-18 19:57:09 UTC
You state, "i dont want sed-4.0.7 to be installed, it won't work for me." 
if that is the case, there is a bug in sed-4.0.7, what is wrong with it?
Comment 3 Veiko Kukk 2003-06-19 02:21:37 UTC
>Is your /proc mounted?

Yes, It's my LTSP server machine and most of the programs work fine except some.
Comment 4 Veiko Kukk 2003-06-19 02:31:30 UTC
>if that is the case, there is a bug in sed-4.0.7, what is wrong with it?

nobody knows :) but I guess that some ebuilds are not compatible with sed-4.x and higher. I have reported several bugs related to sed-4.x but most of them were marked resolved when I found out and told that supersed works for me.
Comment 5 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2003-06-21 03:15:18 UTC
I have sed-4.0.7 installed on many machines without any problems at all.
let it get installed and see if mysql installs then.
if it still fails, please attach /var/tmp/portage/mysql-4.0.13-r3/work/*/config.log
Comment 6 Veiko Kukk 2003-06-23 03:27:29 UTC
same error message with sed-4.0.7
Comment 7 Veiko Kukk 2003-06-23 06:35:11 UTC
Created attachment 13726 [details]
config.log
Comment 8 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2003-06-24 13:16:24 UTC
Vieko:
could I possibly get access to your system to try and figure out why sed and everything aren't behaving correctly ?

The actual command that fails in the mysql configure is:
'ps p $$'
Run that and see what output you get.

Please contact me via email, using GPG if you use it, please encrypt to one of three keys:
0xCA05A397, 0x67592A1F, 0x34884E85
Comment 9 Veiko Kukk 2003-06-25 02:12:17 UTC
>The actual command that fails in the mysql configure is:
>'ps p $$'
>Run that and see what output you get.

variable portage # ps p $$
  PID TTY      STAT   TIME COMMAND


Signal 8 (FPE) caught by ps (procps version 3.1.9).
Please send bug reports to <feedback@lists.sf.net> or <albert@users.sf.net>
Comment 10 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2003-06-25 02:36:02 UTC
could you run 'strace ps p $$' and attach the output please?

ps should _not_ crash like that.
Comment 11 Veiko Kukk 2003-06-25 03:48:13 UTC
Created attachment 13826 [details]
output of 'strace ps p $$'
Comment 12 Veiko Kukk 2003-06-25 04:49:02 UTC
I reemerged procps and now it won't crash! Now the mysql emerges properly. I'm pretty sure that the procps problem started when I upgraded to gcc-3.3 and compiled glibc with gcc3.3. So, it can be marked as possible problem when upgrading to gcc-3.3.
Comment 13 Donnie Berkholz (RETIRED) gentoo-dev 2003-06-29 18:43:00 UTC
I'm having a failure at the same place. This is on a chrooted Gentoo install from a RedHat 9 system. I tried re-emerging procps but that did not help.
gcc-3.2.3-r1. I'm not trying anything weird like --nodeps, just emerge -u world.

checking "how to check if pid exists"... configure: error: Could not find the right ps switches. Which OS is this ?. See the Installation chapter in the Reference Manual.

!!! ERROR: dev-db/mysql-4.0.13-r3 failed.
!!! Function econf, Line 304, Exitcode 1
!!! econf failed
Comment 14 Donnie Berkholz (RETIRED) gentoo-dev 2003-06-29 18:46:51 UTC
Solved it. /proc wasn't mounted.


# ps p $$
Error, do this: mount -t proc none /proc
Comment 15 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2003-08-11 03:42:36 UTC
Closing bug as Donnie found it was being caused by /proc not being mounted.