help-gnu-emacs
[Top][All Lists]
Advanced

[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.
 
/usr/include/stdio.h
 
#ifdef  __USE_BSD
extern int sys_nerr;
extern __const char *__const sys_errlist[];
#endif
#ifdef  __USE_GNU
extern int _sys_nerr;
extern __const char *__const _sys_errlist[];
#endif

../emacs21.3/lib-src/movemail.c
 
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 
        Cc: 
        Subject: Re: linux compile fails on sys_error / stdio.h incompatible
        
        

        Hi,
        
        
        "Maureen" <address@hidden> writes:
        > /hw/tools/ftp/emacs/emacs-21.2/lib-src/movemail.c: In function
`strerror':
        > /hw/tools/ftp/emacs/emacs-21.2/lib-src/movemail.c:947: conflicting
types for
        > `sys_errlist'
        >
/hw/tools/gnu/gcc/3.2.2/i686/lib/gcc-lib/i686-pc-linux-gnu/3.2.2/include/stdi
        > 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
is
        linux-ppc, not i386.
        
        
        Hope this helps, benny
        
        _______________________________________________
        Help-gnu-emacs mailing list
        address@hidden
        http://mail.gnu.org/mailman/listinfo/help-gnu-emacs
        


reply via email to

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