LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

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

Rep: Reputation: Disabled
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
 
Old 11-16-2012, 06:07 AM   #2
andrew.46
Member
 
Registered: Oct 2007
Distribution: Slackware
Posts: 646

Rep: Reputation: 90
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, 22 views)
 
Old 11-17-2012, 09:57 PM   #3
cbastos
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 / */
#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
 
Old 11-17-2012, 10:09 PM   #4
andrew.46
Member
 
Registered: Oct 2007
Distribution: Slackware
Posts: 646

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


Reply


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-26-2009 11:12 PM
issue with procmail recipe and external script nexus55 Linux - Server 1 05-27-2008 09:24 AM
gftp issue after procmail install swamprat Linux - Software 1 08-11-2007 03:51 AM
Problem with mail delivery procmail>cyrus imap (using sendmail,procmail,cyrus,imap) bwana Linux - Software 2 03-24-2005 07:01 PM
funky courier / procmail issue burnitall Linux - Software 0 03-24-2004 07:43 PM


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

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