nasd (of media-libs/nas) emerge works normally on a single-processor Opteron amd64 machine, but a segmentation fault is the only result of attempting to start the daemon. Here is the gdb output: Starting program: /usr/X11R6/bin/nasd -aa Program received signal SIGSEGV, Segmentation fault. 0x0000002a956e1200 in strchr () from /lib/libc.so.6 (gdb) where #0 0x0000002a956e1200 in strchr () from /lib/libc.so.6 #1 0x000000000040235a in AuServerName () #2 0x0000000000402292 in main () emerge --info: Portage 2.0.50-r1 (default-amd64-2004.0, gcc-3.3.3, glibc-2.3.2-r9, 2.6.3-gentoo-r2) ================================================================= System uname: 2.6.3-gentoo-r2 x86_64 5 Gentoo Base System version 1.4.3.13 ccache version 2.3 [enabled] Autoconf: sys-devel/autoconf-2.58-r1 Automake: sys-devel/automake-1.7.8 ACCEPT_KEYWORDS="amd64" AUTOCLEAN="yes" CFLAGS="-O2 -fPIC -DDEBUG -D_DEBUG" CHOST="x86_64-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/lib/mozilla/defaults/pref /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O2 -fPIC -DDEBUG -D_DEBUG" DISTDIR="/opt/no_archive/portage/distfiles" FEATURES="autoaddcvs buildpkg ccache sandbox" GENTOO_MIRRORS="http://128.213.5.34/gentoo/" MAKEOPTS="-j2" PKGDIR="/opt/no_archive/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X alsa amd64 apm arts avi berkdb cdr crypt debug doc encode esd foomaticdb gdbm gif gnome gpm gtk gtk2 imlib jpeg kde ldap libg++ libwww log4cpp mikmod motif mozilla mpeg mysql nas ncurses nls oggvorbis opengl oss pam pdflib perl plotutils png postgres python qt quicktime readline ruby sdl slang spell ssl tcltk tcpd truetype usb wxwindows xinerama xml2 xmms xv zlib" lshw output: attached.
Created attachment 27053 [details] Hardware profile
Problem solved. server/dia/main.c doens't #include <stdlib.h>. I don't know how that code could ever have worked, no idea where the declaration of "getenv(char *)" came from, but a sane declaration cured the segfaults. Waiting for eradicator to approve my patch to be applied unconditionally.
Fixes in CVS, take media-libs/nas-1.6c-r2.