Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Slackware This Forum is for the discussion of Slackware Linux.


  Search this Thread
Old 11-14-2012, 11:19 PM   #1
LQ Newbie
Registered: Jul 2012
Posts: 8

Rep: Reputation: Disabled
issue recompiling procmail


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"

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 -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
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?

Old 11-16-2012, 07:07 AM   #2
Registered: Oct 2007
Distribution: Slackware
Posts: 710

Rep: Reputation: 109Reputation: 109
This patch courtesy of our Gentoo colleagues seems to allow recompilation. Drop the .txt of course...
Attached Files
File Type: txt procmail_getmail.diff.txt (2.9 KB, 50 views)
Old 11-17-2012, 10:57 PM   #3
LQ Newbie
Registered: Jul 2012
Posts: 8

Original Poster
Rep: Reputation: Disabled
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 / */
-#define MAILSPOOLSUFFIX "" /* suffix to force maildir or MH style */
+#define MAILSPOOLSUFFIX "/" /* suffix to force maildir or MH style */
#define MAILSPOOLHASH 0 /* 2 would deliver to /var/mail/b/a/bar */

Old 11-17-2012, 11:09 PM   #4
Registered: Oct 2007
Distribution: Slackware
Posts: 710

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


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
PROCMAIL+POSTFIX - Vacation Mail issue arjuns8471 Linux - Newbie 4 02-27-2009 12:12 AM
issue with procmail recipe and external script nexus55 Linux - Server 1 05-27-2008 10:24 AM
gftp issue after procmail install swamprat Linux - Software 1 08-11-2007 04:51 AM
Problem with mail delivery procmail>cyrus imap (using sendmail,procmail,cyrus,imap) bwana Linux - Software 2 03-24-2005 08:01 PM
funky courier / procmail issue burnitall Linux - Software 0 03-24-2004 08:43 PM

All times are GMT -5. The time now is 06:18 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration