Re: [Evolution-hackers] Help With Printf (or anything) in mail-callbacks.c
- From: Not Zed <notzed ximian com>
- To: Danny Cox <Danny Cox ECWeb com>
- Cc: evolution-hackers lists ximian com
- Subject: Re: [Evolution-hackers] Help With Printf (or anything) in mail-callbacks.c
- Date: Wed, 24 Mar 2004 01:17:29 +0800
did you make install on the code after your changes?
sounds like it might be running the system library instead.
you hsould be able to find which libevolution-mail.so its using from
inside gdb ('info libraries' perhaps?) once you load it in.
On Fri, 2004-03-19 at 15:28 -0500, Danny Cox wrote:
> Hi, all,
>
> I've just gotten evo 1.4.5 to compile and run on my system (yes, I'm
> aware of 1.4.6, I'm ignoring it for right now).
>
> I'm attempting to add another check just under the empty subject check
> in composer_get_message(). I have a very bad habit of composing an
> email, MENTIONING the fact that I've attached something, and then
> failing to actually attach anything.
>
> I see what I need to do, and have the code in place, which compiles.
> Of course, it doesn't work :-(.
>
> The problem is that I can't use any of the following to actually SEE
> what's happening: printf, fprintf(stderr, g_warning, g_print, or write.
> In my lowest-level bag of tricks, I thought the following code would
> always work:
>
> {
> int fd = open ("/tmp/log", O_WRONLY|O_CREAT|O_APPEND, 0666);
> if (fd > 0) {
> write (fd, "entering foo\n", 13);
> close (fd);
> }
> }
>
> But, the file is never created! I cut-n-paste that code to a simple
> program, add the necessary include files, and it works! What is special
> about composer_send_cb() and friends that prevents open() and all these
> others from working?
>
> Okay, I know it's probably something simple or silly on my part, but
> I've struggled most of today on this.
>
> Help!
>
> Please cc: to me directly, as I'm not subscribed, yet.
>
> Thanks greatly!
>
> --
> Daniel S. Cox
> Electronic Commerce Systems
>
> _______________________________________________
> evolution-hackers maillist - evolution-hackers lists ximian com
> http://lists.ximian.com/mailman/listinfo/evolution-hackers
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]