bug-mailutils
[Top][All Lists]
Advanced

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

Re: Interrupt handling in mail


From: Sergey Poznyakoff
Subject: Re: Interrupt handling in mail
Date: Wed, 04 Jul 2001 02:10:15 +0300

Bonjour,

> # ./mail
> can't open `/usr/local/mailutils/etc/mail.rc': No such file or directory
> mail (mailutils) 0.0.9, Copyright (C) 2001 Free Software Foundation, Inc.
> mail comes with ABSOLUTELY NO WARRANTY; for details type
> 'warranty'. This is free software, and you are welcome to
> redistribute it under certain conditions; type 'copying'
> for details.
> >O   1 Alain Magloire     Sun Nov 14 03:00  56/1228  hello
>  O   2 Alexandre Oliva    Sun Jul  6 22:46  73/3481  Re: grep-2.4.2

:^)) Nice to hear about Alexandre. He helped me a lot with testing Radius!

> ...
> ? f *
> ...
> ^C    <---- hit ctrl-C to stop the flow of headers
> #
> 
> In theory(I maybe wrong) but hitting ctrl-c i.e. raising SIGINT
> will drop me back to the mainloop, not out of the program.

Sure, I see the point now. It seems I wasn't testing the stuff against
a big enough mailbox. I'll do it now.

> # cat l.c
> #include <stdio.h>
> #include <readline/readline.h>
> int
> main()
> {
>   printf("%s\n", rl_library_version);
> }
> # gcc -o l l.c
> /tmp/ccacKwzY.o: In function `main':
> /tmp/ccacKwzY.o(.text+0xa): undefined reference to `rl_library_version'
> collect2: ld returned 1 exit status
> 
> hum ... not good 8-).

Oops! But there is something strange about it: if collect2 returned
error, it means that the declaration for rl_library_version *was
present* in readline.h at compile time, but was absent when loading
the library, i.e. the headers disagree with library. Possibly you have
forgotten -lreadline:

          gcc -o l l.c -lreadline

What do you think?

> I will upgrade to readline-4.1.  Maybe all those things I'm
> seeing is due to readline-3.x that I'm using by default.
> If that is the case we can use your code snippet above to make
> readline 3.x and above a prerequisite and disable readline for
> anything older.

Yes, but anyway, I'll experiment more.

> BTW, did you try with readline disable?
Yes, on my boxes (Solaris and GNU/Linux) it seems OK. And on yours?

-Sergey




reply via email to

[Prev in Thread] Current Thread [Next in Thread]