Subject: Problem with compilation of patched sources (v4.33, Sun Solaris 2.8)

From: Murphy <[email-masked]>
Date: Thu, 13 Sep 2001 12:00:04 +0200 (MEST)

Hi,

I wanted to upgrade my version of pine about some useful patches, but
unfortunately I got a error message during compilation like this:
> ./build gs5
(cut)
Making Pine.
make CC=gcc -f makefile.gs5
gcc   -g -DDEBUG   -DSV4 -DSYSTYPE=\"GSO\" -DMOUSE   -c -o mailcmd.o
mailcmd.c
mailcmd.c: In function `save_prompt':
mailcmd.c:2138: `V_SAVE_RULES' undeclared (first use in this function)
mailcmd.c:2138: (Each undeclared identifier is reported only once
mailcmd.c:2138: for each function it appears in.)
mailcmd.c: In function `do_broach_folder':
mailcmd.c:5747: `V_SORT_RULES' undeclared (first use in this function)
mailcmd.c:5777: `V_STARTUP_RULES' undeclared (first use in this
function)
make: *** [mailcmd.o] Error 1
(cut)

I added patches for:

  curcolor_patch.gz
  fillpara_patch.gz
  flags_patch.gz
  fromheader_patch.gz
  incoming_patch.gz
  reply_patch.gz
  rules_patch.gz

And also files:

  rules_c.gz
  rules_h.gz

What I should change to make this compilation work?

Regards,
Murphy

-- 
  __   __
  ||   ||
 -++- -++- --------------------------------------------------------
  ||\ /||  e-mail:                     [email-masked]
  ||   ||
  ||   ||  Everything is possible - this is only a question of time
  \/   \/  --------------------------------------------------------
    564

-- 
-----------------------------------------------------------------
 For information about this mailing list, and its archives, see: 
 http://www.washington.edu/pine/pine-info/
-----------------------------------------------------------------

---

From: Eduardo Chappa <[email-masked]>
Date: Thu, 13 Sep 2001 08:36:16 -0700 (PDT)

*** Murphy ([email-masked]) wrote in the pine-info list today:

:) I wanted to upgrade my version of pine about some useful patches, but
:) unfortunately I got a error message during compilation like this:
[deleted]

The problem must be on the application of the patches. The patches are
supposed to be applied on clean source and sometimes the application of
two or more patches conflicts and that may make the application of the
patch fail and create this kind of problems. I'll give you a patch that
will fix your problems.

-- 
Eduardo
http://www.math.washington.edu/~chappa/pine/

---

From: Murphy <[email-masked]>
Date: Thu, 13 Sep 2001 17:45:39 +0200 (MEST)

>patch fail and create this kind of problems. I'll give you a patch that

Actually I found the problem during elimination of other patches. The
problem occur when I'm trying to add a "rules_path". For this patch
there is also needed two files:

	rules.c
	rules.h

which I copy to the pine4.33/pine directory. But during patching I got
error like this:

patch -p0 < rules_patch

patching file pine4.33/build
patching file pine4.33/pine/init.c
Hunk #1 succeeded at 209 with fuzz 2 (offset 5 lines).
Hunk #2 FAILED at 479.
Hunk #3 FAILED at 1509.
Hunk #4 succeeded at 2386 (offset 17 lines).
2 out of 4 hunks FAILED -- saving rejects to file pine4.33/pine/init.c.rej
patching file pine4.33/pine/mailcmd.c
Hunk #2 succeeded at 115 with fuzz 2.
Hunk #3 succeeded at 2121 (offset 139 lines).
Hunk #5 succeeded at 2950 (offset 139 lines).
Hunk #7 succeeded at 5193 (offset 148 lines).
Hunk #9 succeeded at 5753 with fuzz 2 (offset 159 lines).
Hunk #10 FAILED at 5779.
Hunk #11 succeeded at 5659 (offset 7 lines).
Hunk #12 succeeded at 5829 (offset 159 lines).
Hunk #13 FAILED at 5941.
Hunk #14 succeeded at 5939 (offset 22 lines).
Hunk #15 succeeded at 6504 with fuzz 2 (offset 55 lines).
Hunk #16 FAILED at 6538.
Hunk #17 FAILED at 6546.
4 out of 17 hunks FAILED -- saving rejects to file pine4.33/pine/mailcmd.c.rej
patching file pine4.33/pine/mailindx.c
Hunk #2 succeeded at 575 (offset 32 lines).
Hunk #3 succeeded at 2097 (offset 16 lines).
Hunk #4 succeeded at 2130 (offset 32 lines).
Hunk #5 succeeded at 2135 (offset 16 lines).
Hunk #6 succeeded at 2159 (offset 32 lines).
Hunk #7 succeeded at 3147 (offset 16 lines).
Hunk #8 succeeded at 3482 (offset 67 lines).
Hunk #9 succeeded at 3463 (offset 16 lines).
Hunk #10 succeeded at 3690 (offset 67 lines).
Hunk #11 succeeded at 3656 (offset 16 lines).
Hunk #12 succeeded at 5373 (offset 107 lines).
Hunk #13 succeeded at 5331 (offset 16 lines).
patching file pine4.33/pine/makefile.a32
patching file pine4.33/pine/makefile.a41
patching file pine4.33/pine/makefile.aix
patching file pine4.33/pine/makefile.aux
patching file pine4.33/pine/makefile.bs2
patching file pine4.33/pine/makefile.bsd
patching file pine4.33/pine/makefile.bsf
patching file pine4.33/pine/makefile.bsi
patching file pine4.33/pine/makefile.bso
patching file pine4.33/pine/makefile.cvx
patching file pine4.33/pine/makefile.d-g
patching file pine4.33/pine/makefile.dpx
patching file pine4.33/pine/makefile.dyn
patching file pine4.33/pine/makefile.epx
patching file pine4.33/pine/makefile.gen
patching file pine4.33/pine/makefile.gh9
patching file pine4.33/pine/makefile.ghp
patching file pine4.33/pine/makefile.gs4
patching file pine4.33/pine/makefile.gs5
patching file pine4.33/pine/makefile.gsu
patching file pine4.33/pine/makefile.gul
patching file pine4.33/pine/makefile.hpp
patching file pine4.33/pine/makefile.hpx
patching file pine4.33/pine/makefile.isc
patching file pine4.33/pine/makefile.lnx
patching file pine4.33/pine/makefile.lyn
patching file pine4.33/pine/makefile.mct
patching file pine4.33/pine/makefile.mnt
patching file pine4.33/pine/makefile.msc
patching file pine4.33/pine/makefile.neb
patching file pine4.33/pine/makefile.nxt
patching file pine4.33/pine/makefile.osf
patching file pine4.33/pine/makefile.pt1
patching file pine4.33/pine/makefile.ptx
patching file pine4.33/pine/makefile.s40
patching file pine4.33/pine/makefile.sc5
patching file pine4.33/pine/makefile.sco
patching file pine4.33/pine/makefile.sgi
patching file pine4.33/pine/makefile.so4
patching file pine4.33/pine/makefile.so5
patching file pine4.33/pine/makefile.sun
patching file pine4.33/pine/makefile.sv4
patching file pine4.33/pine/makefile.ult
patching file pine4.33/pine/makefile.uw2
patching file pine4.33/pine/makefile.vul
patching file pine4.33/pine/other.c
Hunk #1 FAILED at 6731.
1 out of 1 hunk FAILED -- saving rejects to file pine4.33/pine/other.c.rej
patching file pine4.33/pine/pine.c
Hunk #1 succeeded at 256 (offset 6 lines).
Hunk #2 succeeded at 2829 (offset 3 lines).
patching file pine4.33/pine/pine.h
Hunk #1 FAILED at 439.
Hunk #2 FAILED at 660.
Hunk #3 succeeded at 926 (offset 19 lines).
Hunk #4 succeeded at 1660 (offset 24 lines).
Hunk #5 succeeded at 1672 (offset 19 lines).
Hunk #6 succeeded at 2622 (offset 25 lines).
Hunk #7 succeeded at 2661 (offset 19 lines).
2 out of 7 hunks FAILED -- saving rejects to file pine4.33/pine/pine.h.rej
patching file pine4.33/pine/pine.hlp
Hunk #2 succeeded at 11985 (offset 1 line).
Hunk #4 succeeded at 12297 (offset 1 line).
Hunk #6 succeeded at 14519 (offset 74 lines).
Hunk #7 succeeded at 19047 (offset 65 lines).
patching file pine4.33/pine/reply.c
Hunk #1 succeeded at 302 (offset 3 lines).
Hunk #3 succeeded at 378 with fuzz 2 (offset 20 lines).
Hunk #4 succeeded at 1539 (offset 1 line).
Hunk #5 succeeded at 1633 (offset 20 lines).
Hunk #6 succeeded at 2655 (offset 88 lines).
Hunk #7 succeeded at 2771 (offset 20 lines).
Hunk #8 succeeded at 3083 (offset 88 lines).
Hunk #9 succeeded at 3030 (offset 20 lines).
Hunk #10 succeeded at 3312 (offset 88 lines).
patching file pine4.33/pine/send.c
Hunk #1 succeeded at 6080 (offset 10 lines).

Sombody tryed to patch PINE 4.33 using this patch?

Regards,
Murphy