Everything was going fine until I had the below failure. It sounds like it can be fixed with different cflags but I didn't tried yet. Please look at the url field for more info. myisam [ pass ] mysql_client_test [ fail ] Errors are (from /var/tmp/portage/mysql-4.1.20/work/mysql/mysql-test/var/log/mysqltest-time) : mysql_client_test.c:3573: check failed: '(int) i8_data == rc' mysqltest: At line 10: command "$MYSQL_CLIENT_TEST --getopt-ll-test=25600M" failed (the last lines may be the most important ones) Aborting: mysql_client_test failed in default mode. To continue, re-run with '--force'. Ending Tests Shutting-down MySQL daemon Master shutdown finished Slave shutdown finished !!! ERROR: dev-db/mysql-4.1.20 failed. Call stack: ebuild.sh, line 1539: Called dyn_test ebuild.sh, line 987: Called src_test mysql-4.1.20.ebuild, line 31: Called die !!! make test failed !!! If you need support, post the topmost build error, and the call stack if relevant. hope ~ # emerge --info Portage 2.1 (default-linux/hppa/2005.0, gcc-4.1.1, glibc-2.3.6-r4, 2.6.16.18-pa11 parisc) ================================================================= System uname: 2.6.16.18-pa11 parisc PA8600 (PCX-W+) Gentoo Base System version 1.6.14 distcc 2.18.3 hppa2.0-unknown-linux-gnu (protocols 1 and 2) (default port 3632) [enabled] ccache version 2.3 [disabled] dev-lang/python: 2.3.5, 2.4.2 dev-python/pycrypto: 2.0.1-r5 dev-util/ccache: 2.3 dev-util/confcache: [Not Present] sys-apps/sandbox: 1.2.17 sys-devel/autoconf: 2.13, 2.59-r7 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1 sys-devel/binutils: 2.16.1-r2 sys-devel/gcc-config: 1.3.13-r2 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.11-r5 ACCEPT_KEYWORDS="hppa" AUTOCLEAN="yes" CBUILD="hppa2.0-unknown-linux-gnu" CFLAGS="-O3 -pipe -march=2.0" CHOST="hppa2.0-unknown-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/X11/xkb /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/bind" CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/terminfo" CXXFLAGS="-O3 -pipe -march=2.0" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig distcc distlocks metadata-transfer sandbox sfperms strict" GENTOO_MIRRORS="http://ftp.snt.utwente.nl/pub/os/linux/gentoo/" LINGUAS="en fr" MAKEOPTS="-j4" PKGDIR="/usr/portage/packages" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage/ferringb" SYNC="cvs://gmsoft@cvs.gentoo.org/var/cvsroot" USE="hppa X aac aalib accessibility alsa apache2 arts berkdb bidi bigger-fonts bitmap-fonts bl bluetooth ccache cdparanoia cgi cli cpudetection crypt cups curl custom-cflags dga directfb divx4linux dts dv dvb dvd dvdread edl encode fbcon font-server foomaticdb fortran gdbm ggi gnome gpm gtk2 hal imlib ipv6 isdnlog javascript joystick jpeg kde kdeenablefinal ldap libcaca libwww live lzo matroska matrox motif mp3 mpeg mythtv nas ncurses network nls offensive oggvorbis openexr opengl oss pam pcre pdf perl pic povray pppd python rdesktop readline reflection rtc sametime sdl session slp sms snmp speex spell spl ssl tcpd tga theora tidy truetype truetype-fonts type1-fonts unicode usb v4l v4l2 xanim xine xinerama xml2 xmms xorg xscreensaver xv xvid xvmc zlib zvbi elibc_glibc kernel_linux linguas_en linguas_fr userland_GNU" Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS Linux hope 2.6.16.18-pa11 #2 Tue May 30 13:32:43 CEST 2006 parisc PA8600 (PCX-W+) GNU/Linux
I tried with the mentionned CFLAGS in the mysql bug and it worked fine : mysql_client_test [ pass ] I'll try to find out which flag exactly fix this.
It looks like adding -DUNDEF_HAVE_INITGROUPS to CXXFLAGS makes it work.
these the places where HAVE_INITGROUPS influences the code: sql/mysqld.cc [...] ifdef HAVE_INITGROUPS static bool calling_initgroups= FALSE; /* Used in SIGSEGV handler. */ #endif [...] #ifdef HAVE_INITGROUPS /* We can get a SIGSEGV when calling initgroups() on some systems when NSS is configured to use LDAP and the server is statically linked. We set calling_initgroups as a flag to the SIGSEGV handler that is then used to output a specific message to help the user resolve this problem. */ calling_initgroups= TRUE; initgroups((char*) user, user_info->pw_gid); calling_initgroups= FALSE; #endif [...] #ifdef HAVE_INITGROUPS if (calling_initgroups) fprintf(stderr, "\n\ This crash occured while the server was calling initgroups(). This is\n\ often due to the use of a mysqld that is statically linked against glibc\n\ and configured to use LDAP in /etc/nsswitch.conf. You will need to either\n\ upgrade to a version of glibc that does not have this problem (2.3.4 or\n\ later when used with nscd), disable LDAP in your nsswitch.conf, or use a\n\ mysqld that is not statically linked.\n"); #endif [...] initgroups normally read from /etc/groups, sincerely I fail to see how it can be related, can you provide some more info about your user accouunting system?
I have nss_ldap but I'm not using it. I kept the default config files from pam and nssswitch.conf : passwd: compat shadow: compat group: compat
Created attachment 90149 [details] mysql_client_test opened funnily, that is one of the most complex test of the whole suite ... mysql_client_test call another test in ${SRC_DIR}/tests/mysql_client_test that call another client test in tests/.lib/mysql_client_test . The attachment show how ${SRC_DIR}/tests/mysql_client_test is called, the piece of code failing and the output to screen. This is being revieved with an hppa expert (meaning you). Ciao, Francesco