On Fri, Jun 24, 2005 at 04:02:48PM +0300, Sergey Poznyakoff wrote:
> Kostas Zorbadelos <[EMAIL PROTECTED]> wrote:
>
Hello Sergey
> > I recompiled and linked (dynamically) my program with the new
> > libraries (attached is the Makefile) and...magic! The fileinto action
> > worked OK.
>
> Wow:)
>
> > The behaviour is now OK. However this keeps us from discovering the
> > problem in the standard Debian packages. I will send you gdb traces
> > with the standard Debian libraries if that will help.
>
> Yes, please do.
>
I re-compiled my program with the standard Debian Sarge mailutils
libraries (attached Makefile). Here is the relevant gdb output, I hope it
helps. I would like to have a statically linked version of my program
but I seem to have trouble producing it with the command
gcc -static -g -ggdb -L/usr/lib -o testsieve testsieve.c -lmailbox -lmu_mbox
-lmu_maildir -lmu_mh -lsieve
I get various undefined symbols messages. Do you have any suggestion
as to how to construct the statically linked version?
=========== GDB output with the dynamically linked version ===============
[EMAIL PROTECTED](1)[06:37 PM]~/WorkingArea/trunk/mda>gdb testsieve
GNU gdb 6.3-debian
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "i386-linux"...Using host libthread_db library
"/lib/tls/libthread_db.so.1".
(gdb) break message_save_to_mailbox
Function "message_save_to_mailbox" not defined.
Make breakpoint pending on future shared library load? (y or [n])
(gdb) info breakpoints
No breakpoints or watchpoints.
(gdb) break message_save_to_mailbox
Function "message_save_to_mailbox" not defined.
Make breakpoint pending on future shared library load? (y or [n]) y
Breakpoint 1 (message_save_to_mailbox) pending.
(gdb) info breakpoints
Num Type Disp Enb Address What
1 breakpoint keep y <PENDING> message_save_to_mailbox
(gdb) run file://home/kzorba/Maildir/ filters.sieve
Starting program: /home/kzorba/WorkingArea/trunk/mda/testsieve
file://home/kzorba/Maildir/ filters.sieve
[Thread debugging using libthread_db enabled]
[New Thread 1075970176 (LWP 29440)]
Breakpoint 2 at 0x4003a1c3
Pending breakpoint "message_save_to_mailbox" resolved
Giannakis Eleftherios <[EMAIL PROTECTED]> google search tips
Christos KK Loverdos <[EMAIL PROTECTED]> MIT OpenCourseWare
Dimitris Paouris <[EMAIL PROTECTED]> yphresia relay.otenet.gr
"Papanikolaou Pandelis" <[EMAIL PROTECTED]> Weekly Meeting
"HR Bulletin" <[EMAIL PROTECTED]> =?iso-8859-7?B?yeH08fzyIMXx4+Hz3+Hy?=
Kostas Zorbadelos <[EMAIL PROTECTED]> Interesting link
Costas Tavernarakis <[EMAIL PROTECTED]> Re: Sendmail configs centralized...
Vassilis Boulogiorgos <[EMAIL PROTECTED]> Calendar + Access Manager Servers
issues
Sergey Poznyakoff <[EMAIL PROTECTED]> Re: [bug-mailutils] [Error] fileinto:
cannot save to mailbox: Function not implemented
[Switching to Thread 1075970176 (LWP 29440)]
Breakpoint 2, 0x4003a1c3 in message_save_to_mailbox () from
/usr/lib/libmailbox.so.0
(gdb) show args
Argument list to give program being debugged when it is started is
"file://home/kzorba/Maildir/ filters.sieve".
(gdb) s
Single stepping until exit from function message_save_to_mailbox,
which has no line number information.
0x400760ff in sieve_action_fileinto () from /usr/lib/libsieve.so.0
(gdb) s
Single stepping until exit from function sieve_action_fileinto,
which has no line number information.
fileinto: cannot save to mailbox: Function not implemented
0x400799a7 in instr_line () from /usr/lib/libsieve.so.0
(gdb) bt
#0 0x400799a7 in instr_line () from /usr/lib/libsieve.so.0
#1 0x40079a78 in instr_action () from /usr/lib/libsieve.so.0
#2 0x4007a097 in sieve_run () from /usr/lib/libsieve.so.0
#3 0x4007a2d6 in sieve_message () from /usr/lib/libsieve.so.0
#4 0x08048ef5 in main (argc=3, argv=0xbffff9d4) at testsieve.c:100
(gdb)
--
Kostas Zorbadelos
Systems Designer/Developer, Otenet SA
[EMAIL PROTECTED] contact: kzorba (at) otenet.gr
Out there in the darkness, out there in the night
out there in the starlight, one soul burns brighter
than a thousand suns.
CC = gcc
CCOPTS = -g -ggdb -Wl,-R /usr/lib
LIBS = -lmailbox -lmu_mbox -lmu_maildir -lmu_mh -lsieve
default: all
all: testsieve
testsieve: testsieve.c Makefile
$(CC) $(CCOPTS) -o testsieve $(LIBS) testsieve.c
require ["fileinto","redirect"];
if header :contains "from" "Sergey"
{
fileinto "test.sergey";
}
#elsif header :contains "cc" "ppapan"
# {
# fileinto "test.ppapan";
# }
#elsif header :contains "from" "Tavernarakis"
# {
# redirect "[EMAIL PROTECTED]";
# }
#else
# {
# keep;
# }
_______________________________________________
Bug-mailutils mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-mailutils