[Top][All Lists]

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

RE: linux compile fails on sys_error / stdio.h incompatible

From: Maureen Woodyard
Subject: RE: linux compile fails on sys_error / stdio.h incompatible
Date: Thu, 8 May 2003 10:21:39 -0700

Hi Benny,
Actually I compiled 21.2 to make sure the problem wasn't
with 21.3 - they both get the same error.
The problem appears to be the stdio.h in /usr/include defines
strerror differently from movemail.c. If I compile without 
movemail, it just fails with a similar error on emacsclient.
#ifdef  __USE_BSD
extern int sys_nerr;
extern __const char *__const sys_errlist[];
#ifdef  __USE_GNU
extern int _sys_nerr;
extern __const char *__const _sys_errlist[];

strerror (errnum)
     int errnum;
  extern char *sys_errlist[];
  extern int sys_nerr;
  if (errnum >= 0 && errnum < sys_nerr)
    return sys_errlist[errnum];
  return (char *) "Unknown error";

        -----Original Message----- 
        From: Benjamin Riefenstahl [mailto:address@hidden 
        Sent: Thu 5/8/2003 5:21 AM 
        To: address@hidden 
        Subject: Re: linux compile fails on sys_error / stdio.h incompatible

        "Maureen" <address@hidden> writes:
        > /hw/tools/ftp/emacs/emacs-21.2/lib-src/movemail.c: In function
        > /hw/tools/ftp/emacs/emacs-21.2/lib-src/movemail.c:947: conflicting
types for
        > `sys_errlist'
        > o.h:563: previous declaration of `sys_errlist'
        a) Is there any reason why you can't use the current 21.3?
        b) Investigate why configure doesn't find strerror() in the system
        headers.  It does on my machine here, as it should and if it finds
        that, it shouldn't try to use it's own version.  I admit my machine
        linux-ppc, not i386.
        Hope this helps, benny
        Help-gnu-emacs mailing list

reply via email to

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