[tpop3d-discuss] tpop3d 1.4.1pre3

Chris Lightfoot chris at ex-parrot.com
Sun, 10 Feb 2002 04:32:04 +0000


On Sat, Feb 09, 2002 at 10:21:27PM +0100, Martin Schmitt wrote:
> * Chris Lightfoot wrote/schrieb:
> 
> > > I assume this should be:
> > >     http://www.ex-parrot.com/~chris/tpop3d/tpop3d-1.4.1pre3.tar.gz
> 
> Fails on make for me. I'll enclude the whole enchilada from A-Z, since it's 
> not too much:
    [...]
> logging.c:33: `LOG_AUTHPRIV' undeclared here (not in a function)
> logging.c:33: initializer element is not constant
> logging.c:33: (near initialization for `facil[1].fac')

Oh dear. Again I make the foolish error of assuming that
``Unix'' presents a ``standard'' ``interface'' for the
applications programmer. Apply the following patch, or
replace references to LOG_AUTHPRIV with LOG_AUTH.

diff -u -r1.2 logging.c
--- logging.c	2002/02/09 14:28:32	1.2
+++ logging.c	2002/02/10 04:27:23
@@ -30,7 +30,12 @@
     int fac;
 } facil[] = {
         {"mail",        LOG_MAIL},
+#ifdef LOG_AUTHPRIV
         {"authpriv",    LOG_AUTHPRIV},
+#endif
+#ifdef LOG_AUTH
+        {"auth",        LOG_AUTH},
+#endif
         {"daemon",      LOG_DAEMON},
         {"user",        LOG_USER},
         

> P.S.: What platform is tpop3d being developed on? Just curious.

Linux. It's a nice system to develop for:

    - you get a C compiler with the system...
    - and it's not bollocks;
    - you get a reasonable C library...
    - although it's full of security holes (what isn't?);
    - it's standards compliant, in the ``I love standards:
      there are so many to choose from'' sense;
    - it's not Solaris.

Others might argue that all of the above are points
against Linux....

-- 
 Experience is what enables you to recognise a mistake
 the second time you make it.