LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (http://www.linuxquestions.org/questions/slackware-14/)
-   -   issue recompiling procmail (http://www.linuxquestions.org/questions/slackware-14/issue-recompiling-procmail-4175437206/)

cbastos 11-14-2012 11:19 PM

issue recompiling procmail
 
Hi.

I need to recompile the Procmail package so as to get it delivering to a maildir as default.

I have done it on Slackware 12.2.0 without any trouble, Now i need to do the same with Slackware 13.37.0 64bit. I downloaded the sources and before doing any change I tried to compile it using the provided slackbuild.

It starts fine but all of a suddem it stops complainning about conflicting types of "getline"

[snip]
cc -O -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 procmail.o cstdio.o common.o exopen.o goodies.o locking.o mailfold.o foldinfo.o misc.o pipes.o regexp.o robust.o sublib.o acommon.o mcommon.o lastdirsep.o authenticate.o lmtp.o memblk.o variables.o from.o comsat.o -o procmail -s -lm -lnsl -ldl -lc
ln ../src/procmail ../new/procmail
cc -c -O -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 lockfile.c
cc -O -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 lockfile.o exopen.o sublib.o acommon.o mcommon.o authenticate.o lastdirsep.o -o lockfile -s -lm -lnsl -ldl -lc
ln ../src/lockfile ../new/lockfile
cc -c -O -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 formail.c
In file included from formail.c:25:0:
formisc.h:20:2: error: conflicting types for 'getline'
/usr/include/stdio.h:671:20: note: previous declaration of 'getline' was here
make[1]: *** [formail.o] Error 1
make[1]: Leaving directory `/tmp/procmail-3.22/src'
make: *** [bins] Error 2

Please, how can I fix or circumvent this issue?

Regards,
Carlos

andrew.46 11-16-2012 07:07 AM

1 Attachment(s)
This patch courtesy of our Gentoo colleagues seems to allow recompilation. Drop the .txt of course...

cbastos 11-17-2012 10:57 PM

Tank you very much.

Just in case someone wants to get the benefits of maildir, here is the patch I use that makes procmail delivery to maildir as default option.


--- procmail-3.22.orig/src/authenticate.c 2009-03-31 13:05:36.717794563 -0300
+++ procmail-3.22/src/authenticate.c 2009-03-31 13:07:05.196597000 -0300
@@ -42,7 +42,7 @@
#define MAILSPOOLDIR "/var/mail/" /* watch the trailing / */
#endif
#ifndef MAILSPOOLSUFFIX
-#define MAILSPOOLSUFFIX "" /* suffix to force maildir or MH style */
+#define MAILSPOOLSUFFIX "/" /* suffix to force maildir or MH style */
#endif
#ifndef MAILSPOOLHASH
#define MAILSPOOLHASH 0 /* 2 would deliver to /var/mail/b/a/bar */

Regards,
Carlos

andrew.46 11-17-2012 11:09 PM

PV should be on holidays but perhaps the gentoo patch would be useful when development restarts later...


All times are GMT -5. The time now is 09:36 AM.