Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

uudecode for Red Hat 9.0?

0 views
Skip to first unread message

Timo

unread,
Dec 30, 2003, 5:45:38 PM12/30/03
to
Where can I find uudecode for Red Hat 9.0? I did some googling, and
found that it is/was in sharutils, but I couldn't find sharutils
anywhere
from the installation disks of Red Hat 9.0 Personal.

More specifically, i use Pan newsreader to download a bunch of binary
files. They seem to be stored in /home/username/.pan/messages/cache
directory. In order to uudecode all binary files, is "uudecode *"
enough, or should I create some kind of shell script for looping
through all the files? Pan doesn't seem to uudecode the files to
binary automatically, such as Forte Free Agent (Windows app) does. Any
info on some utililties which do this?

Timo

steph

unread,
Dec 30, 2003, 6:00:05 PM12/30/03
to
On Tue, 30 Dec 2003 14:45:38 -0800, Timo wrote:

> through all the files? Pan doesn't seem to uudecode the files to
> binary automatically, such as Forte Free Agent (Windows app) does. Any
> info on some utililties which do this?

The version of Pan I'm using 0.14.2 supports uudecoding and yuudecoding
too (In fact even mozilla newsreader supports uudecoding). Use "Save
Attachment" or "Save Attachment As" to decode and save an uuencoded
message under Pan.

nolo

unread,
Dec 30, 2003, 6:51:24 PM12/30/03
to

I haven't had a problem with automatically decoding uuencded binaries with
pan either

Timo

unread,
Dec 31, 2003, 4:10:49 AM12/31/03
to

I have Pan version 0.13.3. The way I like to download binaries is first
to flag them to be downloaded with Articles/Flag 'J', then use Articles/
Download flagged to download all of them. I'd like that Pan also uudecodes
them automatically. I guess I have to update to latest version.

Back to my original question, where can I find uudecode for red hat 9.0?
I did some googling but couldn't find that (maybe I am just poor at using
google? ;))

I guess this application is plain ANSI-C, so source code of almost
any console based uudecode will compile and work in red hat?

Timo

Timo

unread,
Dec 31, 2003, 4:27:18 AM12/31/03
to
On Wed, 31 Dec 2003 11:10:49 +0200, Timo wrote:

> Back to my original question, where can I find uudecode for red hat 9.0?
> I did some googling but couldn't find that (maybe I am just poor at using
> google? ;))

I found some uudecode.c files by doing FTP search:
http://www.alltheweb.com/search?ftype=4&cs=utf-8&cat=ftp&q=uudecode.c&avkw=fogg&o=0

Unfortunately, all of them seem to be Net/FreeBSD sources, and they don't
compile on Red Hat Linux. Any help here?

Timo

ynotssor

unread,
Dec 31, 2003, 4:33:46 AM12/31/03
to
"Timo" <t_i_m_...@yahoo.com> wrote in message
news:pan.2003.12.31....@yahoo.com

>> Back to my original question, where can I find uudecode for red hat
>> 9.0?
>> I did some googling but couldn't find that (maybe I am just poor at
>> using google? ;))
>
> I found some uudecode.c files by doing FTP search:

> Unfortunately, all of them seem to be Net/FreeBSD sources, and they
> don't compile on Red Hat Linux. Any help here?

http://rpmfind.net/linux/rpm2html/search.php?query=uudecode&system=redhat

--
use hotmail for any email replies


-----= Posted via Newsfeeds.Com, Uncensored Usenet News =-----
http://www.newsfeeds.com - The #1 Newsgroup Service in the World!
-----== Over 100,000 Newsgroups - 19 Different Servers! =-----

P.T. Breuer

unread,
Dec 31, 2003, 6:30:28 AM12/31/03
to

Then they're unix, and they should compile fine ...

betty:/usr/oboe/ptb% gcc uudecode.c
uudecode.c:46: parse error before string constant
uudecode.c:46: warning: data definition has no type or storage class
uudecode.c: In function `decode2':
uudecode.c:216: warning: assignment makes pointer from integer
without a cast

Oh - that's a silly identifier.

__FBSDID("$FreeBSD: src/usr.bin/uudecode/uudecode.c,v 1.49 2003/05/03 19:44:46 obrien Exp $");

Comment it out.


% gcc uudecode.c
uudecode.c: In function `decode2':
uudecode.c:216: warning: assignment makes pointer from integer without a cast
/tmp/ccXtLHVa.o: In function `decode2':
/tmp/ccXtLHVa.o(.text+0x458): undefined reference to `setmode'
/tmp/ccXtLHVa.o(.text+0x492): undefined reference to `getmode'
/tmp/ccXtLHVa.o(.text+0x683): undefined reference to `warnc'
/tmp/ccXtLHVa.o(.text+0x72a): undefined reference to `warnc'
/tmp/ccXtLHVa.o(.text+0x764): undefined reference to `warnc'
/tmp/ccXtLHVa.o: In function `base64_decode':
/tmp/ccXtLHVa.o(.text+0xeb7): undefined reference to `__b64_pton'
collect2: ld returned 1 exit status

Nothing much. It expects to be linked against some library. A quick
grep through my library symbols in /usr/lib comes up with

betty:/usr/oboe/ptb% strings --print-file-name /usr/lib/*.a | grep setmode
/usr/lib/libvga.a: vga_setmode
/usr/lib/libvga.a: vga_setmodeX
/usr/lib/libvga.a: vga_setmode
/usr/lib/libvga.a: vga_setmodeX
/usr/lib/libvga.a: vga_setmode
/usr/lib/libvga.a: setmode
/usr/lib/libvga.a: et4000_setmode
...

so let's try -lvga, though this seems silly! The code expects setmode
to return a void * which itthen uses as a handle in all subsequent ops.
I would suspect it's a file manipulation library. It's called as

handle = setmode(p)

where p is a buffer ... containing the "mode" in a uuencoded file.
Heck, why should we care. Let's just ignore the mode. Comment it all
out. Set mode to 0644 like always.

betty:/usr/oboe/ptb% gcc uudecode.c
/tmp/cclqqFpS.o: In function `decode2':
/tmp/cclqqFpS.o(.text+0x623): undefined reference to `warnc'
/tmp/cclqqFpS.o(.text+0x6ca): undefined reference to `warnc'
/tmp/cclqqFpS.o(.text+0x704): undefined reference to `warnc'
/tmp/cclqqFpS.o: In function `base64_decode':
/tmp/cclqqFpS.o(.text+0xe57): undefined reference to `__b64_pton'
collect2: ld returned 1 exit status

Oh, that's a warning message. Try something like

#define warnc(a, b, c...) { errno = a; warn(b " (%p)", c); }


betty:/usr/oboe/ptb% gcc uudecode.c
/tmp/ccWDzwvk.o: In function `base64_decode':
/tmp/ccWDzwvk.o(.text+0xe57): undefined reference to `__b64_pton'
collect2: ld returned 1 exit status

Hmm ...
n = b64_pton(inbuf, outbuf, sizeof(outbuf));
if (n < 0) break;

Oh - the bad news is that this code desn't conatin the actual routine
that does the translation of 4 words of 6-bit ascii input to 3 bytes
of binary output! Look for more source elsewhere on the site.


But why are you doing all this? uudecode and uudecode is a perfectly
normal part of linux!

sharutils: /usr/bin/uudecode
sharutils: /usr/man/man1/uudecode.1.gz

Peter


> Timo
>

--
---------------------------------------------------------------------
Peter T. Breuer MA CASM PhD. Ing., Prof. Ramon & Cajal
Area de Ingenieria Telematica E-mail: p...@it.uc3m.es
Dpto. Ingenieria Tel: +34 91 624 91 80
Universidad Carlos III de Madrid Fax: +34 91 624 94 30/65
Butarque 15, E-28911 Leganes URL: http://www.it.uc3m.es/~ptb
Spain

Timo

unread,
Dec 31, 2003, 11:55:51 AM12/31/03
to
On Wed, 31 Dec 2003 11:30:28 +0000, P.T. Breuer wrote:

> But why are you doing all this? uudecode and uudecode is a perfectly
> normal part of linux!
>
> sharutils: /usr/bin/uudecode
> sharutils: /usr/man/man1/uudecode.1.gz

I don't have sharutils on my Red Hat installed, and couldn't
find it from installation CDs.

Timo

Timo

unread,
Dec 31, 2003, 11:57:45 AM12/31/03
to
On Wed, 31 Dec 2003 01:33:46 -0800, ynotssor wrote:

>
> http://rpmfind.net/linux/rpm2html/search.php?query=uudecode&system=redhat

Thanks, that did it. Shartutils installed OK, and I was able
to uudecode all the files simply by command "uudecode *.msg"
in Pan message cache folder.

Timo

0 new messages