unable to compile perl.c in stable 20020923 release

John Covici covici at ccs.covici.com
Tue Sep 24 09:18:06 UTC 2002


OK, I got past that error -- thanks much, but I encountered another
one.

gcc -g -O2 -I../include   -D_REENTRANT -D_GNU_SOURCE -DDEBIAN
-fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64  -I/usr/lib/perl/5.8.0/CORE  -c cc.c
cc.c: In function `CCsignal':
cc.c:1615: `my_perl' undeclared (first use in this function)
cc.c:1615: (Each undeclared identifier is reported only once
cc.c:1615: for each function it appears in.)

on Mon, 23 Sep 2002 08:44:01 -0700 Russ Allbery <rra at stanford.edu> wrote:

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

-- 
         John Covici
         covici at ccs.covici.com


More information about the inn-workers mailing list