Re: (fedora) query about munpack

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Sep 28, 2007 at 09:23:49AM +0200, Jacob (=Jouk) Jansen wrote:
> vikram wrote on 28-SEP-2007 08:54:18.34
> 
> >I have a script which needs munpack for mime types, but 'munpack' is not
> >there in fedora. If there's no rpm then is there any other alternative
> >command.
> 
> get it from
>  ftp://ftp.andrew.cmu.edu/pub/mpack/
> As I remember it compiles out-of-the box. I'm using it on my F7 systems.
> 

Not out of the box but it has to be patched. I got it from here:

https://lists.ubuntu.com/archives/ubuntu-bugs/2005-April/050844.html

but some minor differences were there: So my patch are:
---------------------------------------------------------

--- mpack-1.6/unixos.c	2003-07-22 02:24:05.000000000 +0530
+++ ./unixos.c	2007-09-28 15:00:38.000000000 +0530
@@ -38,10 +38,13 @@
 #define MAXHOSTNAMELEN 64
 #endif
 
+#ifndef errno
 extern int errno;
+#endif
+/*
 extern char *malloc();
 extern char *getenv();
-
+*/
 int overwrite_files = 0;
 int didchat;
---------------------------------------------------------
 
--- mpack-1.6/xmalloc.c	2003-07-22 02:05:31.000000000 +0530
+++ ./xmalloc.c	2007-09-28 15:01:03.000000000 +0530
@@ -24,7 +24,7 @@
  */
 #include <stdio.h>
 #include <string.h>
-extern char *malloc(), *realloc();
+/*extern char *malloc(), *realloc();*/
 
 char *xmalloc (int size)
 {


Thanks!
-- 
vikram...
         ||||||||
         ||||||||
^^'''''^^||root||^^^'''''''^^
        // \\   ))
       //(( \\// \\
      // /\\ ||   \\
     || / )) ((    \\
-- 
I fell asleep reading a dull book, and I dreamt that I was reading on,
so I woke up from sheer boredom.
-- 
 O
~|~
 =


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux