bug-mailutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Mailutils 3.12 Build Problem on Solaris


From: Sergey Poznyakoff
Subject: Re: Mailutils 3.12 Build Problem on Solaris
Date: Sun, 06 Jun 2021 20:54:28 +0200

Hi Neil,

> I see these messages before make gives up.
> 
>   mbox2dir.c: In function `mkhier':
>   mbox2dir.c:420: error: `O_DIRECTORY' undeclared (first use in this function)

Please try the attached simple patch.  It should make mbox2dir compile.
Whether the tool will work as intended, I can't tell for sure.  Try
running it manually (see the initial comment for the usage tips) to
see if it works.  If so, run make check.  Let me know if you encounter
any further problems.

> Perhaps I missed a dependency

No, you didn't.  The problem is that O_DIRECTORY flag is not defined on
older systems.

> At the moment, I am trying to to use decodemail
> and mailutils 2047, so if I can avoid the problem
> by using an older version that provides both those
> features, I'd be grateful for a pointer to the
> right version.

Mbox2dir is an auxiliary tool used only by the mailutils testsuite
(make check).  It is not needed outside of it.  Nevertheless, I would
suggest trying to fix it as described and running tests, just to be
sure everything works as expected.

Regards,
Sergey

diff --git a/testsuite/mbox2dir.c b/testsuite/mbox2dir.c
index 7250f9d..7115346 100644
--- a/testsuite/mbox2dir.c
+++ b/testsuite/mbox2dir.c
@@ -98,6 +98,10 @@
 #include <assert.h>
 #include <sys/time.h>

+#ifndef O_DIRECTORY
+# define O_DIRECTORY 0
+#endif
+
 static char *progname;

 enum

reply via email to

[Prev in Thread] Current Thread [Next in Thread]