unable to compile perl.c in stable 20020923 release

Russ Allbery rra at stanford.edu
Mon Sep 23 15:44:01 UTC 2002


John Covici <covici at ccs.covici.com> writes:

> I get the following error when trying to compile perl.c -- I am using
> the 5.8 library of perl since Debian wants it and so far it hasn't
> broke anything.

The following patch to libinn.h will fix that problem.  We've had reports
of other problems as well that I'm still trying to understand.

diff -u -p -r1.74.2.4 -r1.74.2.5
--- libinn.h    2002/03/25 19:48:43     1.74.2.4
+++ libinn.h    2002/09/23 15:42:53     1.74.2.5
@@ -1,4 +1,4 @@
-/*  $Id: libinn.h,v 1.74.2.4 2002/03/25 19:48:43 rra Exp $
+/*  $Id: libinn.h,v 1.74.2.5 2002/09/23 15:42:53 rra Exp $
 **
 **  Here be declarations of functions in the InterNetNews library.
 */
@@ -14,6 +14,12 @@
 #include <sys/types.h>
 #include <sys/stat.h>
 #include <sys/uio.h>
+
+/* Linux defines some of these.  Later versions of INN will use different
+   symbols, but this is the simple fix. */
+#undef LOCK_READ
+#undef LOCK_WRITE
+#undef LOCK_UNLOCK
 
 /* Tell C++ not to mangle prototypes. */
 #ifdef __cplusplus

-- 
Russ Allbery (rra at stanford.edu)             <http://www.eyrie.org/~eagle/>

    Please send questions to the list rather than mailing me directly.
     <http://www.eyrie.org/~eagle/faqs/questions.html> explains why.


More information about the inn-workers mailing list