app-misc/mmv was recently added as an ebuild to amd64: http://bugs.gentoo.org/show_bug.cgi?id=50663 and marked as stable. It compiles with warnings, but always segfaults no matter what the command-line arguments (even on an empty argument list). Reproducible: Always Steps to Reproduce: 1.emerge mmv 2.mmv '*.txt' '#1.text' 3. Actual Results: Segmentation fault Expected Results: either perform multiple move or print out error message The warnings do not occur when compiling on x86 where this program runs flawlessly. If i manually apply the patches and compile with -m32 it also compiles and works. Here my system information for the compile that always segfaults: emerge info: Portage 2.0.51-r3 (default-linux/amd64/2004.3, gcc-3.4.3, glibc-2.3.4.20040808-r1, 2.6.9-gentoo-r9 x86_64) ================================================================= System uname: 2.6.9-gentoo-r9 x86_64 AMD Athlon(tm) 64 Processor 3000+ Gentoo Base System version 1.4.16 Autoconf: sys-devel/autoconf-2.59-r5 Automake: sys-devel/automake-1.8.5-r1 Binutils: sys-devel/binutils-2.15.90.0.1.1-r3 Headers: sys-kernel/linux26-headers-2.6.8.1-r1 Libtools: sys-devel/libtool-1.5.2-r7 ACCEPT_KEYWORDS="amd64" AUTOCLEAN="yes" CFLAGS="-march=athlon64 -O2 -pipe" CHOST="x86_64-pc-linux-gnu" COMPILER="" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /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/qmail/control"CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-march=athlon64 -O2 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs autoconfig ccache distlocks sandbox" GENTOO_MIRRORS="ftp://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ http://gentoo.zie.pg.gda.pl http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ ftp://mirror.nutsmaas.nl/gentoo/" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="amd64 X aalib acpi alsa berkdb bitmap-fonts cdr crypt dvd dvdr esd f77 fam flac fortran gdbm gif gnome gpm gstreamer gtk gtk2 imlib ipv6 java joystick jp2 jpeg junit libwww lzw lzw-tiff matroska mozilla mpeg multilib ncurses nls nptl offensive oggvorbis opengl oss pam perl png python readline sdl speex ssl tcpd tetex theora tiff truetype usb userlocales xml2 xpm xrandr xv xvid zlib" compilation output: Calculating dependencies ...done! >>> emerge (1 of 1) app-misc/mmv-1.01b to / >>> md5 src_uri ;-) mmv_1.01b.orig.tar.gz >>> md5 src_uri ;-) mmv_1.01b-12.diff.gz >>> Unpacking source... >>> Unpacking mmv_1.01b.orig.tar.gz to /var/tmp/portage/mmv-1.01b/work * Applying mmv_1.01b-12.diff.gz ... [ ok ] * Applying mmv-gcc34.patch ... [ ok ]>>> Source unpacked. x86_64-pc-linux-gnu-gcc -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -march=athlon64 -O2 -pipe -c -o mmv.o mmv.c mmv.c: In function `init': mmv.c:539: warning: assignment makes pointer from integer without a cast mmv.c: In function `doreps': mmv.c:2389: warning: passing arg 2 of `signal' from incompatible pointer type x86_64-pc-linux-gnu-gcc -s mmv.o -o mmv >>> Test phase [not enabled]: app-misc/mmv-1.01b >>> Install mmv-1.01b into /var/tmp/portage/mmv-1.01b/image/ category app-misc man: fixing man page symlink: mad.1.gz fixing man page symlink: mcp.1.gz fixing man page symlink: mln.1.gz prepallstrip: strip: strip: usr/bin/mmv >>> Completed installing into /var/tmp/portage/mmv-1.01b/image/ >>> Merging app-misc/mmv-1.01b to / --- /usr/ --- /usr/bin/ >>> /usr/bin/mad -> /usr/bin/mmv >>> /usr/bin/mcp -> /usr/bin/mmv >>> /usr/bin/mln -> /usr/bin/mmv >>> /usr/bin/mmv --- /usr/share/ --- /usr/share/doc/ --- /usr/share/doc/mmv-1.01b/ >>> /usr/share/doc/mmv-1.01b/README.gz >>> /usr/share/doc/mmv-1.01b/copyright.gz >>> /usr/share/doc/mmv-1.01b/control.gz >>> /usr/share/doc/mmv-1.01b/changelog.gz --- /usr/share/man/ --- /usr/share/man/man1/ >>> /usr/share/man/man1/mmv.1.gz >>> /usr/share/man/man1/mad.1.gz -> mmv.1.gz >>> /usr/share/man/man1/mcp.1.gz -> mmv.1.gz >>> /usr/share/man/man1/mln.1.gz -> mmv.1.gz >>> Safely unmerging already-installed instance... --- !mtime obj /usr/share/man/man1/mmv.1.gz --- !mtime obj /usr/share/doc/mmv-1.01b/copyright.gz --- !mtime obj /usr/share/doc/mmv-1.01b/control.gz --- !mtime obj /usr/share/doc/mmv-1.01b/changelog.gz --- !mtime obj /usr/share/doc/mmv-1.01b/README.gz --- !mtime obj /usr/bin/mmv --- !empty dir /usr/share/man/man1 --- !empty dir /usr/share/man --- !empty dir /usr/share/doc/mmv-1.01b --- !empty dir /usr/share/doc --- !empty dir /usr/share --- !empty dir /usr/bin --- !empty dir /usr --- !targe sym /usr/share/man/man1/mln.1.gz --- !targe sym /usr/share/man/man1/mcp.1.gz --- !targe sym /usr/share/man/man1/mad.1.gz --- !targe sym /usr/bin/mln --- !targe sym /usr/bin/mcp --- !targe sym /usr/bin/mad >>> original instance of package unmerged safely. >>> Regenerating /etc/ld.so.cache... * Caching service dependencies... >>> app-misc/mmv-1.01b merged. >>> clean: No packages selected for removal. >>> Auto-cleaning packages ... >>> No outdated packages were found on your system. * GNU info directory index is up-to-date.
i modified the gcc-3.4 patch so this should be fixed now. thanks for the report!