procmail
[Top] [All Lists]

[Fwd: Cygwin procmail binary package and patch (was Re: build problems withprocmail-3.22)]

2002-12-11 21:16:47


--
S.Shashikanth
ODA,Lucent Development Centre
Ph: 1 630 224 9760 x221
http://ihgpweb.ih.lucent.com/~sshashi


--- Begin Message ---
Jason,
     Thanks for your immedite reply. I'm bit of layman  when it comes to
procmail .
     I'm attaching my out file when I tried to do a make .

    my procmail directory structure is
                    /home/sshashi/procmail-3.22/procmail/src

       so do I get into /src and then give the patch command??

        I ran the command from  /home/sshashi/procmail-3.22/procmail  and I
got the following error


               19:16  procmail> patch -p1 </tmp/procmail.patch

                 Looks like a unified context diff.
               File to patch: Makefile
                 The next patch looks like a unified context
               diff.
                 The next patch looks like a unified context
               diff.
               Hunk #1 failed at line 137.
               1 out of 1 hunks failed: saving rejects to
               Makefile.rej
                 The next patch looks like a unified context
               diff.
                 The next patch looks like a unified context
               diff.
                 The next patch looks like a unified context
               diff.
                 The next patch looks like a unified context
               diff.
               Hunk #1 failed at line 51.
               1 out of 1 hunks failed: saving rejects to
               Makefile.rej
               done




  I have attached makefile.rej for your reference .

  Sorry for taking much of your time .


 Thanks,
Shashi









Jason Tishler wrote:

Shashi,

On Wed, Dec 11, 2002 at 03:03:24PM -0500, Shashikanth wrote:
I tried building procmail-3.22 on the following machines
    cygwin - Redhat's Cygwin 1.3.6 or later on Windows 95 or NT

Why don't you use the pre-built procmail 3.22 that is part of the
standard Cygwin distribution?

    http://cygwin.com/ml/cygwin-announce/2002-08/msg00018.html

If you would like to build procmail under Cygwin yourself, then use the
following procedure:

    $ # save attached patch to /tmp/procmail.patch
    $ # change directory to top of procmail source tree
    $ patch -p1 </tmp/procmail.patch
    $ make EXE=.exe LOCKINGTEST=100
    $ make BASENAME=/usr/local EXE=.exe install

Jason

--
PGP/GPG Key: http://www.tishler.net/jason/pubkey.asc or key servers
Fingerprint: 7A73 1405 7F2B E669 C19D  8784 1AFD E4CC ECF4 8EF6

  ------------------------------------------------------------------------
                     Name: procmail.patch
   procmail.patch    Type: Plain Text (text/plain)
                 Encoding: 7BIT

--
S.Shashikanth
ODA,Lucent Development Centre
Ph: 1 630 224 9760 x221
http://ihgpweb.ih.lucent.com/~sshashi


Determining changed paths
POSTing to http://exptools.web.lucent.com:8665/expmake/changedPaths?procmailsrc
Determining length of updates
POSTing to 
http://exptools.web.lucent.com:8665/expmake/batchUpdate/cygwin?procmailsrc
+ echo 16529
+ 1> /usr/expsources/build/procmailsrc/.expmake.lock.cygwin
Sending procmailsrc to cygwin make machine
+ cd /usr/expsources/build/procmailsrc
Determining changed paths
POSTing to http://expnove.ih.lucent.com:8666/changedPaths?procmailsrc
Determining length of updates
POSTing to http://expnove.ih.lucent.com:8666/batchUpdate/cygwin?procmailsrc
+ echo 1996
+ 1> /home/expmake/build/procmailsrc/.expmake.lock
+ TOOLS=/opt/exp
+ 
PATH=/bin:/usr/bin:/usr/local/bin:/opt/exp/bin:/opt/exp/gnu/bin:/opt/exp/adm/bin:.
+ date
Wed Dec 11 06:45:19  2002
CYGWIN_NT-5.0 EXPNOVE 1.3.13(0.62/3/2) 2002-10-13 23:15 i686
+ uname -a
+ cd /home/expmake/build/procmailsrc
+ /bin/pwd
+ REALPWD=/home/expmake/build/procmailsrc
+ df -k / /tmp /usr/tmp /home/expmake/build/procmailsrc
+ 2> /dev/null
Filesystem           1k-blocks      Used Available Use% Mounted on
C:\cygwin              4192933   3180623   1012310  76% /
C:\cygwin              4192933   3180623   1012310  76% /
C:\cygwin              4192933   3180623   1012310  76% /
C:\cygwin              4192933   3180623   1012310  76% /
+ nice make SHELL=/opt/exp/adm/bin/ksh TYPE=cygwin EXEEXT=.exe ANSICC="gcc" 
procmailcpiogz\c
 \
   DEFAULT_PREFIX=/opt/exp////////////////////////////////////////////////////
+ pwd
+ HERE=/home/expmake/build/procmailsrc
+ OUT=/home/expmake/build/procmailsrc/ins
+ cd procmail
+ CC=gcc
+ export CC
+ : machine-type-specific things go in a case statement here
+ mkdir -p /home/expmake/build/procmailsrc/ins/cygwin/lib/procmail/bin 
/home/expmake/build/procmailsrc/ins/share/lib/procmail/man/man1 
/home/expmake/build/procmailsrc/ins/share/lib/procmail/man/man5
+ 2> /dev/null
+ make BASENAME=/opt/exp/lib/procmail all
make[1]: Entering directory `/home/expmake/build/procmailsrc/procmail'
cd src; make ../autoconf.h
make[2]: Entering directory `/home/expmake/build/procmailsrc/procmail/src'
/opt/exp/adm/bin/ksh ./autoconf /opt/exp/adm/bin/ksh "/bin/rm -f" "mv -f" 
/dev/null \
 "fgrep" "make" o "__defaults__" \
 "/usr/bin" ../autoconf.h
==============================================================================
In order for the kernel-locking tests to work as intended I have to be able to
test-lock files on as many semantically different filesystems as possible (for
more information about this, READ PARAGRAPH TWO in INSTALL).  To suppress this
prompt you can set the LOCKINGTEST variable in the Makefile.

Please add writable directories to the list.  You should only add directories
that reside on filesystems that have unique characteristics.  E.g. if you have
several remote NFS partitions, pick some unique client-server pairs, there is
little use in picking the same server twice from the same client-machine.
An excellent candidate would be a remotely mounted mail spool directory.
==============================================================================


I will temporarily use a testdirectory named _locktest
in the following directories:

/tmp .

If you would like to add any, please specify them below,
press return to continue:

Initiating fcntl()/kernel-locking-support tests
Whoeaaa!  There's something fishy going on here.
You have a look and see if you detect anything uncanny:
*******************************************************
make[3]: Entering directory `/home/expmake/build/procmailsrc/procmail/src'
gcc -c -O   _autotst.c
gcc -O   _autotst.o -o _autotst -s   -lm -lc -ldl
/usr/lib/gcc-lib/i686-pc-cygwin/3.2/../../../../i686-pc-cygwin/bin/ld: cannot 
find -ldl
collect2: ld returned 1 exit status
make[3]: *** [_autotst] Error 1
make[3]: Leaving directory `/home/expmake/build/procmailsrc/procmail/src'
*******************************************************
I suggest you take a look at the definition of LDFLAGS*
in the Makefile before you try make again.
make[2]: *** [../autoconf.h] Error 1
make[2]: Leaving directory `/home/expmake/build/procmailsrc/procmail/src'
make[1]: *** [autoconf.h] Error 2
make[1]: Leaving directory `/home/expmake/build/procmailsrc/procmail'
make: *** [dobuild] Error 2
+ rm -f /home/expmake/build/procmailsrc/.expmake.lock
+ rm -f /usr/expsources/build/procmailsrc/.expmake.lock.cygwin
+ date
Wed Dec 11 07:44:44 EST 2002
***************
*** 137,143 ****
   * Only edit below this line if you *think* you know what you are doing *
   ************************************************************************/
  
  #define ROOT_uid      0
  #define LDENV         {"LD_","_RLD","LIBPATH=","ELF_LD_","AOUT_LD_",0}
  
  #define UPDATE_MASK   S_IXOTH    /* bit set on mailboxes when mail arrived */
--- 137,148 ----
   * Only edit below this line if you *think* you know what you are doing *
   ************************************************************************/
  
+ #ifdef __CYGWIN__
+ #define ROOT_uid      18
+ #else /* !__CYGWIN__ */
  #define ROOT_uid      0
+ #endif /* __CYGWIN__ */
+ 
  #define LDENV         {"LD_","_RLD","LIBPATH=","ELF_LD_","AOUT_LD_",0}
  
  #define UPDATE_MASK   S_IXOTH    /* bit set on mailboxes when mail arrived */
***************
*** 51,56 ****
  #include <time.h>             /* time() ctime() time_t */
  #include <fcntl.h>            /* fcntl() struct flock O_RDONLY O_WRONLY
                                /* O_APPEND O_CREAT O_EXCL */
  #include <grp.h>              /* getgrgid() struct group */
  #include <pwd.h>              /* getpwuid() getpwnam() struct passwd */
  #ifndef DIRENT_H_MISSING
--- 51,60 ----
  #include <time.h>             /* time() ctime() time_t */
  #include <fcntl.h>            /* fcntl() struct flock O_RDONLY O_WRONLY
                                /* O_APPEND O_CREAT O_EXCL */
+ #ifndef O_TEXT
+ #define O_TEXT 0
+ #endif
+ 
  #include <grp.h>              /* getgrgid() struct group */
  #include <pwd.h>              /* getpwuid() getpwnam() struct passwd */
  #ifndef DIRENT_H_MISSING

--- End Message ---