-----BEGIN PGP SIGNED MESSAGE-----
Hash: RIPEMD160

tags +patch
thanks

Attached is a simple patch against 1.01b-12.1 to fix this problem -
including stdlib.h in mmv.c fixes the crash on amd64. A bunch of
warnings like these were getting printed during compile, but were going
ignored:

mmv.c:540: warning: implicit declaration of function ?getenv?
mmv.c:540: warning: assignment makes pointer from integer without a cast

Apparently this didn't matter on i386, but did matter on amd64.

I'll be doing a 7-day-delayed NMU of this, with only the attached patch
as the changes.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFC/X/lwO+u47cOQDsRA0fNAJwPFpgGPVkl/V7i4H3/592cCaMAHgCfSZPc
ls+mNjx5/V+/QtN3epR2S8U=
=/2xS
-----END PGP SIGNATURE-----
diff -u mmv-1.01b/mmv.c mmv-1.01b/mmv.c
--- mmv-1.01b/mmv.c
+++ mmv-1.01b/mmv.c
@@ -124,6 +124,7 @@
 #else
 /* for various flavors of UN*X */
 
+#include <stdlib.h>
 #include <sys/types.h>
 #include <sys/stat.h>
 #include <sys/file.h>
diff -u mmv-1.01b/debian/changelog mmv-1.01b/debian/changelog
--- mmv-1.01b/debian/changelog
+++ mmv-1.01b/debian/changelog
@@ -1,3 +1,11 @@
+mmv (1.01b-12.2) unstable; urgency=low
+
+  * NMU
+  * Fix segfault at startup on amd64 (and possibly other architectures)
+    due to implicit declaration of functions from stdlib.h.
+
+ -- Ari Pollak <[EMAIL PROTECTED]>  Sat, 13 Aug 2005 01:01:13 -0400
+
 mmv (1.01b-12.1) unstable; urgency=low
 
   * Non-Maintainer Upload (BSP 2005-08-06).

Reply via email to